Code

Added subsearch checkbox
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 May 2006 07:08:18 +0000 (07:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 May 2006 07:08:18 +0000 (07:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3248 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_divListSystem.inc

index 59ca111bdb2dd310a6913ba6418e5bca28a5ddc7..69077dbe1f40a75a3b1c3e98101da9d93eb908e1 100644 (file)
@@ -20,6 +20,9 @@ class divListSystem extends MultiSelectWindow
   var $ShowDevices        = true;
   var $ShowPhones         = true;
 
+  /* Subsearch checkbox */
+  var $SubSearch              = false;
+
   var $parent             ;
   var $ui                 ;
 
@@ -64,6 +67,10 @@ class divListSystem extends MultiSelectWindow
     $this->AddCheckBox("ShowPhones",          _("Select to see VOIP phones"),         _("Show phones") ,          true);
     $this->AddCheckBox("ShowDevices",         _("Select to see network devices"),     _("Show network devices"),  true);
 
+    /* Add SubSearch checkbox */
+    $this->AddCheckBox(SEPERATOR);
+    $this->AddCheckBox("SubSearch",  _("Select to search search within subtres"), _("Subsearch"), false);
+
     /*                  Name                 ,Text                              ,Default  , Connect with alphabet  */
     $this->AddRegex   ("Regex",     _("Display systems matching"),"*" , true);
     $this->AddRegex   ("UserRegex", _("Display systems of user"), "*" , false, "images/search_user.png");
@@ -115,7 +122,6 @@ class divListSystem extends MultiSelectWindow
   {
     $this->ClearElementsList();
     $this->GenHeader();
-    $this->AddDepartments($this->selectedBase);
   }
 
   function setEntries($terminals)