X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=aefb8b8f365c2966ed39e0ed0ffe15059cde63fd;hb=382443db9d291ebe40f97a94534a0913f7c0a6ef;hp=b7d4bb9166f0147f76dd2962075f9132019acf70;hpb=78b21ee17b6d3f16b50b902d302ecaba77db7cc8;p=gosa.git diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index b7d4bb916..aefb8b8f3 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -13,6 +13,7 @@ class MultiSelectWindow{ var $string_Title = ""; var $string_ListHeader = ""; + var $string_ListDropDown= ""; var $string_Summary = ""; var $string_Information = ""; @@ -73,6 +74,34 @@ class MultiSelectWindow{ $this->array_Regexes[] = $arr; } + + function SetDropDownHeaderMenu($str) + { + $this->string_ListDropDown = $str; + } + + function GetDropDownHeaderMenu() + { + if(!empty($this->string_ListDropDown)){ + $mid = new LayersMenu(6, 7, 2, 1); + $mid->setImgwww("./images/"); + $mid->setIcondir("./images/"); + $mid->setDirroot("../include/php_layers_menu/"); + $mid->setHorizontalMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeader.ihtml'); + $mid->setSubMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeaderSubEntry.ihtml'); + $mid->setMenuStructureString($this->string_ListDropDown); + $mid->parseStructureForMenu('menu'); + $mid->newHorizontalMenu('menu'); + $s = $mid->getHeader(); + $s.= $mid->getMenu('menu'); + $s.= $mid->getFooter('menu'); + return($s); + }else{ + return(""); + } + } + + /* Contrucktion */ function MultiSelectWindow(&$config, $filterName, $module) { @@ -172,15 +201,14 @@ class MultiSelectWindow{ $enable_back = FALSE; $enable_root = FALSE; } - + + $listhead =""; + /* 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 = "