summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 517cadd)
raw | patch | inline | side by side (parent: 517cadd)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Aug 2005 14:09:00 +0000 (14:09 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Aug 2005 14:09:00 +0000 (14:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1127 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_phonequeue.inc | patch | blob | history | |
plugins/admin/ogroups/phonequeue.tpl | patch | blob | history |
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index a68a4bd8eee5891f319f4756859f0176001e0a22..400502e09d35e4c9d7afab826fa9406c989c75d1 100644 (file)
$smarty->assign("goFonQueueLanguageOptions",array('de'=>_('German'),'ur'=>_('Uruguai')));
$smarty->assign("goFonQueueAnnounceHoldtimeOptions",array('no'=>_("No"),'yes'=>_('Yes')));
- $smarty->assign("goFonQueueStrategyOptions",array('ringall' =>_("ring all available channels until one answers"),
- 'roundrobin' =>_("take turns ringing each available interface"),
- 'leastrecent'=>_("ring interface which was least recently called by this queue"),
- 'fewestcalls'=>_("ring the one with fewest completed calls from this queue"),
- 'random' =>_("ring random interface"),
- 'rrmemory' =>_("round robin with memory, remember where we left off last ring pass")));
+ $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);
foreach($this->attributes as $key => $val){
$smarty->assign($val,$this->$val);
index dafb6fb4259f5f529b8fb6c1b3f529887bdfbca8..2efbc828b7f3140c266bef4a37b94c8fdd93b807 100644 (file)
<table summary="{t}Queue Settings{/t}" style="width: 100%; vertical-align: top; text-align: left;" border="0" cellpadding="4">
<tr>
<td valign='top'>
- <h2>
- <img alt="" src="images/select_phone.png" align="middle">
- {t}Generic queue setup{/t}
- </h2>
- <table summary="{t}Generic queue Settings{/t}" cellspacing="0" cellpadding="5">
- <tr>
- <td>
- {t}Phone Number{/t}
- </td>
- <td>
- <select style="width:380px; height:60px;" name="goFonQueueNumber_List" size=6 {$telephoneNumberACL}>
+ <h2><img alt="" src="images/select_phone.png" align="middle"> {t}Phone numbers{/t}</h2>
+ <table summary="">
+ <tr>
+ <td colspan=2>
+ <table summary="{t}Generic queue Settings{/t}">
+ <tr>
+ <td>
+ <select style="width:300px; height:60px;" name="goFonQueueNumber_List" size=6 {$telephoneNumberACL}>
{html_options options=$telephoneNumber}
<option disabled> </option>
</select>
- <br>
+ </td>
+ <td style="vertical-align:center">
+ <input type="submit" value="{t}Up{/t}" name="up_phonenumber" {$telephoneNumberACL}><br>
+ <input type="submit" value="{t}Down{/t}" name="down_phonenumber" {$telephoneNumberACL}>
+ </td>
+ </tr>
+ <tr>
+ <td colspan=2>
<input name="phonenumber" size=20 align=middle maxlength=60 {$telephoneNumberACL} value="">
<input type="submit" value="{t}Add{/t}" name="add_phonenumber" {$telephoneNumberACL}>
<input type="submit" value="{t}Delete{/t}" name="delete_phonenumber" {$telephoneNumberACL}>
- <input type="submit" value="{t}Up{/t}" name="up_phonenumber" {$telephoneNumberACL}>
- <input type="submit" value="{t}Down{/t}" name="down_phonenumber" {$telephoneNumberACL}>
- </td>
+ </td>
+ </tr>
+ </table>
+ </tr>
+ <tr>
+ <td colspan=2><h2><img alt="" src="images/select_phone.png" align="middle"> {t}Options{/t}</h2></td>
</tr>
<tr>
<td>
{t}Language{/t}
</td>
<td>
- <select style="width:380px;" name="goFonQueueLanguage" {$goFonQueueLanguageACL}>
+ <select name="goFonQueueLanguage" {$goFonQueueLanguageACL}>
{html_options options=$goFonQueueLanguageOptions selected=$goFonQueueLanguage}
<option disabled> </option>
</select>
{t}Strategy{/t}
</td>
<td>
- <select style="width:380px;" name="goFonQueueStrategy" {$goFonQueueStrategyACL}>
+ <select name="goFonQueueStrategy" {$goFonQueueStrategyACL}>
{html_options options=$goFonQueueStrategyOptions selected=$goFonQueueStrategy}
<option disabled> </option>
</select>
{t}Announce holdtime{/t}
</td>
<td>
- <select style="width:380px;" name="goFonQueueAnnounceHoldtime" {$goFonQueueAnnounceHoldtimeACL}>
+ <select name="goFonQueueAnnounceHoldtime" {$goFonQueueAnnounceHoldtimeACL}>
{html_options options=$goFonQueueAnnounceHoldtimeOptions selected=$goFonQueueAnnounceHoldtime}
<option disabled> </option>
</select>
</td>
</tr>
<tr>
- <td>
- </td>
- <td>
+ <td colspan=2>
<input type="checkbox" name='goFonDialOption_t' value='t' {$goFonDialOption_tCHK} {$goFonDialOption_tACL}>
{t}Allow the called user to transfer his call{/t}
</td>
</tr>
<tr>
- <td>
- </td>
- <td>
+ <td colspan=2>
<input type="checkbox" name='goFonDialOption_T' value='T' {$goFonDialOption_TCHK} {$goFonDialOption_TACL}>
{t}Allows calling user to transfer call{/t}
</td>
</tr>
<tr>
- <td>
- </td>
- <td>
+ <td colspan=2>
<input type="checkbox" name='goFonDialOption_h' value='h' {$goFonDialOption_hCHK} {$goFonDialOption_hACL}>
{t}Allow the called to hangup by pressing *{/t}
</td>
</tr>
<tr>
- <td>
- </td>
- <td>
+ <td colspan=2>
<input type="checkbox" name='goFonDialOption_H' value='H' {$goFonDialOption_HCHK} {$goFonDialOption_HACL}>
{t}Allows calling to hangup by pressing *{/t}
</td>
</tr>
<tr>
- <td>
- </td>
- <td>
+ <td colspan=2>
<input type="checkbox" name='goFonDialOption_r' value='r' {$goFonDialOption_rCHK} {$goFonDialOption_rACL}>
{t}Ring instead of playing background music{/t}
</td>
<img alt="" src="images/select_phone.png" align="middle">
{t}Queue sound file setup{/t}
</h2>
- <table summary="{t}Generic queue Settings{/t}" cellspacing="0" cellpadding="5">
+ <table summary="{t}Generic queue Settings{/t}">
<!--<tr>
<td>
{t}Use music on hold instead of ringing{/t}