Code

Added navigation gray out if option is not available
[gosa.git] / plugins / gofax / blocklists / class_divListBlocklists.inc
index 01876f545fa5553d0e9d2d71d770d38e87913644..745d9b50e691b242bf929947a7364da7b69c2ed1 100755 (executable)
@@ -33,8 +33,7 @@ class divListBlocklist extends MultiSelectWindow
 
     /* Result page will look like a headpage */
     $this->SetHeadpageMode();
-    $this->SetInformation(_("This menu allows you to create, delete and edit selected blocklists. ".
-                            "Having a large size of lists, you might prefer the range selectors on top of the select box."));
+    $this->SetInformation(_("This menu allows you to create, delete and edit selected blocklists. Having a large size of lists, you might prefer the range selectors on top of the select box."));
 
     $this->EnableAplhabet   (true);
   
@@ -72,19 +71,10 @@ class divListBlocklist extends MultiSelectWindow
       }
     }
     
-    /* NEW LIST MANAGMENT */
-    $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
-      " <input class='center' type='image' src='images/list_root.png' align='middle' 
-          title='"._("Go to root department")."' name='dep_root' alt='".       _("Root")."'>&nbsp;".
-      " <input class='center' type='image' align='middle' src='images/list_back.png' 
-          title='"._("Go up one department")."' alt='"._("Up")."'              name='dep_back'>&nbsp;".
-      " <input class='center' type='image' align='middle' src='images/list_home.png' 
-          title='"._("Go to users department")."' alt='"._("Home")."'          name='dep_home'>&nbsp;".
-      " <input class='center' type='image' src='images/list_reload.png' align='middle' 
-          title='"._("Reload list")."' name='submit_department' alt='".      _("Submit")."'>&nbsp;".
-      " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>&nbsp;".
-      " <input class='center' type='image' align='middle' src='images/list_new_blocklist.png' 
-          title='"._("Create new blocklist")."' alt='"._("New         Blocklist")."' name='user_new'>&nbsp;".
+    /* Add default header */
+    $listhead = MultiSelectWindow::get_default_header();
+    $listhead.=  " <input class='center' type='image' align='middle' src='images/list_new_blocklist.png' 
+          title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='user_new'>&nbsp;".
       " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>".
           "&nbsp;"._("Base")."&nbsp;<select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
       " <input class='center' type='image' src='images/list_submit.png' align='middle' 
@@ -114,7 +104,7 @@ class divListBlocklist extends MultiSelectWindow
       // Generate Array to Add
       $display= "[".$val["cn"][0]."]";
       $field1 = array("string" => sprintf($blockimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
-      $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='dn:&nbsp;".@LDAP::fix($val['dn'])."'");
+      $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".preg_replace('/ /', '&nbsp;', @LDAP::fix($val['dn']))."'");
       $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:60px;border-right:0px;text-align:right;'");
       $this->AddElement( array($field1,$field2,$field3));
     }