index f201660a64c7d8f98059b6bd2bec98d8d9f7760f..8481095f07e457aaf426bc5402a57d0a5ff075e6 100644 (file)
var $SaveAdditionalVars = array(); // Additional Post vars to store
- var $force_height = false;
-
function ClearElementsList()
{
$this->array_Elements = array();
$this->HideFilterPart = $bool;
}
- function ForceMaximumDivHeight($height = "")
- {
- $this->DivHeight = $height;
- if(!empty($height)){
- $this->force_height = true;
- }else{
- $this->force_height = false;
- }
+ 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")
{
$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 */
$smarty->assign("filterName" , $this->filterName);
$smarty->assign("is_headpage" , $this->is_headpage);
- $smarty->assign("force_height",$this->force_height);
-
$display = $smarty->fetch(get_template_path("MultiSelectWindow.tpl"));
return($display);
}
$val = preg_replace("/\*\**/","*",$val);
$this->array_Regexes[$key]['value'] = $val;
$this->$box['name'] = $val;
+ $_SESSION['MultiDialogFilters'][$this->filterName][$box['name']] = $val;
}
}
}
}
+
+ function GetSnapShotActions($dn)
+ {
+ $str = "";
+
+ if($this->parent->snapshotEnabled()){
+
+ $str .="<input class='center' type='image' src='images/snapshot.png'
+ alt='"._("Create snapshot")."' name='CreateSnapShot_".base64_encode($dn)."' title='"._("Create a new snapshot from this object")."'> ";
+
+ if(count($this->parent->Available_SnapsShots($dn))){
+ $str .="<input class='center' type='image' src='images/restore.png'
+ alt='"._("Restore snapshot")."' name='RestoreSnapShot_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
+ }else{
+ $str.= "<img src='images/empty.png' style='width:16px;' class='center'> ";
+ }
+ }
+ return($str);
+ }
+
+
/* this function adds the sub-departments of the current tree to the list */
function AddDepartments($base = false,$numtabs = 3)
{