summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3de8995)
raw | patch | inline | side by side (parent: 3de8995)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Aug 2005 14:58:37 +0000 (14:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Aug 2005 14:58:37 +0000 (14:58 +0000) |
positioning of chkboxes changed
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1133 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1133 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 400502e09d35e4c9d7afab826fa9406c989c75d1..8d901b400fb72c31054ba0c87cd5763220d8312d 100644 (file)
}
}
+ if($this->goFonQueueAnnounceHoldtime == "no"){
+ $this->goFonQueueAnnounceHoldtime=false;
+ }
$this->old_phone_numbers = $this->telephoneNumber;
}
$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"),
$this->goFonDialOption_r;
}
+ if($this->goFonQueueAnnounceHoldtime != false) {
+ $this->goFonQueueAnnounceHoldtime = "yes";
+ }else{
+ $this->goFonQueueAnnounceHoldtime = "no";
+ }
+
+
/* Generate Priority Entry */
$queue["announce"] = "";
$queue["monitor_join"] = "";
$this->$val = false;
}
}
+ if(isset($_POST['goFonQueueAnnounceHoldtime'])){
+ $this->goFonQueueAnnounceHoldtime = "yes";
+ }else{
+ $this->goFonQueueAnnounceHoldtime = false;
+ }
+
}
}
}
$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);
index 2efbc828b7f3140c266bef4a37b94c8fdd93b807..4cfd3abf7b3b64097e5998340a3a96d941711721 100644 (file)
{t}(in seconds){/t}
</td>
</tr>
- <tr>
- <td>
- {t}Announce holdtime{/t}
- </td>
- <td>
- <select name="goFonQueueAnnounceHoldtime" {$goFonQueueAnnounceHoldtimeACL}>
- {html_options options=$goFonQueueAnnounceHoldtimeOptions selected=$goFonQueueAnnounceHoldtime}
- <option disabled> </option>
- </select>
- </td>
- </tr>
- <tr>
- <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 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 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 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 colspan=2>
- <input type="checkbox" name='goFonDialOption_r' value='r' {$goFonDialOption_rCHK} {$goFonDialOption_rACL}>
- {t}Ring instead of playing background music{/t}
- </td>
- </tr>
</table>
</td>
<td valign='top' style="border-left: 1px solid rgb(160, 160, 160);">
</table>
</td>
+</tr>
+<tr>
+ <td colspan=2>
+ <p class="seperator">
+ </td>
+</tr>
+<tr>
+<td>
+ <h2><img alt="" src="images/select_phone.png" align="middle"> {t}Phone attributes {/t}</h2>
+ <table summary="" style="width: 100%; vertical-align: top; text-align: left;" border="0" cellpadding="4">
+ <tr>
+ <td colspan=2>
+ <input type="checkbox" name='goFonQueueAnnounceHoldtime' value='yes' {$goFonQueueAnnounceHoldtimeCHK} {$goFonQueueAnnounceHoldtimeACL}>
+ {t}Announce holdtime{/t}
+ </td>
+ </tr>
+ <tr>
+ <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 colspan=2>
+ <input type="checkbox" name='goFonDialOption_T' value='T' {$goFonDialOption_TCHK} {$goFonDialOption_TACL}>
+ {t}Allows calling user to transfer call{/t}
+ </td>
+ </table>
+</td>
+<td valign='top' style="border-left: 1px solid rgb(160, 160, 160);">
+ <h2><img alt="" src="images/select_phone.png" align="middle"> {t}Additional phone attributes {/t}</h2>
+ <table summary="" style="width: 100%; vertical-align: top; text-align: left;" border="0" cellpadding="4">
+ <tr>
+ <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 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 colspan=2>
+ <input type="checkbox" name='goFonDialOption_r' value='r' {$goFonDialOption_rCHK} {$goFonDialOption_rACL}>
+ {t}Ring instead of playing background music{/t}
+ </td>
+ </tr>
+ </table>
+</td>
</tr>
</table>