Code

Added ogroup acls
[gosa.git] / plugins / admin / ogroups / class_divListOGroup.inc
index 073286cbf871516a5c7806991dd6ec629ecf4940..415a6b9641b4f760fc3b96fc24a629a7ad4293e1 100755 (executable)
@@ -29,7 +29,7 @@ class divListOGroup extends MultiSelectWindow
 
   function divListOGroup ($config,$parent)
   {
-    MultiSelectWindow::MultiSelectWindow($config,"OGroups");
+    MultiSelectWindow::MultiSelectWindow($config, "OGroups", "ogroups");
     
     $this->parent       = $parent;
     $this->ui           = get_userinfo();
@@ -110,14 +110,7 @@ class divListOGroup extends MultiSelectWindow
       " <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;";
-
-    if($this->parent->snapshotEnabled()){
-      $listhead .= "  <input class='center' type='image' align='middle' src='images/restore.png'
-        title='"._("Restore snapshopts of already deleted objects")."' alt='"._("Restore")."' name='RestoreDeletedSnapShot'>".
-        " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>&nbsp;";
-    }
-
-
+    $listhead .= $this->get_snapshot_header($this->selectedBase);
     $listhead .=" <input class='center' type='image' align='middle' src='images/list_new_ogroup.png' 
       title='"._("Create new object group")."' alt='"._("new")."' name='group_new'>".
       $Copy_Paste.
@@ -157,7 +150,7 @@ class divListOGroup extends MultiSelectWindow
     foreach($list as $key => $val){
 
       /* Create action icons */
-      $actions = $this->GetSnapShotActions($val['dn']);
+      $actions= "";
       if($this->parent->CopyPasteHandler){
         $actions.= "<input class='center' type='image'
           src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'>&nbsp;";
@@ -166,6 +159,7 @@ class divListOGroup extends MultiSelectWindow
       }
       $actions.= "<input class='center' type='image'
         src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>";
+      $actions.= $this->GetSnapShotActions($val['dn']);
       $actions.= "<input class='center' type='image'
         src='images/edittrash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>";