X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=bc99ac9f1857a4d9cf972d3cb67958ec1b694422;hb=cf52f2875e8d24c2985898e38bfe03acf8900e44;hp=db82577f37a044121960f7ac5a4c1597639ea74c;hpb=4b7c2f498fff73c00c49994a993ba725ef83b3ba;p=gosa.git diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index db82577f3..bc99ac9f1 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 = ""; @@ -27,12 +28,13 @@ class MultiSelectWindow{ var $is_headpage = false; // if true the design changes var $filterName = "Liste"; var $DepartmentsAdded = false; + var $Added_Departments = array(); var $selectedBase = ""; var $DivHeight = ""; var $HideFilterPart = false; - + var $List_Bottom_Info = ""; var $SaveAdditionalVars = array(); // Additional Post vars to store var $module= ""; @@ -72,15 +74,42 @@ 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("/storage/hickert/gosa/include/php_layers_menu/"); + $mid->setHorizontalMenuTpl('GOsa_MultiSelectHeader.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) + function MultiSelectWindow(&$config, $filterName, $module) { - $this->config = $config; + $this->config = &$config; $this->module = $module; $this->SaveButtonString = _("Save"); $this->CloseButtonString = _("Close"); $this->filterName = $filterName; - + $this->ui = get_userinfo(); $this->selectedBase = $_SESSION['CurrentMainBase']; /* Check default values for SaveAdditionalVars */ @@ -171,15 +200,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 = "