diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 1066c0bd292e3c32ad25838f3d8fbcc75e4e3751..ab7d803d940844d98c910357a7c400bed27dc477 100644 (file)
var $ShowPrinters;
var $ShowDevices;
var $ShowPhones;
+ var $ShowOpsiHosts;
/* Subsearch checkbox */
var $SubSearch;
msgPool::selectToView( _("MicroSoft Windows based workstations")),
sprintf(_("Show %s"), _("windows based workstations")),true);
}
+ /* Add opsi checkboxes if opsi is enabled */
+ if($this->parent->opsi instanceof opsi && $this->parent->opsi->enabled()){
+ $this->AddCheckBox("ShowOpsiHosts" , sprintf(_("Display objects of type '%s'."),
+ _("OPSI installed client")),_("Show OPSI based clients") ,true);
+ }
+
if(class_available("printtabs")){
$this->AddCheckBox("ShowPrinters",
msgPool::selectToView( _("network printers")),
$s.= "...|<img src='plugins/systems/images/select_component.png' alt='' border='0' class='center'>".
" "._("Component")."|"."newsystem_component|\n";
}
- if(class_available("opsiGeneric") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"opsi/opsiGeneric"))){
+
+ if($this->parent->opsi instanceof opsi &&
+ $this->parent->opsi->enabled() &&
+ preg_match("/c/",$ui->get_permissions($this->selectedBase,"opsi/opsiGeneric"))){
$s.= "...|<img src='plugins/systems/images/select_winstation.png' alt='' border='0' class='center'>".
- " "._("Opsi")."|"."newsystem_opsi_client|\n";
+ " "._("Opsi client")."|"."newsystem_opsi_client|\n";
}
if($this->parent->si_active){