From: hickert Date: Wed, 17 Aug 2005 07:39:06 +0000 (+0000) Subject: Js check goFonConferenceOwner added X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b659e0e02013ba65d43fe5d7b0215fbddf3fa596;p=gosa.git Js check goFonConferenceOwner added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1163 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index 5fd4c0f5d..604bb7a76 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -36,6 +36,8 @@ class conference extends plugin var $goFonConferenceOption_c = ""; // Count User var $goFonConferenceOption_D = ""; // Conference Type, no PIN/PIN + var $goFonConferenceOwner = ""; + var $goFonConferenceOptionFormat = ""; var $goFonConferenceOptionLifetime = ""; var $telephoneNumber = ""; @@ -52,7 +54,7 @@ class conference extends plugin /* attribute list for save action */ var $attributes= array("cn","base", "description", "goFonPIN","goFonConferenceOption_P","goFonConferenceOption_r", "goFonConferenceOption_M","goFonConferenceOption_s","goFonConferenceOption_i","goFonConferenceOption_c", - "goFonConferenceOption_D","goFonConferenceOptionFormat","goFonConferenceOptionLifetime","telephoneNumber"); + "goFonConferenceOption_D","goFonConferenceOptionFormat","goFonConferenceOptionLifetime","telephoneNumber","goFonConferenceOwner"); var $objectclasses= array("top", "goFonConference"); @@ -77,6 +79,7 @@ class conference extends plugin $this->base= preg_replace ("/^[^,]+,/", "", $this->dn); } + $this->goFonConferenceOwner=$this->ui->dn; /* Parse Options ... * Parameter|Lifetime|number @@ -121,15 +124,16 @@ class conference extends plugin $smarty->assign($val."CHK", " checked "); } } - - if($this->goFonConferenceOption_P != "P"){ - $smarty->assign("goFonPINACL"," disabled "); - $smarty->assign("goFonPIN",""); - } - if($this->goFonConferenceOption_r != "r"){ - $smarty->assign("goFonConferenceOptionFormatACL"," disabled "); - } + if($_SESSION['js']==1){ + if($this->goFonConferenceOption_P != "P"){ + $smarty->assign("goFonPINACL"," disabled "); + $smarty->assign("goFonPIN",""); + } + if($this->goFonConferenceOption_r != "r"){ + $smarty->assign("goFonConferenceOptionFormatACL"," disabled "); + } + } return($smarty->fetch (get_template_path('generic.tpl', TRUE))); }