summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36824ef)
raw | patch | inline | side by side (parent: 36824ef)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 13:00:49 +0000 (13:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 13:00:49 +0000 (13:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11039 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofax/gofax/blocklists/class_divListBlocklists.inc | patch | blob | history |
diff --git a/gosa-plugins/gofax/gofax/blocklists/class_divListBlocklists.inc b/gosa-plugins/gofax/gofax/blocklists/class_divListBlocklists.inc
index d5130f1735184f2d57620880a8916b64b3a5f99c..904198dd103c3124cfcfde6c9109fb2631f53009 100644 (file)
/* Create Layers menu */
$s = ".|"._("Actions")."|\n";
- $s .= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
- " "._("Create")."|\n";
/* Append create options */
if(preg_match("/c/",$acl)) {
+ $s .= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
+ " "._("Create")."|\n";
$s.= "...|<input class='center' type='image' src='images/list_new_blocklist.png' alt=''>".
" "._("Blocklist")."|goFaxBlocklist_new|\n";
+ $s.= "..|---|\n";
}
/* Multiple options */
- $s.= "..|---|\n";
$s.= "..|<img src='images/lists/trash.png' alt='' border='0' class='center'>".
" "._("Remove")."|"."remove_multiple|\n";
- /* Add multiple copy & cut icons */
- if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/r/",$acl_all)){
$s.= "..|---|\n";
$s.= "..|<img src='images/lists/copy.png' alt='' border='0' class='center'>".
" "._("Copy")."|"."multiple_copy_systems|\n";
- $s.= "..|<img src='images/lists/cut.png' alt='' border='0' class='center'>".
- " "._("Cut")."|"."multiple_cut_systems|\n";
-
- if($this->parent->CopyPasteHandler->entries_queued()){
- $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
- $s.="..|".$img." "._("Paste")."|editPaste|\n";
- }else{
- $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
- $s.="..|".$img." "._("Paste")."\n";
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/(r.*d|d.*r)/",$acl_all)){
+ $s.= "..|<img src='images/lists/cut.png' alt='' border='0' class='center'>".
+ " "._("Cut")."|"."multiple_cut_systems|\n";
}
}
+ /* Copy & paste icons */
+ if(is_object($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->entries_queued()){
+ $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."|editPaste|\n";
+ }else{
+ $img = "<img border='0' class='center' src='images/lists/paste-grey.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."\n";
+ }
+
/* Add snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$s .= "..|---|\n";
$s .= $this->get_snapshot_header(TRUE);
}
- $this->SetDropDownHeaderMenu($s);
+ $this->SetDropDownHeaderMenu($s);
$this->SetListHeader($listhead);
}
foreach($list as $key => $val){
$acl = $ui->get_permissions($val['dn'],"gofaxlist/blocklist");
+ $acl_all = $ui->has_complete_category_acls($val['dn'],"gofaxlist");
+
if(!preg_match("/r/",$acl)){
continue;
}
- /* Edit link ; requires read access */
- $action= "<input class='center' type='image' src='images/lists/edit.png' alt='"._("edit")."' name='goFaxBlocklist_edit_%KEY%' title='"._("Edit user")."'>";
-
-
- /* Create snapshot ; requires write access && create access */
- if(preg_match("/w/",$acl) && preg_match("/c/",$acl)){
- $action.= $this->GetSnapShotActions($val['dn']);
- }
-
- /* Add copy & cut icons */
- if(preg_match("/(c.*w|w.*c)/",$acl) && $this->parent->CopyPasteHandler){
+ $action ="";
+ if(preg_match("/(r.*d|r.*d)/",$acl_all) && $this->parent->CopyPasteHandler){
$action .= "<input class='center' type='image'
src='images/lists/cut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+ }else{
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
+ }
+
+ if(preg_match("/r/",$acl_all) && $this->parent->CopyPasteHandler){
$action.= "<input class='center' type='image'
src='images/lists/copy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ }else{
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
}
+ /* Edit link ; requires read access */
+ $action.= "<input class='center' type='image' src='images/lists/edit.png' alt='"._("edit")."' name='goFaxBlocklist_edit_%KEY%' title='"._("Edit user")."'>";
+
+ /* Add snapshot icon */
+ if(preg_match("/(r.*w|w.*r)/",$acl_all)){
+ $action.= $this->GetSnapShotActions($val['dn']);
+ }else{
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
+ }
/* Delete entry ; requires remove access */
if(preg_match("/d/",$acl)){