summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ec753a)
raw | patch | inline | side by side (parent: 5ec753a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 Aug 2005 13:04:06 +0000 (13:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 Aug 2005 13:04:06 +0000 (13:04 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1182 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_phonequeue.inc | patch | blob | history |
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index 96fbdf170027e37f002438fe51641631b04d50f2..7e2c822a11ba5afd86a8a7bd037687ca43787fdc 100644 (file)
var $goFonDialOption ="";
var $goFonQueueRetry =5;
+ var $goFonQueueStrategyOptions=array();
+ var $goFonQueueStrategyOptionsR=array();
+
+
var $old_phone_numbers =array();
/* attribute list for save action */
$this->goFonQueueAnnounceHoldtime=false;
}
$this->old_phone_numbers = $this->telephoneNumber;
+
+ $types= array('ringall' =>_("ring all"),
+ 'roundrobin' =>_("round robin"),
+ 'leastrecent'=>_("least recently called"),
+ 'fewestcalls'=>_("fewest completed calls"),
+ 'random' =>_("random"),
+ 'rrmemory' =>_("round robin with memory"));
+
+ $i = 0;
+ foreach($types as $type => $name){
+ $i++;
+ $this->goFonQueueStrategyOptions[$i] =$name;
+ $this->goFonQueueStrategyOptionsR[$i] =$type;
+ $tmp[$type] = $i;
+ }
+
+ $this->goFonQueueStrategy= $tmp[$this->goFonQueueStrategy];
+
+
}
}
}
-
$smarty= get_smarty();
$smarty->assign("goFonQueueLanguageOptions",array('de'=>_('German'),'ur'=>_('Uruguai')));
- $types= array('ringall' =>_("ring all"),
- 'roundrobin' =>_("round robin"),
- 'leastrecent'=>_("least recently called"),
- 'fewestcalls'=>_("fewest completed calls"),
- 'random' =>_("random"),
- 'rrmemory' =>_("round robin with memory"));
- sort($types);
- $smarty->assign("goFonQueueStrategyOptions", $types);
+ $smarty->assign("goFonQueueStrategyOptions", $this->goFonQueueStrategyOptions);
foreach($this->attributes as $key => $val){
$smarty->assign($val,$this->$val);
$queue["name"] = $this->attrs['cn'][0];
$queue["timeout"] = $this->goFonTimeOut;
$queue["maxlen"] = $this->goFonMaxLen;
- $queue["strategy" ] = $this->goFonQueueStrategy;
+ $queue["strategy" ] = $this->goFonQueueStrategyOptionsR[$this->goFonQueueStrategy];
$queue["queue_thankyou"] = $this->goFonQueueThankYou;
$queue["queue_reporthold"] = $this->goFonQueueReportHold;
$queue["announce_frequency"] = $this->goFonAnnounceFrequency;
}else{
$this->attrs['goFonQueueAnnounceHoldtime'] = "no";
}
-
+
+ $this->attrs['goFonQueueStrategy'] = $this->goFonQueueStrategyOptionsR[$this->goFonQueueStrategy];
+
/* Save data to LDAP */
$ldap->cd($this->dn);
$ldap->modify($this->attrs);