summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a4f4ae)
raw | patch | inline | side by side (parent: 8a4f4ae)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 09:49:34 +0000 (09:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 09:49:34 +0000 (09:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5409 594d385d-05f5-0310-b6e9-bd551577e9d8
14 files changed:
diff --git a/html/images/list_back_gray.png b/html/images/list_back_gray.png
new file mode 100644 (file)
index 0000000..df2e987
Binary files /dev/null and b/html/images/list_back_gray.png differ
index 0000000..df2e987
Binary files /dev/null and b/html/images/list_back_gray.png differ
diff --git a/html/images/list_home_gray.png b/html/images/list_home_gray.png
new file mode 100644 (file)
index 0000000..9fb42ff
Binary files /dev/null and b/html/images/list_home_gray.png differ
index 0000000..9fb42ff
Binary files /dev/null and b/html/images/list_home_gray.png differ
diff --git a/html/images/list_root_gray.png b/html/images/list_root_gray.png
new file mode 100644 (file)
index 0000000..9dffb4e
Binary files /dev/null and b/html/images/list_root_gray.png differ
index 0000000..9dffb4e
Binary files /dev/null and b/html/images/list_root_gray.png differ
index 581986e518eaf6ea67ab1ea4535513649f70214b..105f6ab7d709ef3d9b93314ddf7f967150f21214 100644 (file)
$this->array_Elements[] = $arr;
}
+
+ function get_default_header()
+ {
+ $enable_back = TRUE;
+ $enable_root = TRUE;
+ $enable_home = TRUE;
+
+ $ui = get_userinfo();
+
+ /* Check if selectedBase = first available base */
+ $deps = array();
+ foreach($this->config->departments as $dep){
+ $deps[] = $dep;
+ }
+
+
+ if(!count($deps) || $deps[0] == $this->selectedBase){
+ $enable_back = FALSE;
+ $enable_root = FALSE;
+ }
+
+ /* Check if we are in users home department */
+ if(!count($deps) ||$this->selectedBase == get_base_from_people($ui->dn)){
+ $enable_home = FALSE;
+ }
+
+ /* Create header with selected base */
+ $listhead = "<div style='background:#F0F0F9;padding:5px;'>";
+
+ /* Draw root button */
+ if($enable_root){
+ $listhead .= " <input class='center' type='image' src='images/list_root.png' align='middle'
+ title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ";
+ }else{
+ $listhead .= " <img src='images/list_root_gray.png' class='center' alt='"._("Root")."'> ";
+ }
+
+ /* Draw back button */
+ if($enable_back){
+ $listhead .= " <input class='center' type='image' align='middle' src='images/list_back.png'
+ title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ";
+ }else{
+ $listhead .= " <img src='images/list_back_gray.png' class='center' alt='"._("Up")."'> ";
+ }
+
+ /* Draw home button */
+ if($enable_home){
+ $listhead .= " <input class='center' type='image' align='middle' src='images/list_home.png'
+ title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ";
+ }else{
+ $listhead .= " <img src='images/list_home_gray.png' class='center' alt='"._("Home")."'> ";
+ }
+
+ /* And at least draw reload button, this button is enabled everytime */
+ $listhead .= " <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'> ";
+
+ return ($listhead);
+ }
+
+
/* Add a checkbox to the filter element,
the name specifies an existing class var to store the 'selection' */
function AddCheckBox($name,$value="Unset",$string="Unset",$default=false)
diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index 56a4b0f5af99bb17be2519198ce04f12db27bc40..834b097e9f9b964122e248ab3e6186b5e9d89734 100755 (executable)
$Copy_Paste ="";
}
- /* 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_app.png' alt='"._("new").
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_app.png' alt='"._("new").
"' title='"._("Create new application")."' name='appl_new'> ".
$Copy_Paste.
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc
index 4eaea028be39dbd20e7ed3a3b0e4a0ef341d1ba0..fb3148b99bc97925e148f95535b9e956be511628 100755 (executable)
}
}
- /* Generate list head */
- $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")."'> ".
- " <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' align='middle' alt='"._("Create new department")."' name='dep_new'> ".
- " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
- _("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
- " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
- "</div>";
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.=" <input class='center' type='image' src='images/list_new_department.png'
+ align='middle' alt='"._("Create new department")."' name='dep_new'> ".
+ " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
+ _("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
+ " <input class='center' type='image' src='images/list_submit.png'
+ align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
+ "</div>";
$this->SetListHeader($listhead);
}
index 3f8f520a81f8fd74d9375bd3aad2f2a79e3d9c56..0a51b32d8f0f7a21a36c4e1edb9074d497252133 100644 (file)
$Copy_Paste ="";
}
- /* 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\"> ".
-
- " <input class='center' type='image' src='images/fai_new_profile.png' align='middle'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' src='images/fai_new_profile.png' align='middle'
title='"._("New profile")."' name='Create_profile' alt='"._("P")."'> ".
"<img class='center' src=\"images/list_seperator.png\" alt=\"\" align=\"middle\" height=\"16\" width=\"1\"> ".
diff --git a/plugins/admin/groups/class_divListGroup.inc b/plugins/admin/groups/class_divListGroup.inc
index f8139ab5870acaf79d020f998003092cc33ca9ea..b2feee42e4dac16f822aca4e4e556f89a6e25ff0 100644 (file)
$Copy_Paste ="";
}
- // 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'> ".
- " <input type='image' class='center' src='images/list_new_group.png' title='"._("Create new group")."' alt='"._("New")."' name='group_new'> ".
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input type='image' class='center' src='images/list_new_group.png'
+ title='"._("Create new group")."' alt='"._("New")."' name='group_new'> ".
$Copy_Paste.
" <img class='center' src='images/list_seperator.png' alt='' height='16' width='1'> ".
_("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
- " <input type='image' class='center' src='images/list_submit.png' title='"._("Submit department")."' name='submit_department' alt='"._("Submit").
-"'> ".
+ " <input type='image' class='center' src='images/list_submit.png'
+ title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
"</div>";
$this->SetListHeader($listhead);
diff --git a/plugins/admin/ogroups/class_divListOGroup.inc b/plugins/admin/ogroups/class_divListOGroup.inc
index 9fc480e268aee51c26fa330939e373af705cf2f3..a40237facd07a3df3157b04090f85515199132c2 100755 (executable)
$Copy_Paste ="";
}
- // 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_ogroup.png'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_ogroup.png'
title='"._("Create new object group")."' alt='"._("new")."' name='group_new'>".
$Copy_Paste.
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 6353c3e4b2d49029ae6fa4a0a0e2c00d05b674ef..9d732b212e45a718e8e667442c171d40f5aeaaa3 100644 (file)
$options.= "<option value='$key'>$value</option>";
}
}
- $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'> ".
- " <input class='center' type='image' align='middle' src='images/select_new_terminal.png'
+
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.=" <input class='center' type='image' align='middle' src='images/select_new_terminal.png'
name='newsystem_terminal' alt='"._("New Terminal template")."' title='"._("New Terminal")."'>".
" <input class='center' type='image' align='middle' src='images/select_new_workstation.png'
name='newsystem_workstation' alt='"._("New Workstation template")."' title='"._("New Workstation")."'>".
diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index e63142f8a0c03a85ce7a9a6b212c77557274a47f..722760672e1a2d6aa17587ec1edd4e117157fbf8 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_user.png'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_user.png'
title='"._("Create new user")."' alt='"._("New user")."' name='user_new'> ".
" <input class='center' type='image' align='middle' src='images/list_new.png'
title='"._("Create new template")."' alt='"._("New template")."' name='user_tplnew'> ".
diff --git a/plugins/gofax/blocklists/class_divListBlocklists.inc b/plugins/gofax/blocklists/class_divListBlocklists.inc
index 42e884dc2c09859739c7876ac747748ab6518470..745d9b50e691b242bf929947a7364da7b69c2ed1 100755 (executable)
}
}
- /* 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_blocklist.png'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_blocklist.png'
title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='user_new'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>".
" "._("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
diff --git a/plugins/gofon/conference/class_divListConferences.inc b/plugins/gofon/conference/class_divListConferences.inc
index 18ee1f7a58300f3e15391dfd69cf7ac41682ba56..82e74f5bc2effdfeb1c54cd07eac594230a30794 100755 (executable)
}
}
- /* 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_conference.png'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_conference.png'
title='"._("Create new conference")."' alt='"._("New conference")."' name='user_new'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
_("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc
index 1ab12136faea67482208af0a8087de8888cdca92..3d14404e19e5de3152d96cf748b3292c1ba2adde 100755 (executable)
}
}
- /* 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'> ".
- " <input class='center' type='image' align='middle' src='images/list_new_macro.png'
+ /* Add default header */
+ $listhead = MultiSelectWindow::get_default_header();
+ $listhead.= " <input class='center' type='image' align='middle' src='images/list_new_macro.png'
title='"._("Create new phone macro")."' alt='"._("New")."' name='user_new'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
_("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".