Code

Added gray out to navigation icons in divlist
[gosa.git] / plugins / admin / systems / class_divListSystem.inc
index d624ec0ec6edbaab19937dea3ebd2b98093a704e..488e882f66c4aebc76d4957a47c35573cebcac3c 100644 (file)
@@ -126,22 +126,14 @@ class divListSystem extends MultiSelectWindow
         display the snapshot paste icon. BUT check the correct acls in the management plugin */
     $all_module_acls = "";
     foreach($this->module as $module){
-      $all_module_acls .= $ui->has_complete_category_acls($this->selectedBase,$module)." | ".$module."<br>";
+      $all_module_acls .= $ui->has_complete_category_acls($this->selectedBase,$module);
     }
 
     /* Must we add an additional seperator */
     $add_sep = false;
     
-    /* Add the basic icons for navigation */
-    $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;";
+    /* Add default header */
+    $listhead = MultiSelectWindow::get_default_header();
 
     /* Add snapshot icons */
     if(preg_match("/(c.*w|w.*c)/",$all_module_acls)){
@@ -261,7 +253,7 @@ class divListSystem extends MultiSelectWindow
       $acl      = $ui->get_permissions($val['dn'],$tabs[$type]['ACL']);
 
       $action= "<input class='center' type='image' src='images/edit.png' 
-                    alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit system")."'>";
+                    alt='"._("edit")."'     name='system_edit_%KEY%' title='"._("Edit system")."'>";
       if(preg_match("/(c.*w|w.*c)/",$acl_all)){
         $action.= $this->GetSnapShotActions($val['dn']);
       }else{
@@ -270,7 +262,7 @@ class divListSystem extends MultiSelectWindow
 
       if(preg_match("/d/",$acl)){
         $action.= "<input class='center' type='image' src='images/edittrash.png' 
-          alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete system")."'>";
+          alt='"._("delete")."'   name='system_del_%KEY%' title='"._("Delete system")."'>";
       }else{
         $action.= $empty;    
       }
@@ -313,7 +305,7 @@ class divListSystem extends MultiSelectWindow
         $pwd_acl = $ui->get_permissions($val['dn'],"terminal/termgeneric","gotoRootPasswd");
       }    
       if(preg_match("/w/",$pwd_acl)){
-        $action2 = "<input class='center' type='image' src='images/certs.png' alt='"._("Password")."'   name='user_setpwd_%KEY%' title='"._("Set root       password")."'>";
+        $action2 = "<input class='center' type='image' src='images/certs.png' alt='"._("Password")."'   name='system_setpwd_%KEY%' title='"._("Set root       password")."'>";
       }else{
         $action2 = $empty;
       }