X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fclass_divListGroup.inc;h=7c42291e4ce1c156a62ffbba5e21b35aee96da34;hb=645f88d4feb970b4bb1cd54e7e5a26b5f7966ce5;hp=6c3304f2b8a8088126ec0c1f94040b9f0d9dfc4a;hpb=83bb8e870e4ef8558170ff028d2398b193d85c90;p=gosa.git
diff --git a/gosa-core/plugins/admin/groups/class_divListGroup.inc b/gosa-core/plugins/admin/groups/class_divListGroup.inc
index 6c3304f2b..7c42291e4 100644
--- a/gosa-core/plugins/admin/groups/class_divListGroup.inc
+++ b/gosa-core/plugins/admin/groups/class_divListGroup.inc
@@ -207,29 +207,11 @@ class divListGroup extends MultiSelectWindow
/* Add multiple copy & cut icons */
$acl_all= $ui->has_complete_category_acls($this->selectedBase,"groups");
- if(is_object($this->parent->CopyPasteHandler) && preg_match("/r/",$acl_all)){
- $s.= "..|
".
- " "._("Copy")."|"."multiple_copy_systems|\n";
- }
- if(is_object($this->parent->CopyPasteHandler) && preg_match("/(r.*d|d.*r)/",$acl_all)){
- $s.= "..|
".
- " "._("Cut")."|"."multiple_cut_systems|\n";
- }
-
- /* Copy & paste icons */
- if(is_object($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->entries_queued()){
- $img = "
";
- $s.="..|".$img." "._("Paste")."|editPaste|\n";
- }else{
- $img = "
";
- $s.="..|".$img." "._("Paste")."\n";
- }
-
- /* Add snapshot icons */
- if(preg_match("/(c.*w|w.*c)/",$acl_all)){
- $s .= "..|---|\n";
- $s .= $this->get_snapshot_header(TRUE);
- }
+ /* Add Copy & Paste header */
+ $s .= $this->parent->get_copypaste_header($this->selectedBase,$this->module);
+
+ /* Add snapshot functionality */
+ $s .= $this->parent->get_snapshot_header($this->selectedBase,$this->module);
$this->SetDropDownHeaderMenu($s);
@@ -299,32 +281,17 @@ class divListGroup extends MultiSelectWindow
$acl_all = $ui->has_complete_category_acls($val['dn'],"groups");
$actions= "";
- if(preg_match("/(r.*d|r.*d)/",$acl_all) && $this->parent->CopyPasteHandler){
- $actions.= " ";
- }else{
- $actions.="
";
- }
- if(preg_match("/r/",$acl_all) && $this->parent->CopyPasteHandler){
- $actions.= " ";
- }else{
- $actions.="
";
- }
+ /* Add copy & cut functionality */
+ $actions.= $this->parent->get_copypaste_action($val['dn'],"groups","group");
/* Add edit icon */
$actions.= "";
/* Add snapshot functionality */
- if(preg_match("/(r.*w|w.*r)/",$acl_all)){
- $actions.= $this->GetSnapShotActions($val['dn']);
- }else{
- $actions.="
";
- $actions.="
";
- }
-
+ $actions.= $this->parent->get_snapshot_action($val['dn'],$this->module);
+
if(preg_match("/d/",$acl)){
$actions.= "";