From 4f3071d123be4d4e9831b78e12098f649fbeedce Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Aug 2005 14:06:04 +0000 Subject: [PATCH] We are able to choose the base now: git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../conference/class_phoneConferenceGeneric.inc | 14 +++++++++++++- .../conference/class_phoneConferenceManagment.inc | 9 +++------ plugins/gofon/conference/generic.tpl | 10 +++++++++- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index c95a03717..a96686dd3 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -43,12 +43,14 @@ class conference extends plugin var $old_tele_number = false; var $generate_error = ""; + var $old_dn; + /* Headpage attributes */ var $last_dep_sorting= "invalid"; var $departments= array(); /* attribute list for save action */ - var $attributes= array("cn", "description", "goFonPIN","goFonConferenceOption_P","goFonConferenceOption_r", + var $attributes= array("cn","base", "description", "goFonPIN","goFonConferenceOption_P","goFonConferenceOption_r", "goFonConferenceOption_M","goFonConferenceOption_s","goFonConferenceOption_i","goFonConferenceOption_c", "goFonConferenceOption_D","goFonConferenceOptionFormat","goFonConferenceOptionLifetime","telephoneNumber"); @@ -94,6 +96,7 @@ class conference extends plugin $this->goFonConferenceOptionLifetime = $tmp1[1]; $this->old_tele_number = $this->telephoneNumber; } + $this->old_dn = $this->dn; } function execute() @@ -102,6 +105,11 @@ class conference extends plugin $this->config->make_idepartments(); $smarty= get_smarty(); + print_a($_POST); + + $smarty->assign("bases" ,array_flip($this->config->departments)); + $smarty->assign("base" ,$this->base); + $smarty->assign("goFonConferenceOptions", array("D"=>"Conference ","d"=>"Conference without PIN")); $smarty->assign("goFonConferenceOptionFormats", array("WAV"=>"Wave","GSM"=>"GSM","WAV49"=>"Wave49")); $smarty->assign("goFonConferenceOption", $this->goFonConferenceOption_D); @@ -383,7 +391,11 @@ class conference extends plugin unset($this->attrs['goFonConferenceOptionLifetime']); /* Write back to ldap */ + + unset($this->attrs['base']); + $ldap= $this->config->get_ldap_link(); + $ldap->cat($this->dn); $a= $ldap->fetch(); $ldap->cd($this->dn); diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc index 2c3f99e8e..3ffdbd874 100644 --- a/plugins/gofon/conference/class_phoneConferenceManagment.inc +++ b/plugins/gofon/conference/class_phoneConferenceManagment.inc @@ -343,22 +343,19 @@ class phoneConferenceManagment extends plugin function reload() { - $base = "dc=gonicus,dc=de"; - $conferencefilter = $_SESSION["conferencefilter"]; $base = $conferencefilter['depselect']; $regex = $conferencefilter['regex']; - - $this->conferences= get_list($this->ui->subtreeACL, "(objectClass=goFonConference)",TRUE, $base, array("*"), TRUE); + + $this->conferences= get_list2($this->ui->subtreeACL, "(objectClass=goFonConference)",TRUE, $base, array("*"), FALSE); /* NEW LIST MANAGMENT * We also need to search for the departments * So we are able to navigate like in konquerer */ - $base2 = preg_replace("/ou=people,/i","",$base); $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))", - TRUE, $base2, array("ou", "description"), TRUE); + TRUE, $base, array("ou", "description"), TRUE); $this->departments= array(); diff --git a/plugins/gofon/conference/generic.tpl b/plugins/gofon/conference/generic.tpl index 0cd720efb..b46b78259 100644 --- a/plugins/gofon/conference/generic.tpl +++ b/plugins/gofon/conference/generic.tpl @@ -33,13 +33,21 @@
- {$must} + {$must} + + {$must} + + + + -- 2.30.2