1 <table summary="{t}Phone numbers{/t}" style="width:100%">
2 <tr>
3 <td style="vertical-align:top; border-right:1px solid #A0A0A0; width:50%">
4 <h3>
5 <img class="center" alt="" align="middle" src="plugins/gofon/images/banana.png" />
6 {t}Phone numbers{/t}
7 </h3>
9 {if $multiple_support}
11 <select style="width:100%;" name="dummy1" size=7 >
12 {html_options options=$phoneNumbers}
13 <option disabled> </option>
14 </select>
16 {else}
18 {render acl=$telephoneNumberACL}
19 <select style="width:100%;" name="phonenumber_list[]" size=7 multiple>
20 {html_options options=$phoneNumbers}
21 <option disabled> </option>
22 </select>
23 {/render}
24 <br>
25 {render acl=$telephoneNumberACL}
26 <input type='text' name="phonenumber" size=20 align=middle maxlength=60 value="">
27 {/render}
28 {render acl=$telephoneNumberACL}
29 <input type="submit" value="{msgPool type=addButton}" name="add_phonenumber">
30 {/render}
31 {render acl=$telephoneNumberACL}
32 <input type="submit" value="{msgPool type=delButton}" name="delete_phonenumber">
33 {/render}
35 {/if}
36 </td>
37 <td style="vertical-align:top; width:50%;">
38 <table summary="" style="width:100%" border=0>
39 <tr>
41 <td style="vertical-align:top;">
42 <h3>{t}Telephone hardware{/t}</h3>
44 <table summary="{t}Telephone{/t}" border=0>
45 {if !$multiple_support}
46 <tr>
47 <td>
48 {t}Telephone{/t}
49 </td>
50 <td>
51 {render acl=$goFonHardwareACL checkbox=$multiple_support checked=$use_goFonHardware}
52 {$hardware_list}
53 {/render}
54 </td>
55 </tr>
56 {/if}
57 <tr>
58 <td>{t}Home server{/t}{$must}
59 </td>
60 <td>
61 {render acl=$goFonHomeServerACL checkbox=$multiple_support checked=$use_goFonHomeServer}
62 <select name='goFonHomeServer' title='{t}Select the accounts home server{/t}'>
63 {html_options options=$goFonHomeServers selected=$goFonHomeServer}
64 </select>
65 {/render}
66 </td>
67 </tr>
68 <tr>
69 <td>{t}Context{/t}
70 </td>
71 <td>
72 {render acl=$goFonContextACL checkbox=$multiple_support checked=$use_goFonContext}
73 <select name='context' title='{t}Select the accounts context{/t}'>
74 {html_options values=$sip_contexts output=$sip_contexts selected=$context}
75 </select>
76 {/render}
77 </td>
78 </tr>
79 <tr>
80 <td>{t}Voicemail context{/t}
81 </td>
82 <td>
83 {render acl=$goFonVoiceMailContextACL checkbox=$multiple_support checked=$use_goFonVoiceMailContext}
84 <select name='voice_context' title='{t}Select the accounts context{/t}'>
85 {html_options values=$voicemail_contexts output=$voicemail_contexts selected=$voice_context}
86 </select>
87 {/render}
88 </td>
89 </tr>
91 <tr>
92 <td>
93 <label for="goFonVoicemailPIN">{t}Voicemail PIN{/t}{$must}</label>
94 </td>
95 <td>
96 {render acl=$goFonVoicemailPINACL checkbox=$multiple_support checked=$use_goFonVoicemailPIN}
97 <input type="password" id="goFonVoicemailPIN" name="goFonVoicemailPIN" value="{$goFonVoicemailPIN}">
98 {/render}
99 </td>
100 </tr>
101 <tr>
102 <td>
103 <label for="goFonPIN">{t}Phone PIN{/t}{$must}</label>
104 </td>
105 <td>
106 {render acl=$goFonPINACL checkbox=$multiple_support checked=$use_goFonPIN}
107 <input type="password" id="goFonPIN" name="goFonPIN" value="{$goFonPIN}">
108 {/render}
109 </td>
110 </tr>
111 </table>
112 </td>
113 </tr>
114 </table>
115 </td>
117 </tr>
118 <tr>
119 <td style="vertical-align:top; border-top:1px solid #A0A0A0; width:50%" colspan="2"> </td>
120 </tr>
121 <tr style="vertical-align:top; border-top:1px solid #A0A0A0;">
122 <td colspan=2 style="vertical-align:top;width:50%">
123 <h3>
124 <img class="center" alt="" src="plugins/gofon/images/select_macro.png" align="middle" />
125 {t}Phone macro{/t}
126 </h3>
127 <table summary="{t}Phone macro{/t}">
128 <tr>
129 <td colspan=2>
130 {render acl=$goFonMacroACL checkbox=$multiple_support checked=$use_macro}
131 <select id="macro" name="macro" onchange="document.mainform.submit()">
132 {html_options options=$macros selected=$macro}
133 <option disabled> </option>
134 </select>
135 {/render}
136 {if $javascript eq 'false'}
137 {render acl=$goFonMacroACL}
138 <input type="submit" name="refresh" value="{t}Refresh{/t}">
139 {/render}
140 {/if}
141 </td>
142 </tr>
143 </table>
144 <br>
145 {$macrotab}
146 </td>
147 </tr>
148 </table>
149 <input type="hidden" name="phoneTab" value="phoneTab">
152 <script language="JavaScript" type="text/javascript">
153 <!-- // First input field on page
154 focus_field('phonenumber');
155 -->
156 </script>