X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=cf90a8d01284605c60424d83be2aa24e1a46d768;hb=d2a7f50083180fccb855c116a0f16cbca2636f62;hp=89dd459c833f3cbe20cf60656c103369b5ce113a;hpb=3665e2ce16701da340dcbc6a2b4a167344785aa6;p=gosa.git
diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc
index 89dd459c8..cf90a8d01 100644
--- a/include/class_MultiSelectWindow.inc
+++ b/include/class_MultiSelectWindow.inc
@@ -34,24 +34,23 @@ class MultiSelectWindow{
var $HideFilterPart = false;
var $SaveAdditionalVars = array(); // Additional Post vars to store
-
+ var $module= "";
function ClearElementsList()
{
$this->array_Elements = array();
}
- function ForceMaximumDivHeight($height = "")
- {
- $this->DivHeight = $height;
- }
-
-
function HideFilterPart($bool = true)
{
$this->HideFilterPart = $bool;
}
+ function SetHeight($height)
+ {
+ $this->DivHeight=$height;
+ }
+
/* Adds a regex input field to the current dialog */
function AddRegex($name,$string,$value,$conn,$image="images/search.png")
{
@@ -74,19 +73,14 @@ class MultiSelectWindow{
}
/* Contrucktion */
- function MultiSelectWindow($config,$filterName)
+ function MultiSelectWindow($config, $filterName, $module)
{
$this->config = $config;
+ $this->module = $module;
$this->SaveButtonString = _("Save");
$this->CloseButtonString = _("Close");
$this->filterName = $filterName;
- /* Set default base, to users base */
- $ui = get_userinfo();
- $base = get_base_from_people($ui->dn);
- if(!isset($_SESSION['CurrentMainBase'])){
- $_SESSION['CurrentMainBase'] = $base;
- }
$this->selectedBase = $_SESSION['CurrentMainBase'];
/* Check default values for SaveAdditionalVars */
@@ -279,9 +273,9 @@ class MultiSelectWindow{
/* Check if box is checked */
if($box['default'] == true){
- $boxes .=" ".$box['string']."
";
+ $boxes .=" ".$box['string']."
";
}else{
- $boxes .=" ".$box['string']."
";
+ $boxes .=" ".$box['string']."
";
}
}
$smarty->assign("CheckBoxes", $boxes);
@@ -298,8 +292,8 @@ class MultiSelectWindow{