Code

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