X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=82aac59eee198e016f7bdae4c8acf11ecfb2b04b;hb=b57c77d36fbcf682603db5e7c247d2b6ff6ccee2;hp=89dd459c833f3cbe20cf60656c103369b5ce113a;hpb=3665e2ce16701da340dcbc6a2b4a167344785aa6;p=gosa.git
diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc
index 89dd459c8..82aac59ee 100644
--- a/include/class_MultiSelectWindow.inc
+++ b/include/class_MultiSelectWindow.inc
@@ -35,23 +35,21 @@ class MultiSelectWindow{
var $SaveAdditionalVars = array(); // Additional Post vars to store
-
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")
{
@@ -81,12 +79,6 @@ class MultiSelectWindow{
$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 */
@@ -484,12 +476,55 @@ class MultiSelectWindow{
$val = preg_replace("/\*\**/","*",$val);
$this->array_Regexes[$key]['value'] = $val;
$this->$box['name'] = $val;
+ $_SESSION['MultiDialogFilters'][$this->filterName][$box['name']] = $val;
}
}
}
-
}
+
+ /* Create header snapshot value */
+ function get_snapshot_header()
+ {
+ $str = "";
+ if($this->parent->snapshotEnabled()){
+ $ok = false;
+ foreach($this->parent->get_used_snapshot_bases() as $base){
+ $ok |= count($this->parent->getAllDeletedSnapshots($base)) >= 1 ;
+ }
+ if($ok){
+ $str = " ";
+ }else{
+ $str = "
";
+ }
+
+ $str .= "
";
+ }
+ return($str);
+ }
+
+
+ function GetSnapShotActions($dn)
+ {
+ $str = "";
+ if($this->parent->snapshotEnabled()){
+
+ $str .=" ";
+
+ if(count($this->parent->Available_SnapsShots($dn))){
+ $str .=" ";
+ }else{
+ $str.= "
";
+ }
+ }
+ return($str);
+ }
+
+
/* this function adds the sub-departments of the current tree to the list */
function AddDepartments($base = false,$numtabs = 3)
{