Code

removed duplicated tag
[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 $LastError != ""}
15                 <tr>
16                                 <td colspan=4>
17                             <font color='red'><b>{$LastError}</b></font>
18                                 </td>
19                         </tr>
21         {/if}
23         <tr>
24                 <td>
25                         {t}Match type{/t}
26                 </td>
27                 <td>
28                         <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'> 
29                                 {html_options options=$match_types selected=$match_type}
30                         </select>
32                 </td>
33                 <td>
34                         {t}Invert test{/t}?
35                 </td>
36                 <td>
37                         {if $Inverse}
38                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
39                         {else}
40                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
41                         {/if}
42                 </td>
43                 <td style='text-align:right; vertical-align:top;'>
44                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
45                 </td>
46         </tr>
47         <tr>
48                 <td>
49                         {t}Comparator{/t}
50                 </td>
51                 <td>
52                         <select name='comparator_{$ID}' title='{t}Boolean value{/t}'> 
53                                 {html_options options=$comparators selected=$comparator}
54                         </select>
55                 </td>
56                 {if $match_type == ":count" || $match_type == ":value"}
57                 <td>
58                         {t}operator{/t}
59                 </td>
60                 <td>
61                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
62                                 {html_options options=$operators selected=$operator}
63                         </select>
64                 </td>
65                 {else}
66                 <td style='text-align:right;'>
67                         &nbsp;
68                 </td>
69                 {/if}
70                 <td style='text-align:right;'>
71                         &nbsp;
72                 </td>
73         </tr>
74         <tr>
75                 <td>
76                         {t}Address fields to include{/t}
77                 </td>
78                 <td>
79                         <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
80                 </td>
81                 <td>
82                         {t}Values to match for{/t}
83                 </td>
84                 <td>
85                         <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
86                 </td>
87         </tr>
88         {else}
89         {if $LastError != ""}
90                 <tr>
91                                 <td colspan=4>
92                             <font color='red'><b>{$LastError}</b></font>
93                                 </td>
94                         </tr>
96         {/if}
97         <tr>
98                 <td style='vertical-align:top;'>
99                         {t}If{/t}
100                         &nbsp;
101                         <b>{t}Envelope{/t}</b>
102                 
103                         {if $Inverse}
104                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
105                         {else}
106                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
107                         {/if}
108                         &nbsp;
109                         <select onChange='document.mainform.submit();' name='matchtype_{$ID}' title='{t}Boolean value{/t}'> 
110                                 {html_options options=$match_types selected=$match_type}
111                         </select>
113                         {if $match_type == ":count" || $match_type == ":value"}
114                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
115                                 {html_options options=$operators selected=$operator}
116                         </select>
117                         {/if}
118                 </td>
119                 <td>
120                         <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
121                         <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
122                 </td>
123                 <td style='text-align:right; vertical-align:top;'>
124                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
125                 </td>
126         </tr>
127         {/if}
128 </table>
129 {if $LastError != ""}
131                         </td>
132                 </tr>
133         </table>
134 {/if}