Code

Added navigation gray out if option is not available
[gosa.git] / plugins / admin / groups / class_divListGroup.inc
index f8139ab5870acaf79d020f998003092cc33ca9ea..b2feee42e4dac16f822aca4e4e556f89a6e25ff0 100644 (file)
@@ -87,20 +87,15 @@ class divListGroup extends MultiSelectWindow
       $Copy_Paste ="";
     }
 
-    // Managment
-    $listhead = "
-      <div style='background:#F0F0F9;padding:5px;'>".
-      " <input type='image' class='center' src='images/list_root.png' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'>&nbsp;".
-      " <input type='image' class='center' src='images/list_back.png' title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'>&nbsp;".
-      " <input type='image' class='center' 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' alt='' height='16' width='1'>&nbsp;".
-      " <input type='image' class='center' src='images/list_new_group.png' title='"._("Create new group")."' alt='"._("New")."' name='group_new'>&nbsp;".
+    /* Add default header */
+    $listhead = MultiSelectWindow::get_default_header();
+    $listhead.= " <input type='image' class='center' src='images/list_new_group.png' 
+          title='"._("Create new group")."' alt='"._("New")."' name='group_new'>&nbsp;".
       $Copy_Paste.
       " <img class='center' src='images/list_seperator.png' alt='' height='16' width='1'>&nbsp;".
       _("Base")."&nbsp;<select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
-       " <input type='image' class='center' src='images/list_submit.png' title='"._("Submit department")."' name='submit_department' alt='"._("Submit").
-"'>&nbsp;".
+       " <input type='image' class='center' src='images/list_submit.png' 
+        title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'>&nbsp;".
       "</div>";
 
     $this->SetListHeader($listhead);