summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f1c4a9)
raw | patch | inline | side by side (parent: 4f1c4a9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 12:26:29 +0000 (12:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 12:26:29 +0000 (12:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11033 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_divListSystem.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index d449f9c8a5bbe74544e62bd1ccf18915a5cd3f70..fa8cbdb1135ab2368fa8517c25ce03b5fc24001b 100644 (file)
$s = ".|"._("Actions")."|\n";
$s.= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
" "._("Create")."|\n";
+
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"terminal/termgeneric"))){
$s.= "...|<img src='images/select_terminal.png' alt='' border='0' class='center'>".
" "._("Terminal")."|"."newsystem_terminal|\n";
$s.= "..|<img src='images/lists/unlocked.png' alt='' border='0' class='center'>".
" "._("Activate systems")."|activate_multiple|\n";
- /* Add multiple copy & cut icons */
- if(is_object($this->parent->CopyPasteHandler)){
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/r/",$all_module_acls)){
$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(is_object($this->parent->CopyPasteHandler) && preg_match("/(r.*d|d.*r)/",$all_module_acls)){
+ $s.= "..|<img src='images/lists/cut.png' alt='' border='0' class='center'>".
+ " "._("Cut")."|"."multiple_cut_systems|\n";
+ }
}
- /* Get copy & paste icon */
- $Copy_Paste ="";
- if(preg_match("/(c.*w|w.*c)/",$all_module_acls) && $this->parent->CopyPasteHandler){
- $s .= "..|---|\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";
- }
+ /* 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 */
$acl = $ui->get_permissions($val['dn'],$tabs[$type]['ACL']);
$action ="";
- if(($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){
- $action.= "<input class='center' type='image'
+ 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'> ";
}
+
$action.= "<input class='center' type='image' src='images/lists/edit.png'
alt='"._("edit")."' name='system_edit_%KEY%' title='"._("Edit system")."'>";
- if(preg_match("/(c.*w|w.*c)/",$acl_all)){
+
+ /* Add snapshot icon */
+ if(preg_match("/(r.*w|w.*r)/",$acl_all)){
$action.= $this->GetSnapShotActions($val['dn']);
}else{
- $action.= $empty." ".$empty." ";
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
+ $action.="<img src='images/empty.png' alt=' ' class='center'> ";
}
-
if(preg_match("/d/",$acl)){
$action.= "<input class='center' type='image' src='images/lists/trash.png'
alt='"._("delete")."' name='system_del_%KEY%' title='"._("Delete system")."'>";