Code

Added dynamic acl divs for extended settings. Currently only firefox is supported.
[gosa.git] / plugins / admin / departments / class_divListDepartment.inc
index 40ebcb89962bb8eab0f9bfd04b2ba9daf7583e8b..ebbb7ac3f77a887250ce3879bcd7bdfb515362f1 100755 (executable)
@@ -30,7 +30,7 @@ class divListDepartment extends MultiSelectWindow
 
     /* Result page will look like a headpage */
     $this->SetHeadpageMode();
-    $this->SetInformation(_("This menu allows you to create, delete and edit selected departments. Having a large size of departments, you might prefer the range selectors on   top of the department list."));
+    $this->SetInformation(_("This menu allows you to create, delete and edit selected departments. Having a large number of departments, you might prefer the range selectors on top of the department list."));
   
     /* Disable buttonsm */
     $this->EnableCloseButton(false);
@@ -46,7 +46,7 @@ class divListDepartment extends MultiSelectWindow
     $this->AddCheckBox("SubSearch",  _("Select to search within subtrees"), _("Ignore subtrees"), false);
 
     /*                  Name                 ,Text                              ,Default  , Connect with alphabet  */
-    $this->AddRegex   ("Regex",     _("Regular expression for matching group names"), "*" , true);
+    $this->AddRegex   ("Regex",     _("Regular expression for matching department names"), "*" , true);
   }
 
 
@@ -108,9 +108,8 @@ class divListDepartment extends MultiSelectWindow
         }
       }
 
-      $title = $this->config->departments[$key];
-      $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-
-          align:center;width:20px;'");
+      $title = preg_replace('/ /', '&nbsp;', @LDAP::fix($this->config->departments[$key]));
+      $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
       $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");
       $field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions), "attach" => "style='width:60px;border-right:0px;text-align:
           right;'");