X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_divListSystem.inc;h=34dfaac5cd5c3a36f6f08feca84bf646618fceb7;hb=ecabf2056dc1350d73115d5fa226676be30017d6;hp=435f8291fda0ba698df4d61f6e656467de5e2fd0;hpb=b4dd732c45b096d0c4b4c869244d13b36e3eb733;p=gosa.git
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 435f8291f..34dfaac5c 100644
--- a/plugins/admin/systems/class_divListSystem.inc
+++ b/plugins/admin/systems/class_divListSystem.inc
@@ -126,9 +126,13 @@ class divListSystem extends MultiSelectWindow
display the snapshot paste icon. BUT check the correct acls in the management plugin */
$all_module_acls = "";
foreach($this->module as $module){
- $all_module_acls .= $ui->has_complete_category_acls($this->selectedBase,$module)." | ".$module."
";
+ $all_module_acls .= $ui->has_complete_category_acls($this->selectedBase,$module);
}
+ /* Must we add an additional seperator */
+ $add_sep = false;
+
+ /* Add the basic icons for navigation */
$listhead = "
".
"
".
@@ -139,43 +143,56 @@ class divListSystem extends MultiSelectWindow
"
".
"
![](images/list_seperator.png)
";
+ /* Add snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$all_module_acls)){
$listhead .= $this->get_snapshot_header($this->selectedBase);
+ $add_sep = true;
}
-
+ /* Handle create icons */
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"terminal/termgeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/workgeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"server/servgeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
- if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"printer/printgenric"))){
+ if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"printer/printgeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"phone/phoneGeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"component/componentGeneric"))){
+ $add_sep = true;
$listhead .= "
";
}
- $listhead .= "
![](images/list_seperator.png)
"._("Base")." ".
- "
".
+ /* Should we add a seperator ? */
+ if($add_sep){
+ $listhead .= "
![](images/list_seperator.png)
";
+ }
+
+ /* Add base selection */
+ $listhead .= _("Base")."
".
"
".
"
";
@@ -202,10 +219,10 @@ class divListSystem extends MultiSelectWindow
$img9 = "