Code

Put each class in a single file.
[gosa.git] / include / sieve / templates / element_envelope.tpl
3 {if $LastError != ""}
4         <table style='width:100%;'> 
5                 <tr>
6                         <td style='width:40px; background-color: #FF0000; text-align:center; border: dotted 3px #ff7c1c'>
7                                 <img src='images/warning.png' alt='{t}Error{/t}'>
8                         </td>
9                         <td>
10 {/if}
12 <table cellspacing=0 cellpadding=2 style='background-color:#EEEEDD;width:100%; border: solid 1px #CCCCCC'>
13         {if $Expert}
14         {if $Expert}
15         {if $LastError != ""}
16                 <tr>
17                                 <td colspan=4>
18                             <font color='red'><b>{$LastError}</b></font>
19                                 </td>
20                         </tr>
22         {/if}
24         <tr>
25                 <td>
26                         {t}Match type{/t}
27                 </td>
28                 <td>
29                         <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'> 
30                                 {html_options options=$match_types selected=$match_type}
31                         </select>
33                 </td>
34                 <td>
35                         {t}Invert test{/t}?
36                 </td>
37                 <td>
38                         {if $Inverse}
39                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
40                         {else}
41                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
42                         {/if}
43                 </td>
44                 <td style='text-align:right; vertical-align:top;'>
45                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
46                 </td>
47         </tr>
48         <tr>
49                 <td>
50                         {t}Comparator{/t}
51                 </td>
52                 <td>
53                         <select name='comparator_{$ID}' title='{t}Boolean value{/t}'> 
54                                 {html_options options=$comparators selected=$comparator}
55                         </select>
56                 </td>
57                 {if $match_type == ":count" || $match_type == ":value"}
58                 <td>
59                         {t}operator{/t}
60                 </td>
61                 <td>
62                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
63                                 {html_options options=$operators selected=$operator}
64                         </select>
65                 </td>
66                 {else}
67                 <td style='text-align:right;'>
68                         &nbsp;
69                 </td>
70                 {/if}
71                 <td style='text-align:right;'>
72                         &nbsp;
73                 </td>
74         </tr>
75         <tr>
76                 <td>
77                         {t}Address fields to include{/t}
78                 </td>
79                 <td>
80                         <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
81                 </td>
82                 <td>
83                         {t}Values to match for{/t}
84                 </td>
85                 <td>
86                         <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
87                 </td>
88         </tr>
89         {else}
90         {if $LastError != ""}
91                 <tr>
92                                 <td colspan=4>
93                             <font color='red'><b>{$LastError}</b></font>
94                                 </td>
95                         </tr>
97         {/if}
98         <tr>
99                 <td style='vertical-align:top;'>
100                         {t}If{/t}
101                         &nbsp;
102                         <b>{t}Envelope{/t}</b>
103                 
104                         {if $Inverse}
105                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
106                         {else}
107                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
108                         {/if}
109                         &nbsp;
110                         <select onChange='document.mainform.submit();' name='matchtype_{$ID}' title='{t}Boolean value{/t}'> 
111                                 {html_options options=$match_types selected=$match_type}
112                         </select>
114                         {if $match_type == ":count" || $match_type == ":value"}
115                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
116                                 {html_options options=$operators selected=$operator}
117                         </select>
118                         {/if}
119                 </td>
120                 <td>
121                         <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
122                         <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
123                 </td>
124                 <td style='text-align:right; vertical-align:top;'>
125                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
126                 </td>
127         </tr>
128         {/if}
129 </table>
130 {if $LastError != ""}
132                         </td>
133                 </tr>
134         </table>
135 {/if}