summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd4ecb1)
raw | patch | inline | side by side (parent: fd4ecb1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Apr 2006 04:20:49 +0000 (04:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Apr 2006 04:20:49 +0000 (04:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3020 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history | |
plugins/gofon/conference/class_phoneConferenceManagment.inc | patch | blob | history |
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 4713d45703d790ebebe80e6cb8dd196313dc9327..591bd244d9b3f85c54264e67bfc61248d03255b8 100644 (file)
/* Set base */
if ($this->dn == "new"){
$ui= get_userinfo();
- if(isset($_SESSION['conferencefilter']['depselect'])){
- $this->base = $_SESSION['conferencefilter']['depselect'];
+ if(isset($_SESSION['CurrentMainBase'])){
+ $this->base = $_SESSION['CurrentMainBase'];
}else{
$this->base= dn2base($ui->dn);
}
diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc
index 37314a836a3e3f44834f507501d64dd5d3c7277f..890afd9c9d6846e8f4a52ba2101062ebab4b5dd7 100644 (file)
if (!isset($_SESSION["conferencefilter"])){
$base= get_base_from_people($ui->dn);
$conferencefilter= array(
- "depselect" => $base,
"regex" => "*");
$_SESSION["conferencefilter"] = $conferencefilter;
}
if(isset($_GET['act'])&&($_GET['act']=="dep_open")){
$s_action="open";
$s_entry = base64_decode($_GET['dep_id']);
- $conferencefilter['depselect']= "".$this->config->departments[trim($s_entry)];
+ $_SESSION['CurrentMainBase']= $this->config->departments[trim($s_entry)];
}
foreach($_POST as $key => $post){
}
/* Department changed? */
- if(isset($_POST['depselect']) && $_POST['depselect']){
- $conferencefilter['depselect']= $_POST['depselect'];
+ if(isset($_POST['CurrentMainBase']) && $_POST['CurrentMainBase']){
+ $_SESSION['CurrentMainBase']= $_POST['CurrentMainBase'];
}
/* Homebutton is posted */
if($s_action=="home"){
- $conferencefilter['depselect']=(preg_replace("/^[^,]+,/","",$this->ui->dn));
- $conferencefilter['depselect']=(preg_replace("/^[^,]+,/","",$conferencefilter['depselect']));
+ $_SESSION['CurrentMainBase'] =preg_replace("/^[^,]+,/","",$this->ui->dn);
+ $_SESSION['CurrentMainBase'] =preg_replace("/^[^,]+,/","",$_SESSION['CurrentMainBase']);
}
/* back to root */
if($s_action=="root"){
- $conferencefilter['depselect']=($this->config->current['BASE']);
+ $_SESSION['CurrentMainBase']=($this->config->current['BASE']);
}
/* If Backbutton is Posted */
if($s_action=="back"){
- $base_back = preg_replace("/^[^,]+,/","",$conferencefilter['depselect']);
+ $base_back = preg_replace("/^[^,]+,/","",$_SESSION['CurrentMainBase']);
$base_back = convert_department_dn($base_back);
if(isset($this->config->departments[trim($base_back)])){
- $conferencefilter['depselect']= $this->config->departments[trim($base_back)];
+ $_SESSION['CurrentMainBase']= $this->config->departments[trim($base_back)];
}else{
- $conferencefilter['depselect']= $this->config->departments["/"];
+ $_SESSION['CurrentMainBase']= $this->config->departments["/"];
}
}
/* Header + Departmentlist*/
$options= "";
foreach ($this->config->idepartments as $key => $value){
- if ($conferencefilter['depselect'] == $key){
+ if ($_SESSION['CurrentMainBase'] == $key){
$options.= "<option selected='selected' value='$key'>$value</option>";
} else {
$options.= "<option value='$key'>$value</option>";
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
" <input class='center' type='image' align='middle' src='images/list_new_conference.png' title='"._("Create new conference")."' alt='"._("New conference")."' name='user_new'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
- _("Base")." <select name='depselect' onChange='mainform.submit()' class='center'>$options</select>".
+ _("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
" <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit"). "'> ".
"</div>";
function reload()
{
$conferencefilter = $_SESSION["conferencefilter"];
- $base = $conferencefilter['depselect'];
+ $base = $_SESSION['CurrentMainBase'];
$regex = $conferencefilter['regex'];
$this->conferences=get_list($this->ui->subtreeACL, "(&(|(cn=$regex)(description=$regex))(objectClass=goFonConference))",FALSE, $base, array("*"), TRUE);