Code

Cleaned mail plugin etc directory.
[gosa.git] / gosa-plugins / mail / personal / mail / generic.tpl
1 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding="0" border="0">
2  <tr>
3   <td style="width:50%; vertical-align:top;">
5    <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" />&nbsp;{t}Generic{/t}</h2>
6    <table summary="">
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 disabled size=30 value="{$mail}">
13      {else}
14          {if $domainSelectionEnabled}
15                 {render acl=$mailACL}
16                         <input 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 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 disabled size=30 value="{$gosaMailServer}">
34      {else}
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}
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    <h2><img class="center" alt="" align="middle" src="plugins/mail/images/alternatemail.png" /><label for="alternates_list"> {t}Alternative addresses{/t}</    label></h2>
74 {render acl=$gosaMailAlternateAddressACL}
75    <select id="alternates_list" style="width:100%;height:100px;" name="alternates_list[]" size="15" multiple
76     title="{t}List of alternative mail addresses{/t}">
77     {html_options values=$gosaMailAlternateAddress output=$gosaMailAlternateAddress}
78     <option disabled>&nbsp;</option>
79 {/render}
80    </select>
81    <br />
82 {render acl=$gosaMailAlternateAddressACL}
83    <input name="alternate_address" size="30" align="middle" maxlength="65" value="">
84 {/render}
85 {render acl=$gosaMailAlternateAddressACL}
86    <input type=submit value="{msgPool type=addButton}" name="add_alternate">
87 {/render}
88 {render acl=$gosaMailAlternateAddressACL}
89    <input type=submit value="{msgPool type=delButton}" name="delete_alternate">
90 {/render}
91 {/if}
92   </td>
93  </tr>
94  <tr>
95   <td colspan="3">
96    <p class="seperator">&nbsp;</p>
97    <table summary="" style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
98     <tr>
99      <td>
100 {render acl=$gosaMailDeliveryModeCACL}
101       <input class="center" type=checkbox id="own_script" name="own_script" value="1" {$own_script}
102         onClick="
103             changeState('sieveManagement');
104             changeState('drop_own_mails');
105             changeState('use_vacation');
106             changeState('use_spam_filter');
107             changeState('use_mailsize_limit');
108             changeState('import_vacation');
109             changeState('vacation_template');
110             changeState('only_local');
111             changeState('gosaVacationMessage');
112             changeState('gosaSpamSortLevel');
113             changeState('gosaSpamMailbox');
114             changeState('gosaMailMaxSize');
115             changeStates();"> {t}Use custom sieve script{/t} <b>({t}disables all Mail options!{/t})</b>
116 {/render}
117      </td>
118     </tr>
119 {if $allowSieveManagement}
120     <tr>
121      <td>
122 {render acl=$sieveManagementACL}
123       <input {if $own_script == ""} disabled {/if} id='sieveManagement' type='submit' name='sieveManagement' value='{t}Sieve Management{/t}'>
124 {/render}
125      </td>
126     </tr>
127 {/if}
128    </table>
129   </td>
130  </tr>
131  <tr>
132   <td colspan="3">
133    <p class="seperator">&nbsp;</p>
134   </td>
135  </tr>
136 </table>
138 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4 border=0>
139  <tr style="padding-bottom:0px;">
140   <td style="width:50%">
141 {render acl=$gosaMailDeliveryModeIACL checkbox=$multiple_support checked=$use_drop_own_mails}
142    <input {if $own_script != ""} disabled {/if} class="center" id='drop_own_mails' 
143     type=checkbox name="drop_own_mails" value="1" {$drop_own_mails} 
144     title="{t}Select if you want to forward mails without getting own copies of them{/t}"> {t}No delivery to own mailbox{/t}
145 {/render}
146    <br>
148 {render acl=$gosaMailDeliveryModeVACL checkbox=$multiple_support checked=$use_use_vacation}
149    <input type=checkbox name="use_vacation" value="1" {$use_vacation} 
150     id="use_vacation" {if $own_script != ""} disabled {/if}
151     title="{t}Select to automatically response with the vacation message defined below{/t}" class="center" 
152     onclick="changeStates()"> {t}Activate vacation message{/t}
153 {/render}
155    <br>
157 {if $rangeEnabled}
158    <table>
159     <tr>
160      <td>{t}from{/t}</td>
161      <td style='width:140px'>
162 {render acl=$gosaVacationMessageACL}
163         <input type="text" id="gosaVacationStart" name="gosaVacationStart" class="date" style='width:100px' value="{$gosaVacationStart}">
164         {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
165         <script type="text/javascript">
166           {literal}
167           var datepicker  = new DatePicker({ relative : 'gosaVacationStart', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
168           {/literal}
169         </script>
170         {/if}
171 {/render}
172      </td>
173      <td>{t}till{/t}</td>
174       <td style='width:140px'>
175 {render acl=$gosaVacationMessageACL}
176         <div id="vacstart"><input type="text" id="gosaVacationStop" name="gosaVacationStop" class="date" style='width:100px' value="{$gosaVacationStop}"></div>
177         {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
178         <script type="text/javascript">
179           {literal}
180           var datepicker2  = new DatePicker({ relative : 'gosaVacationStop', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
181           {/literal}
182         </script>
183         {/if}
184 {/render}
185       </td>
186      </tr>
187     </table>
188 {/if}
189    <td rowspan=2 style="border-left:1px solid #A0A0A0">&nbsp;</td>
190    <td style="vertical-align:top;">
191 {render acl=$gosaMailDeliveryModeSACL checkbox=$multiple_support checked=$use_use_spam_filter}
192     <input {if $own_script != ""} disabled {/if} id='use_spam_filter' type=checkbox name="use_spam_filter" 
193      value="1" {$use_spam_filter} title="{t}Select if you want to filter this mails through spamassassin{/t}" class="center">
194 {/render}
195     <label for="gosaSpamSortLevel">{t}Move mails tagged with spam level greater than{/t}</label>
196 {render acl=$gosaSpamSortLevelACL checkbox=$multiple_support checked=$use_gosaSpamSortLevel}
197     <select {if $own_script != ""} disabled {/if} id="gosaSpamSortLevel" size="1" name="gosaSpamSortLevel" 
198      title="{t}Choose spam level - smaller values are more sensitive{/t}">
199      {html_options values=$spamlevel output=$spamlevel selected=$gosaSpamSortLevel}
200     </select>
201 {/render}
202     <label for="gosaSpamMailbox">{t}to folder{/t}</label>
203 {render acl=$gosaSpamMailboxACL checkbox=$multiple_support checked=$use_gosaSpamMailbox}
204     <select {if $own_script != ""} disabled {/if} size="1" id="gosaSpamMailbox" name="gosaSpamMailbox">
205      {html_options values=$spambox output=$spambox selected=$gosaSpamMailbox}
206      <option disabled>&nbsp;</option>
207     </select>
208 {/render}
209     <br>
210 {render acl=$gosaMailDeliveryModeRACL checkbox=$multiple_support checked=$use_use_mailsize_limit}
211     <input {if $own_script != ""} disabled {/if} id='use_mailsize_limit' type=checkbox 
212      name="use_mailsize_limit" value="1" {$use_mailsize_limit} class="center">
213 {/render}
214     <label for="gosaMailMaxSize">{t}Reject mails bigger than{/t}</label>
215 {render acl=$gosaMailMaxSizeACL checkbox=$multiple_support checked=$use_gosaMailMaxSize}
216     <input {if $own_script != ""} disabled {/if} id="gosaMailMaxSize" name="gosaMailMaxSize" 
217      size="6" align="middle" maxlength="30" value="{$gosaMailMaxSize}"  class="center"> {t}MB{/t}
218 {/render}
219    </td>
220   </tr>
221   <tr>
222    <td style="vertical-align:top; width:45%">
223     <p style="margin-bottom:0px;">
224      <b><label for="gosaVacationMessage">{t}Vacation message{/t}</label></b>
225    </p>
226 {render acl=$gosaVacationMessageACL checkbox=$multiple_support checked=$use_gosaVacationMessage}
227     <textarea {if $own_script != ""} disabled {/if} id="gosaVacationMessage" style="width:99%; height:100px;" 
228      name="gosaVacationMessage" rows="4" cols="512">{$gosaVacationMessage}</textarea>
229 {/render}
230     <br>
232 {if $show_templates eq "true"}
233  {render acl=$gosaVacationMessageACL}
234     <select id='vacation_template' name="vacation_template" {if $own_script != ""} disabled {/if}>
235      {html_options options=$vacationtemplates selected=$template}
236      <option disabled>&nbsp;</option>
237     </select>
238  {/render}
239  {render acl=$gosaVacationMessageACL}
240     <input {if $own_script != ""} disabled {/if} id='import_vacation' type="submit" value="{t}Import{/t}" name="import_vacation">
241  {/render}
242 {/if}
243    </td>
244   <td>
245    <p style="margin-bottom:0px;">
246     <b><label for="forwarder_list">{t}Forward messages to{/t}</label></b>
247    </p>
249 {if $multiple_support}
250    <input type="checkbox" name="use_gosaMailForwardingAddress" onclick="changeState('gosaMailForwardingAddress');" 
251     class="center" {if $use_gosaMailForwardingAddress} checked {/if}>   
252 {/if}
254 {render acl=$gosaMailForwardingAddressACL}
255    <select {if $use_gosaMailForwardingAddress} checked {/if}
256     id="gosaMailForwardingAddress" style="width:100%; height:100px;" name="forwarder_list[]" size=15 multiple>
257     {html_options values=$gosaMailForwardingAddress output=$gosaMailForwardingAddress selected=$template}        
258     <option disabled>&nbsp;</option>
259    </select>
260 {/render}
261     <br>
262 {render acl=$gosaMailForwardingAddressACL}
263     <input id='forward_address' name="forward_address" size=20 align="middle" maxlength=65 value="">
264 {/render}
265 {render acl=$gosaMailForwardingAddressACL}
266     <input id='add_forwarder' type="submit" value="{msgPool type=addButton}" name="add_forwarder" >&nbsp;
267 {/render}
268 {render acl=$gosaMailForwardingAddressACL}
269     <input id='add_local_forwarder' type="submit" value="{t}Add local{/t}" name="add_local_forwarder" >&nbsp;
270 {/render}
271 {render acl=$gosaMailForwardingAddressACL}
272     <input id='delete_forwarder' type="submit" value="{msgPool type=delButton}" name="delete_forwarder">
273 {/render}
274    </td>
275   </tr>
276  </table>
277 <p class="seperator">&nbsp;</p>
279 <h2><img class="center" alt="" align="middle" src="images/false.png" />&nbsp;{t}Advanced mail options{/t}</h2>
280 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding="4" border="0">
281  <tr>
282   <td>
283 {render acl=$gosaMailDeliveryModeLACL checkbox=$multiple_support checked=$use_only_local}
284    <input {if $own_script != ""} disabled {/if} id='only_local' type=checkbox name="only_local" 
285     value="1" {$only_local} title="{t}Select if user can only send and receive inside his own domain{/t}" class="center">
286 {/render}
287    {t}User is only allowed to send and receive local mails{/t}
288   </td>
289  </tr>
290 </table>
292 <input type="hidden" name="mailTab" value="mailTab">
294 <!-- Place cursor -->
295 <script language="JavaScript" type="text/javascript">
297         {literal}
298         function validateClick()
299         {
300 alert("yes");
301           if(!document.getElementById('use_vacation').checked){
302             return;
303           }
304         }
306         function changeStates()
307         {
308           if($('own_script').checked) {
309                 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
310                 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
311           } else {
312                 if($('use_vacation').checked) {
313                         $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("enable");
314                         $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("show");
315                 }else{
316                         $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
317                         $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
318                 }
319            }
320         }
322         changeStates();
323         focus_field('mail');
324         {/literal}
325 </script>