1 <table style="width:100%; vertical-align:top; text-align:left;" cellpadding="0" border="0">
2 <tr>
3 <td style="width:50%; vertical-align:top;">
5 <h3>{image path="images/rightarrow.png"} {t}Generic{/t}
6 </h3>
7 <table >
8 {if !$multiple_support}
9 <tr>
10 <td><label for="mail">{t}Primary address{/t}</label>{$must}</td>
11 <td>
12 {if !$isModifyableMail && $initially_was_account}
13 <input type='text' disabled size=30 value="{$mail}">
14 {else}
15 {if $domainSelectionEnabled}
16 {render acl=$mailACL}
17 <input type='text' id="mail" name="mail" size=20 maxlength=65 value="{$mail}">
18 {/render}
19 @<select name='MailDomain'>
20 {html_options values=$MailDomains output=$MailDomains selected=$MailDomain}
21 </select>
22 {else}
23 {render acl=$mailACL}
24 <input type='text' id="mail" name="mail" size=35 maxlength=65 value="{$mail}">
25 {/render}
26 {/if}
27 {/if}
28 </td>
29 </tr>
30 <tr>
31 <td><label for="gosaMailServer">{t}Server{/t}</label></td>
32 <td>
33 {if !$isModifyableServer && $initially_was_account}
34 <input type='text' disabled size=30 value="{$gosaMailServer}">
35 {else}
37 {render acl=$gosaMailServerACL}
38 <select size="1" id="gosaMailServer" name="gosaMailServer" title="{t}Specify the mail server where the user will be hosted on{/t}">
39 {html_options values=$MailServers output=$MailServers selected=$gosaMailServer}
40 <option disabled> </option>
41 </select>
42 {/render}
43 {/if}
44 </td>
45 </tr>
46 {/if}
48 <tr>
49 <td>
50 </td>
51 </tr>
52 {if $quotaEnabled}
53 <tr>
54 <td>{t}Quota usage{/t}</td>
55 <td>{$quotaUsage}</td>
56 </tr>
57 <tr>
58 <td><label for="gosaMailQuota">{t}Quota size{/t}</label></td>
59 <td>
60 {render acl=$gosaMailQuotaACL checkbox=$multiple_support checked=$use_gosaMailQuota}
61 <input id="gosaMailQuota" name="gosaMailQuota" size="6" align="middle" maxlength="60"
62 value="{$gosaMailQuota}"> MB
63 {/render}
64 </td>
65 </tr>
66 {/if}
67 </table>
68 </td>
69 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
70
71 </td>
72 <td>
73 {if !$multiple_support}
74 <h3>{image path="plugins/mail/images/alternatemail.png"}
75 <label for="alternates_list"> {t}Alternative addresses{/t}</ label></h3>
76 {render acl=$gosaMailAlternateAddressACL}
77 <select id="alternates_list" style="width:100%;height:100px;" name="alternates_list[]" size="15" multiple
78 title="{t}List of alternative mail addresses{/t}">
79 {html_options values=$gosaMailAlternateAddress output=$gosaMailAlternateAddress}
80 <option disabled> </option>
81 {/render}
82 </select>
83 <br />
84 {render acl=$gosaMailAlternateAddressACL}
85 <input type='text' name="alternate_address" size="30" align="middle" maxlength="65" value="">
86 {/render}
87 {render acl=$gosaMailAlternateAddressACL}
88 <button type='submit' name='add_alternate'>{msgPool type=addButton}</button>
90 {/render}
91 {render acl=$gosaMailAlternateAddressACL}
92 <button type='submit' name='delete_alternate'>{msgPool type=delButton}</button>
94 {/render}
95 {/if}
96 </td>
97 </tr>
98 <tr>
99 <td colspan="3">
100 <p class="seperator"> </p>
101 <table style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
102 <tr>
103 <td>
104 {render acl=$gosaMailDeliveryModeCACL}
105 <input class="center" type=checkbox id="own_script" name="own_script" value="1" {$own_script}
106 onClick="
107 changeState('sieveManagement');
108 changeState('drop_own_mails');
109 changeState('use_vacation');
110 changeState('use_spam_filter');
111 changeState('use_mailsize_limit');
112 changeState('import_vacation');
113 changeState('vacation_template');
114 changeState('only_local');
115 changeState('gosaVacationMessage');
116 changeState('gosaSpamSortLevel');
117 changeState('gosaSpamMailbox');
118 changeState('gosaMailMaxSize');
119 changeStates();"> {t}Use custom sieve script{/t} <b>({t}disables all Mail options!{/t})</b>
120 {/render}
121 </td>
122 </tr>
123 {if $allowSieveManagement}
124 <tr>
125 <td>
126 {render acl=$sieveManagementACL}
127 <button type='submit' name='sieveManagement' id="sieveManagement" {if $own_script == ""} disabled {/if}
128 >{t}Sieve Management{/t}</button>
130 {/render}
131 </td>
132 </tr>
133 {/if}
134 </table>
135 </td>
136 </tr>
137 <tr>
138 <td colspan="3">
139 <p class="seperator"> </p>
140 </td>
141 </tr>
142 </table>
144 <table style="width:100%; vertical-align:top; text-align:left;" cellpadding=4 border=0>
145 <tr style="padding-bottom:0px;">
146 <td style="width:50%">
147 {render acl=$gosaMailDeliveryModeIACL checkbox=$multiple_support checked=$use_drop_own_mails}
148 <input {if $own_script != ""} disabled {/if} class="center" id='drop_own_mails'
149 type=checkbox name="drop_own_mails" value="1" {$drop_own_mails}
150 title="{t}Select if you want to forward mails without getting own copies of them{/t}"> {t}No delivery to own mailbox{/t}
151 {/render}
152 <br>
154 {render acl=$gosaMailDeliveryModeVACL checkbox=$multiple_support checked=$use_use_vacation}
155 <input type=checkbox name="use_vacation" value="1" {$use_vacation}
156 id="use_vacation" {if $own_script != ""} disabled {/if}
157 title="{t}Select to automatically response with the vacation message defined below{/t}" class="center"
158 onclick="changeStates()"> {t}Activate vacation message{/t}
159 {/render}
161 <br>
163 {if $rangeEnabled}
164 <table>
165 <tr>
166 <td>{t}from{/t}</td>
167 <td style='width:140px'>
168 {render acl=$gosaVacationMessageACL}
169 <input type="text" id="gosaVacationStart" name="gosaVacationStart" class="date" style='width:100px' value="{$gosaVacationStart}">
170 {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
171 <script type="text/javascript">
172 {literal}
173 var datepicker = new DatePicker({ relative : 'gosaVacationStart', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
174 {/literal}
175 </script>
176 {/if}
177 {/render}
178 </td>
179 <td>{t}till{/t}</td>
180 <td style='width:140px'>
181 {render acl=$gosaVacationMessageACL}
182 <div id="vacstart"><input type="text" id="gosaVacationStop" name="gosaVacationStop" class="date" style='width:100px' value="{$gosaVacationStop}"></div>
183 {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
184 <script type="text/javascript">
185 {literal}
186 var datepicker2 = new DatePicker({ relative : 'gosaVacationStop', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
187 {/literal}
188 </script>
189 {/if}
190 {/render}
191 </td>
192 </tr>
193 </table>
194 {/if}
195 <td rowspan=2 style="border-left:1px solid #A0A0A0"> </td>
196 <td style="vertical-align:top;">
197 {render acl=$gosaMailDeliveryModeSACL checkbox=$multiple_support checked=$use_use_spam_filter}
198 <input {if $own_script != ""} disabled {/if} id='use_spam_filter' type=checkbox name="use_spam_filter"
199 value="1" {$use_spam_filter} title="{t}Select if you want to filter this mails through spamassassin{/t}" class="center">
200 {/render}
201 <label for="gosaSpamSortLevel">{t}Move mails tagged with spam level greater than{/t}</label>
202 {render acl=$gosaSpamSortLevelACL checkbox=$multiple_support checked=$use_gosaSpamSortLevel}
203 <select {if $own_script != ""} disabled {/if} id="gosaSpamSortLevel" size="1" name="gosaSpamSortLevel"
204 title="{t}Choose spam level - smaller values are more sensitive{/t}">
205 {html_options values=$spamlevel output=$spamlevel selected=$gosaSpamSortLevel}
206 </select>
207 {/render}
208 <label for="gosaSpamMailbox">{t}to folder{/t}</label>
209 {render acl=$gosaSpamMailboxACL checkbox=$multiple_support checked=$use_gosaSpamMailbox}
210 <select {if $own_script != ""} disabled {/if} size="1" id="gosaSpamMailbox" name="gosaSpamMailbox">
211 {html_options values=$spambox output=$spambox selected=$gosaSpamMailbox}
212 <option disabled> </option>
213 </select>
214 {/render}
215 <br>
216 {render acl=$gosaMailDeliveryModeRACL checkbox=$multiple_support checked=$use_use_mailsize_limit}
217 <input {if $own_script != ""} disabled {/if} id='use_mailsize_limit' type=checkbox
218 name="use_mailsize_limit" value="1" {$use_mailsize_limit} class="center">
219 {/render}
220 <label for="gosaMailMaxSize">{t}Reject mails bigger than{/t}</label>
221 {render acl=$gosaMailMaxSizeACL checkbox=$multiple_support checked=$use_gosaMailMaxSize}
222 <input {if $own_script != ""} disabled {/if} id="gosaMailMaxSize" name="gosaMailMaxSize"
223 size="6" align="middle" maxlength="30" value="{$gosaMailMaxSize}" class="center"> {t}MB{/t}
224 {/render}
225 </td>
226 </tr>
227 <tr>
228 <td style="vertical-align:top; width:45%">
229 <p style="margin-bottom:0px;">
230 <b><label for="gosaVacationMessage">{t}Vacation message{/t}</label></b>
231 </p>
232 {render acl=$gosaVacationMessageACL checkbox=$multiple_support checked=$use_gosaVacationMessage}
233 <textarea {if $own_script != ""} disabled {/if} id="gosaVacationMessage" style="width:99%; height:100px;"
234 name="gosaVacationMessage" rows="4" cols="512">{$gosaVacationMessage}</textarea>
235 {/render}
236 <br>
238 {if $show_templates eq "true"}
239 {render acl=$gosaVacationMessageACL}
240 <select id='vacation_template' name="vacation_template" {if $own_script != ""} disabled {/if}>
241 {html_options options=$vacationtemplates selected=$template}
242 <option disabled> </option>
243 </select>
244 {/render}
245 {render acl=$gosaVacationMessageACL}
246 <button type='submit' name='import_vacation' id="import_vacation" {if $own_script != ""} disabled {/if}
247 >{t}Import{/t}</button>
249 {/render}
250 {/if}
251 </td>
252 <td>
253 <p style="margin-bottom:0px;">
254 <b><label for="forwarder_list">{t}Forward messages to{/t}</label></b>
255 </p>
257 {if $multiple_support}
258 <input type="checkbox" name="use_gosaMailForwardingAddress" onclick="changeState('gosaMailForwardingAddress');"
259 class="center" {if $use_gosaMailForwardingAddress} checked {/if}>
260 {/if}
262 {render acl=$gosaMailForwardingAddressACL}
263 <select {if $use_gosaMailForwardingAddress} checked {/if}
264 id="gosaMailForwardingAddress" style="width:100%; height:100px;" name="forwarder_list[]" size=15 multiple>
265 {html_options values=$gosaMailForwardingAddress output=$gosaMailForwardingAddress selected=$template}
266 <option disabled> </option>
267 </select>
268 {/render}
269 <br>
270 {render acl=$gosaMailForwardingAddressACL}
271 <input type='text' id='forward_address' name="forward_address" size=20 align="middle" maxlength=65 value="">
272 {/render}
273 {render acl=$gosaMailForwardingAddressACL}
274 <button type='submit' name='add_forwarder' id="add_forwarder">{msgPool type=addButton}</button>
276 {/render}
277 {render acl=$gosaMailForwardingAddressACL}
278 <button type='submit' name='add_local_forwarder' id="add_local_forwarder">{t}Add local{/t}</button>
280 {/render}
281 {render acl=$gosaMailForwardingAddressACL}
282 <button type='submit' name='delete_forwarder' id="delete_forwarder">{msgPool type=delButton}</button>
284 {/render}
285 </td>
286 </tr>
287 </table>
288 <p class="seperator"> </p>
290 <h3>{image path="images/false.png"} {t}Advanced mail options{/t}
291 </h3>
292 <table style="width:100%; vertical-align:top; text-align:left;" cellpadding="4" border="0">
293 <tr>
294 <td>
295 {render acl=$gosaMailDeliveryModeLACL checkbox=$multiple_support checked=$use_only_local}
296 <input {if $own_script != ""} disabled {/if} id='only_local' type=checkbox name="only_local"
297 value="1" {$only_local} title="{t}Select if user can only send and receive inside his own domain{/t}" class="center">
298 {/render}
299 {t}User is only allowed to send and receive local mails{/t}
300 </td>
301 </tr>
302 </table>
304 <input type="hidden" name="mailTab" value="mailTab">
306 <!-- Place cursor -->
307 <script language="JavaScript" type="text/javascript">
309 {literal}
310 function validateClick()
311 {
312 alert("yes");
313 if(!document.getElementById('use_vacation').checked){
314 return;
315 }
316 }
318 function changeStates()
319 {
320 if($('own_script').checked) {
321 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
322 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
323 } else {
324 if($('use_vacation').checked) {
325 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("enable");
326 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("show");
327 }else{
328 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
329 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
330 }
331 }
332 }
334 changeStates();
335 focus_field('mail');
336 {/literal}
337 </script>