X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fdepartments%2Fclass_divListDepartment.inc;h=f4f85944fcbf24fc778b29330194827ca502aea2;hb=aef3764e59812f70fa8345505c4cdcf22bb4ebb0;hp=b1f642dbf1edccab4eb653baa3f272c9323de1be;hpb=7f7f21906eb6121c29823abbf96461733d642509;p=gosa.git
diff --git a/gosa-core/plugins/admin/departments/class_divListDepartment.inc b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
old mode 100755
new mode 100644
index b1f642dbf..f4f85944f
--- a/gosa-core/plugins/admin/departments/class_divListDepartment.inc
+++ b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
@@ -1,4 +1,24 @@
SetHeadpageMode();
- $this->SetInformation(_("This menu allows you to create, delete and edit selected departments. Having a large number of departments, you might prefer the range selectors on top of the department list."));
/* Disable buttonsm */
$this->EnableCloseButton(false);
@@ -39,7 +58,7 @@ class divListDepartment extends MultiSelectWindow
/* Toggle all selected / deselected */
- $chk = "";
/* set Page header */
@@ -50,7 +69,7 @@ class divListDepartment extends MultiSelectWindow
/* Add SubSearch checkbox */
- $this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false);
+ $this->AddCheckBox("SubSearch", msgPool::selectToView("","subsearch"), msgPool::selectToView("","subsearch_small"), false);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Regular expression for matching department names"), "*" , true);
@@ -123,21 +142,21 @@ class divListDepartment extends MultiSelectWindow
$listhead .=
" "._("Base")." ".
- " ";
/* Create Layers menu */
$s = ".|"._("Actions")."|\n";
- $s .= "..|
".
- " "._("Create")."|\n";
/* Append create options */
if(preg_match("/c/",$acl)) {
- $s.= "...|".
+ $s .= "..|
".
+ " "._("Create")."|\n";
+ $s.= "...|".
" "._("Department")."|dep_new|\n";
+ $s.= "..|---|\n";
}
- $s.= "..|---|\n";
- $s.= "..|
".
+ $s.= "..|
".
" "._("Remove")."|"."remove_multiple|\n";
@@ -161,13 +180,13 @@ class divListDepartment extends MultiSelectWindow
$actions= "";
$acl = $ui->get_permissions($this->config->departments[$key] ,"department/department");
- if(preg_match("/r/",$acl)){
- $actions.= "";
- }
+ $acl_all = $ui->has_complete_category_acls($this->config->departments[$key] ,"department");
+
+ $actions.= "";
- if(preg_match("/c/",$acl)){
- $actions.= "";
}
@@ -197,7 +216,7 @@ class divListDepartment extends MultiSelectWindow
"attach" => "style='width:20px;'");
}
- $field0 = array("string" => "
", "attach" => "style='text-align:center;width:20px;'");
+ $field0 = array("string" => "
", "attach" => "style='text-align:center;width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");
$field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions), "attach" => "style='width:60px;border-right:0px;text-align:
right;'");
@@ -208,7 +227,7 @@ class divListDepartment extends MultiSelectWindow
/* Create summary string for list footer */
$num_deps=count($list);
$num_dep_str = _("Number of listed departments");
- $str = "
".$num_deps." ";
$this->set_List_Bottom_Info($str);