1 <table class='sieve_test_case'>
2 {if $Expert}
3 {if $LastError != ""}
4 <tr>
5 <td colspan=2>
6 <font color='red'><b>{$LastError}</b></font>
7 </td>
8 </tr>
10 {/if}
12 <tr>
13 <td style='width:50%;'>
14 <b>{t}Address{/t}</b>
15 </td>
16 <td style='text-align:right; vertical-align:top;'>
17 <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
18 </td>
19 </tr>
20 <tr>
21 <td style='width:50%;'>
22 {t}Match type{/t}
23 </td>
24 <td>
25 <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
26 {html_options options=$match_types selected=$match_type}
27 </select>
29 </td>
30 </tr>
31 <tr>
32 <td>
33 {t}Invert test{/t}?
34 </td>
35 <td>
36 {if $Inverse}
37 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
38 {else}
39 <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
40 {/if}
41 </td>
42 </tr>
43 <tr>
44 <td>
45 {t}Address part that should be used{/t}
46 </td>
47 <td>
48 <select name='address_part_{$ID}' title='{t}Boolean value{/t}'>
49 {html_options options=$address_parts selected=$address_part}
50 </select>
51 </td>
52 </tr>
53 <tr>
54 <td>
55 {t}Comparator{/t}
56 </td>
57 <td>
58 <select name='comparator_{$ID}' title='{t}Boolean value{/t}'>
59 {html_options options=$comparators selected=$comparator}
60 </select>
61 </td>
62 </tr>
63 {if $match_type == ":count" || $match_type == ":value"}
64 <tr>
65 <td>
66 {t}operator{/t}
67 </td>
68 <td>
69 <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
70 {html_options options=$operators selected=$operator}
71 </select>
72 </td>
73 </tr>
74 {/if}
75 <tr>
76 <td colspan=2> </td>
77 </tr>
78 <tr>
79 <td >
80 {t}Address fields to include{/t}<br>
81 <textarea style='width:100%;height:70px;' name='keys_{$ID}'>{$keys}</textarea>
82 </td>
83 <td >
84 {t}Values to match for{/t}<br>
85 <textarea style='width:100%;height:70px;' 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 {if $match_type == ":count" || $match_type == ":value"}
99 <td style='vertical-align:top; width:350px;'>
100 {else}
101 <td style='vertical-align:top; width:200px;'>
102 {/if}
103 <b>{t}Address{/t}</b>
105 {if $Inverse}
106 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
107 {else}
108 <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
109 {/if}
110
111 <select onChange='document.mainform.submit();' name='matchtype_{$ID}' title='{t}Boolean value{/t}'>
112 {html_options options=$match_types selected=$match_type}
113 </select>
115 {if $match_type == ":count" || $match_type == ":value"}
116 <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
117 {html_options options=$operators selected=$operator}
118 </select>
119 {/if}
120 </td>
121 <td>
122 <textarea style='width:100%;height:40px;' name='keys_{$ID}'>{$keys}</textarea>
123 </td>
124 <td>
125 <textarea style='width:100%;height:40px;' name='values_{$ID}'>{$values}</textarea>
126 </td>
127 <td style='text-align:right; vertical-align:top; width:120px;'>
128 <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
129 </td>
130 </tr>
131 {/if}
132 </table>