1 <table class='sieve_test_case'>
2 {if $Expert}
3 {if $LastError != ""}
4 <tr>
5 <td colspan=4>
6 <font color='red'><b>{$LastError}</b></font>
7 </td>
8 </tr>
10 {/if}
13 <tr>
14 <td style='width:50%;'>
15 <b>{t}Header{/t}</b>
16 </td>
17 <td style='text-align:right; vertical-align:top;'>
18 <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
19 </td>
20 </tr>
21 <tr>
22 <td>
23 {t}Match type{/t}
24 </td>
25 <td>
26 <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
27 {html_options options=$match_types selected=$match_type}
28 </select>
30 </td>
31 </tr>
32 <tr>
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 </tr>
44 <tr>
45 <td>
46 {t}Comparator{/t}
47 </td>
48 <td>
49 <select name='comparator_{$ID}' title='{t}Boolean value{/t}'>
50 {html_options options=$comparators selected=$comparator}
51 </select>
52 </td>
53 </tr>
54 {if $match_type == ":count" || $match_type == ":value"}
55 <tr>
56 <td>
57 {t}operator{/t}
58 </td>
59 <td>
60 <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
61 {html_options options=$operators selected=$operator}
62 </select>
63 </td>
64 </tr>
65 {/if}
67 <tr>
68 <td colspan=2> </td>
69 </tr>
70 <tr>
71 <td >
72 {t}Address fields to include{/t}<br>
73 <textarea style='width:100%;height:70px;' name='keys_{$ID}'>{$keys}</textarea>
74 </td>
75 <td >
76 {t}Values to match for{/t}<br>
77 <textarea style='width:100%;height:70px;' name='values_{$ID}'>{$values}</textarea>
78 </td>
79 </tr>
82 {else}
83 {if $LastError != ""}
84 <tr>
85 <td colspan=4>
86 <font color='red'><b>{$LastError}</b></font>
87 </td>
88 </tr>
90 {/if}
91 <tr>
92 {if $match_type == ":count" || $match_type == ":value"}
93 <td style='vertical-align:top; width:350px;'>
94 {else}
95 <td style='vertical-align:top; width:200px;'>
96 {/if}
97 <b>{t}Header{/t}</b>
99 {if $Inverse}
100 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
101 {else}
102 <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
103 {/if}
104
105 <select onChange='document.mainform.submit();' name='matchtype_{$ID}' title='{t}Boolean value{/t}'>
106 {html_options options=$match_types selected=$match_type}
107 </select>
109 {if $match_type == ":count" || $match_type == ":value"}
110 <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
111 {html_options options=$operators selected=$operator}
112 </select>
113 {/if}
114 </td>
115 <td>
116 <textarea style='width:100%;height:40px;' name='keys_{$ID}'>{$keys}</textarea>
117 </td>
118 <td>
119 <textarea style='width:100%;height:40px;' name='values_{$ID}'>{$values}</textarea>
120 </td>
121 <td style='text-align:right; vertical-align:top; width:120px;'>
122 <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
123 </td>
124 </tr>
126 {/if}
127 </table>