summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e24f6ac)
raw | patch | inline | side by side (parent: e24f6ac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 08:04:51 +0000 (08:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 08:04:51 +0000 (08:04 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5408 594d385d-05f5-0310-b6e9-bd551577e9d8
13 files changed:
index 6f939f96c1baf4237a09560ec0fd3231205ffa21..2dac54752192607d99238d9c39206413c59f828c 100644 (file)
/* Check if selectedBase = first available base */
$deps = $ui->get_module_departments($this->module);
- if($deps[0] == $this->selectedBase){
+
+ if(!count($deps) || $deps[0] == $this->selectedBase){
$enable_back = FALSE;
$enable_root = FALSE;
}
/* Check if we are in users home department */
- if($this->selectedBase == get_base_from_people($ui->dn)){
+ if(!count($deps) ||$this->selectedBase == get_base_from_people($ui->dn)){
$enable_home = FALSE;
}
index ed888806bd93a17cb6fc963f98ed4dd45a7f5d1d..e75b84ce24f2f904b697b02f31d018365f237f0a 100644 (file)
/* Get copy & paste icon */
$acl = $ui->get_permissions($this->selectedBase,"acl/aclManagement");
- /* Create header with selected base */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
$listhead .=
_("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
" <input class='center' type='image' src='images/list_submit.png' align='middle'
diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index b2464b1aaa5ff5b35fa3f804dbef45fd4865b2a3..2aa80edcf13f3ef09087ac10a9e30c3a20fefb47 100755 (executable)
$add_sep = true;
}
- /* Create listhead, it will be shown on top of the divlist.
- * It provides general navigation and object creation
- */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle' ".
- "title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png' ".
- "title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png' ".
- "title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' ".
- "title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
/* Add snapshot header icons */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc
index 712ba87905e36befccdc98b90b925b3f348facd9..32b79bf8806f58ba3f5c60faea0c963bf234310a 100755 (executable)
/* Generate list head */
$ui = get_userinfo();
$acl = $ui->get_permissions("ou=dummy,".$this->selectedBase ,"department/department");
-
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input type='image' class='center' src='images/list_root.png' align='middle' ".
- " title='"._("Go to root department")."' name='dep_root' alt='". _("Root")."'> ".
- " <input type='image' class='center' src='images/list_up.png' align='middle' ".
- " title='"._("Go up one department")."' name='dep_back' alt='"._("Up"). "'> ".
- " <input type='image' class='center' src='images/list_home.png' align='middle' ".
- " title='"._("Go to users home department")."' name='dep_home' alt='". _("Home")."'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' ".
- " title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+
if(preg_match("/c/",$acl)){
$listhead .= " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
" <input class='center' type='image' src='images/list_new_department.png' ".
index d0493cdabc0a849d9ee61c5d40abdf8ccc40544b..b95c43bf6f355f318cbdd5b08721e65fe5b0a47d 100644 (file)
/* Get complete fai acls, to be able to check if we must show or hide the snapshot abilities */
$acl_all = $ui->has_complete_category_acls($this->selectedBase,$this->module);
- /* Create listhead, it will be shown on top of the divlist.
- * It provides general navigation and object creation
- */
- $listhead =
- "<div style='background:#F0F0F9;padding:5px;'> ".
- "<input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='". _("Root")."'> ".
- "<input class='center' type='image' src='images/list_up.png' align='middle'
- title='"._("Go up one department")."' name='dep_back' alt='"._("Up"). "'> ".
- "<input class='center' type='image' src='images/list_home.png' align='middle'
- title='"._("Go to users home department")."' name='dep_home' alt='"._("Home")."'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' title='"._("Reload list")."' name='submit_department' alt='".
-_("Submit")."'> ".
- "<img class='center' src=\"images/list_seperator.png\" alt=\"\" align=\"middle\" height=\"16\" width=\"1\"> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
$acl = $ui->get_permissions($this->selectedBase,"fai/faiProfile");
if(preg_match("/c/",$acl)){
diff --git a/plugins/admin/groups/class_divListGroup.inc b/plugins/admin/groups/class_divListGroup.inc
index 2a270b34e20d20a8d6a3b00ecf21eed9ad5df17c..ab9fd612c908b6781383367858b3ba5d6da47b0f 100644 (file)
$addsep = true;
}
- // Managment
- $listhead = "
- <div style='background:#F0F0F9;padding:5px;'>".
- " <input type='image' class='center' src='images/list_root.png' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input type='image' class='center' src='images/list_back.png' title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input type='image' class='center' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' alt='' height='16' width='1'> ";
-
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+
/* Add snapshot restore icon and force a following seperator */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$listhead .= $this->get_snapshot_header($this->selectedBase);
diff --git a/plugins/admin/mimetypes/class_divListMimeTypes.inc b/plugins/admin/mimetypes/class_divListMimeTypes.inc
index b1fd3768eafe50a6136307d61bac184fb676825e..66bfd3156c0fde615466cad73b444237da901038 100755 (executable)
$add_sep = true;
}
- /* Create listhead, it will be shown on top of the divlist.
- * It provides general navigation and object creation
- */
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle' ".
- "title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png' ".
- "title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png' ".
- "title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' ".
- "title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
-
/* Create snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$listhead .= $this->get_snapshot_header($this->selectedBase);
diff --git a/plugins/admin/ogroups/class_divListOGroup.inc b/plugins/admin/ogroups/class_divListOGroup.inc
index c661eb577a2a65fee27defd1cd2084d1c58b3070..204ecbfce0825275a40bd46214492c3909e5b4d7 100755 (executable)
$add_sep = true;
}
- // Managment
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
/* Add snapshot restore icons */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 88380ad5fffaffdaeeeae4386e3556350f151e7f..488e882f66c4aebc76d4957a47c35573cebcac3c 100644 (file)
/* Must we add an additional seperator */
$add_sep = false;
- /* Add the basic icons for navigation */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle' title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
/* Add snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$all_module_acls)){
diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index 499eb1762904769c93f0a9558c6d033333b06f28..f3f2bbe1d77563dd6d0ee962122a087217682af5 100644 (file)
$Copy_Paste ="";
}
- /* Create header with selected base */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='-' height='16' width='1'> ";
-
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$listhead .= $this->get_snapshot_header($this->selectedBase);
diff --git a/plugins/gofax/blocklists/class_divListBlocklists.inc b/plugins/gofax/blocklists/class_divListBlocklists.inc
index 565780e9e6576d007d2ccfcd8240fa43ad846f4f..19fe00bda4140203e4236b3ab5addd76b70f73e0 100755 (executable)
$acl = $ui->get_permissions($this->selectedBase,"gofaxlist/blocklist");
$acl_all = $ui->has_complete_category_acls($this->selectedBase,"gofaxlist");
- /* NEW LIST MANAGMENT */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='". _("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
/* Add snaphot icons, if allowed */
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
diff --git a/plugins/gofon/conference/class_divListConferences.inc b/plugins/gofon/conference/class_divListConferences.inc
index 62fb38bbcf006d98b8b8692e14b244e480117e35..c2cedad4e7ff5ed212a5e8b6529aed88a748f104 100755 (executable)
$acls = $ui->get_permissions($this->selectedBase,"gofonconference/conference");
$acl_all = $ui->has_complete_category_acls($this->selectedBase,"gofonconference") ;
- /* NEW LIST MANAGMENT */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='". _("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='". _("Submit")."'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
/* Only display create new conference if we are allowed to create new confe... */
if(preg_match("/c/",$acls)){
diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc
index 8396b603ee807937cd1d8e3262e381dd75d0f49b..c62a3e1fc53798985e817478dd8118ae8b5bd8e2 100755 (executable)
$acls = $ui->get_permissions($this->selectedBase,"gofonmacro/macro");
- /* NEW LIST MANAGMENT */
- $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
- " <input class='center' type='image' src='images/list_root.png' align='middle'
- title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
- " <input class='center' type='image' align='middle' src='images/list_back.png'
- title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
- " <input class='center' type='image' align='middle' src='images/list_home.png'
- title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
- " <input class='center' type='image' src='images/list_reload.png' align='middle'
- title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+
if(preg_match("/w/",$acls) && preg_match("/c/",$acls)){
$listhead .= $this->get_snapshot_header($this->selectedBase);
}