From b659e0e02013ba65d43fe5d7b0215fbddf3fa596 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2005 07:39:06 +0000 Subject: [PATCH] Js check goFonConferenceOwner added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1163 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_phoneConferenceGeneric.inc | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) 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))); } -- 2.30.2