index 0697fc4f965add55fb5fbde1647219026cc693e5..bbba65eeeaf44d469bd63722a0e49c08779e8171 100644 (file)
var $HideFilterPart = false;
var $SaveAdditionalVars = array(); // Additional Post vars to store
+ var $module= "";
function ClearElementsList()
{
}
/* 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;
if($box['default'] == true){
$boxes .="<input type='checkbox' name='".$box['name']."' value='1' title='".$box['value']."' checked ".$boxClick."> ".$box['string']."<br>";
}else{
- $boxes .="<input type='checkbox' name='".$box['name']."' value='1' title='".$box['value']."'".$boxClick.";> ".$box['string']."<br>";
+ $boxes .="<input type='checkbox' name='".$box['name']."' value='1' title='".$box['value']."'".$boxClick."> ".$box['string']."<br>";
}
}
$smarty->assign("CheckBoxes", $boxes);
function save_object()
{
/* Get up to date config */
- $this->config = $this->parent->config;
+ if(isset($this->parent->config)){
+ $this->config = $this->parent->config;
+ }
/* Update current base */
if($this->DepartmentsAdded){
title='"._("Restore snapshopts of already deleted objects")."'
alt='"._("Restore")."' name='RestoreDeletedSnapShot'> ";
}else{
- $str = "<img class='center' src='images/restore_grey.png'> ";
+ $str = "<img class='center' src='images/restore_grey.png' alt=''> ";
}
- $str .= "<img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+# $str .= "<img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
}
return($str);
}
$str.= "<input class='center' type='image' src='images/restore.png'
alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
} else {
- $str = "<img class='center' src='images/restore_grey.png'> ";
+ $str = "<img class='center' src='images/restore_grey.png' alt=''> ";
}
$str.= "<input class='center' type='image' src='images/snapshot.png'
$this->departments = array();
/* Get all departments within this subtree */
- $deps= get_list("(&(|(ou=*)(description=*))(objectClass=gosaDepartment))", $this->ui->subtreeACL,
- $base, array("ou", "description"), GL_SIZELIMIT | GL_CONVERT);
+ $deps= get_list("(&(|(ou=*)(description=*))(objectClass=gosaDepartment))", $this->module, $base,
+ array("ou", "description"), GL_SIZELIMIT | GL_CONVERT);
/* Edit delete link for system types
*/
/* Add deps to this dialog object list */
foreach($this->departments as $key=> $val){
+
/* Add missing entries ... */
if(!isset($this->config->departments[trim($key)])){
$this->config->departments[trim($key)]="";