Code

Added dynamic acl divs for extended settings. Currently only firefox is supported.
[gosa.git] / plugins / admin / departments / class_divListDepartment.inc
index 1a31b18a6910b72bafb7e6507b0e923f818b9faa..ebbb7ac3f77a887250ce3879bcd7bdfb515362f1 100755 (executable)
@@ -30,24 +30,23 @@ 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);
     $this->EnableSaveButton (false);
 
     /* set Page header */
-    $this->AddHeader(array("string" => " ","attach"=>"style='width:20px;'"));
-    $this->AddHeader(array("string" => _("Groupname / Department")));
-    $this->AddHeader(array("string" => _("Properties"),"attach"=>"style='width:136px;'"));
-    $this->AddHeader(array("string" => _("Actions"),"attach"=>"style='width:80px;border-right:0px;'"));
+    $this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'"));
+    $this->AddHeader(array("string"=>_("Department name"), "attach" => "style=''"));
+    $this->AddHeader(array("string" =>_("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'"));
+
 
     /* Add SubSearch checkbox */    
     $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);
   }
 
 
@@ -109,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;'");
@@ -122,7 +120,7 @@ class divListDepartment extends MultiSelectWindow
 
   function Save()
   {
-    MultiSelectWindow :: Save();  
+    MultiSelectWindow::Save();
   }
 
   function save_object()