summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79422d6)
raw | patch | inline | side by side (parent: 79422d6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 07:38:59 +0000 (07:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Dec 2006 07:38:59 +0000 (07:38 +0000) |
Not in use currently
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5407 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5407 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_MultiSelectWindow.inc | patch | blob | history |
index fee7d60acab6d7f8873f1729ecf0a30ab45d4e30..6f939f96c1baf4237a09560ec0fd3231205ffa21 100644 (file)
$this->array_Elements[] = $arr;
}
+
+ /* Return default header part. With back, home and root icons and department selection */
+ function get_default_header()
+ {
+ $enable_back = TRUE;
+ $enable_root = TRUE;
+ $enable_home = TRUE;
+
+ $ui = get_userinfo();
+
+ /* Check if selectedBase = first available base */
+ $deps = $ui->get_module_departments($this->module);
+ if($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)){
+ $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)