From 8229cf5c378331665c163a36a209715276567b71 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Aug 2005 14:58:37 +0000 Subject: [PATCH] Changed "goFonQueueAnnounceHoldtime" into chkbox, positioning of chkboxes changed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1133 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_phonequeue.inc | 25 +++++- plugins/admin/ogroups/phonequeue.tpl | 93 ++++++++++++---------- 2 files changed, 75 insertions(+), 43 deletions(-) diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc index 400502e09..8d901b400 100644 --- a/plugins/admin/ogroups/class_phonequeue.inc +++ b/plugins/admin/ogroups/class_phonequeue.inc @@ -66,6 +66,9 @@ class phonequeue extends plugin } } + if($this->goFonQueueAnnounceHoldtime == "no"){ + $this->goFonQueueAnnounceHoldtime=false; + } $this->old_phone_numbers = $this->telephoneNumber; } @@ -132,7 +135,6 @@ class phonequeue extends plugin $smarty= get_smarty(); $smarty->assign("goFonQueueLanguageOptions",array('de'=>_('German'),'ur'=>_('Uruguai'))); - $smarty->assign("goFonQueueAnnounceHoldtimeOptions",array('no'=>_("No"),'yes'=>_('Yes'))); $types= array('ringall' =>_("ring all"), 'roundrobin' =>_("round robin"), 'leastrecent'=>_("least recently called"), @@ -377,6 +379,13 @@ class phonequeue extends plugin $this->goFonDialOption_r; } + if($this->goFonQueueAnnounceHoldtime != false) { + $this->goFonQueueAnnounceHoldtime = "yes"; + }else{ + $this->goFonQueueAnnounceHoldtime = "no"; + } + + /* Generate Priority Entry */ $queue["announce"] = ""; $queue["monitor_join"] = ""; @@ -497,6 +506,12 @@ class phonequeue extends plugin $this->$val = false; } } + if(isset($_POST['goFonQueueAnnounceHoldtime'])){ + $this->goFonQueueAnnounceHoldtime = "yes"; + }else{ + $this->goFonQueueAnnounceHoldtime = false; + } + } } @@ -515,7 +530,13 @@ class phonequeue extends plugin } $this->generate_mysql_entension_entries(true); if($this->attrs['goFonDialOption']=="") $this->attrs['goFonDialOption']=array(); - + + if($this->goFonQueueAnnounceHoldtime != "no" ){ + $this->attrs['goFonQueueAnnounceHoldtime'] = "yes"; + }else{ + $this->attrs['goFonQueueAnnounceHoldtime'] = "no"; + } + /* Save data to LDAP */ $ldap->cd($this->dn); $ldap->modify($this->attrs); diff --git a/plugins/admin/ogroups/phonequeue.tpl b/plugins/admin/ogroups/phonequeue.tpl index 2efbc828b..4cfd3abf7 100644 --- a/plugins/admin/ogroups/phonequeue.tpl +++ b/plugins/admin/ogroups/phonequeue.tpl @@ -86,47 +86,6 @@ {t}(in seconds){/t} - - - {t}Announce holdtime{/t} - - - - - - - - - {t}Allow the called user to transfer his call{/t} - - - - - - {t}Allows calling user to transfer call{/t} - - - - - - {t}Allow the called to hangup by pressing *{/t} - - - - - - {t}Allows calling to hangup by pressing *{/t} - - - - - - {t}Ring instead of playing background music{/t} - - @@ -227,7 +186,59 @@ + + + +

+ + + + +

 {t}Phone attributes {/t}

+ + + + + + + + + +
+ + {t}Announce holdtime{/t} +
+ + {t}Allow the called user to transfer his call{/t} +
+ + {t}Allows calling user to transfer call{/t} +
+ + +

 {t}Additional phone attributes {/t}

+ + + + + + + + + + +
+ + {t}Allow the called to hangup by pressing *{/t} +
+ + {t}Allows calling to hangup by pressing *{/t} +
+ + {t}Ring instead of playing background music{/t} +
+ -- 2.30.2