summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ff25cd)
raw | patch | inline | side by side (parent: 2ff25cd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 May 2006 07:30:22 +0000 (07:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 May 2006 07:30:22 +0000 (07:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3480 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history | |
plugins/gofon/conference/generic.tpl | patch | blob | history |
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index ab70ac5fbb31b9761ceccdf276a48474b823d29a..49f08c236214318632b87065bb6395b4d9d94704 100644 (file)
var $last_dep_sorting= "invalid";
var $departments= array();
+ var $dialog ;
+
/* attribute list for save action */
var $attributes= array("cn","base", "description", "goFonPIN","goFonConferenceOption_P","goFonConferenceOption_r",
"goFonConferenceOption_M","goFonConferenceOption_s","goFonConferenceOption_i","goFonConferenceOption_c",
$smarty->assign("bases" ,$this->config->idepartments);
$smarty->assign("base" ,$this->base);
+ $once = true;
+ foreach($_POST as $name => $value){
+ if(preg_match("/^chooseBase/",$name) && $once){
+ $once = false;
+ $this->dialog = new baseSelectDialog($this->config);
+ $this->dialog->setCurrentBase($this->base);
+ }
+ }
+
+ /* Dialog handling */
+ if(is_object($this->dialog)){
+ /* Must be called before save_object */
+ $this->dialog->save_object();
+
+ if($this->dialog->isClosed()){
+ $this->dialog = false;
+ }elseif($this->dialog->isSelected()){
+ $this->base = $this->dialog->isSelected();
+ $this->dialog= false;
+ }else{
+ return($this->dialog->execute());
+ }
+ }
+
$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);
index 0ba84c1ecf3fb802b3a3e6efa958436cc7ab1baa..f7b25a2d221bf6ab090994424f1cf26f0f26c974 100644 (file)
<select id="base" size="1" name="base" title="{t}Choose subtree to place conference in{/t}" {$baseACL}>
{html_options options=$bases selected=$base}
</select>
+ {if $baseACL == ""}
+ <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+ {else}
+ <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+ {/if}
</td>
</tr>
</table>