1 <h3>{t}Filter editor{/t}</h3>
3 <hr>
5 <table summary="{t}Filter editor{/t}" width="100%">
6 <tr>
7 <td class="right-border" style='width:40%;'>
8 <table summary='{t}Filter properties{/t}'>
9 <tr>
10 <td>
11 <label for='name'>{t}Name{/t}</label>{$must}
12 </td>
13 <td>
14 <input type='text' name='name' id='name' value="{$name}">
15 </td>
16 </tr>
17 <tr>
18 <td>
19 <label for='description'>{t}Description{/t}</label>{$must}
20 </td>
21 <td>
22 <input type='text' name='description' id='description' value="{$description}">
23 </td>
24 </tr>
25 <tr>
26 <td>
27 <label for='parent'>{t}Parent filter{/t}</label>
28 </td>
29 <td>
30 <select name='parent' size='1'>
31 {html_options values=$fixedFilters output=$fixedFilters selected=$parent}
32 </select>
33 </td>
34 </tr>
35 </table>
37 <br>
39 <input type='checkbox' name='shareFilter' value='1' {if $share} checked {/if}>
40 {t}Public visible{/t}
42 <br>
44 <input type='checkbox' name='enableFilter' value='1' {if $enable} checked {/if}>
45 {t}Enabled{/t}
47 </td>
48 <td>
49 <label for='usedCategory'>{t}Categories where the filter is visible{/t}</label><br>
50 <select id='usedCategory' name='usedCategory[]' size='4' multiple style='width:100%;'>
51 {html_options options=$selectedCategories}
52 </select>
53 <br>
54 <select id='availableCategory' name='availableCategory' size='1'
55 onChange="$('manualCategory').value=$('availableCategory').options[$('availableCategory').selectedIndex].value">
56 <option value=''> </option>
57 {html_options values=$availableCategories output=$availableCategories}
58 </select>
59 <input type='text' id='manualCategory' name='manualCategory' value=''>
60 <button type='submit' name='addCategory'>{msgPool type='addButton'}</button>
61 <button type='submit' name='delCategory'>{msgPool type='delButton'}</button>
62 </td>
63 </tr>
64 </table>
66 <hr>
68 {foreach from=$queries item=item key=key}
69 <b>{t}Query{/t} #{$key}</b>
70 <select name='backend_{$key}' size='1'>
71 {html_options output=$backends values=$backends selected=$item.backend}
72 </select>
73 <button type='submit' name='removeQuery_{$key}'>{msgPool type='delButton'}</button>
74 <textarea name='filter_{$key}' id='filter_{$key}' cols="0"
75 style='width:100%; height: 120px;'>{$item.filter}</textarea>
76 <hr>
77 {/foreach}
78 <button type='submit' name='addQuery'>{msgPool type='addButton'}</button>
79 <hr>
81 <input type='hidden' value='1' name='userFilterEditor'>
83 <div class="plugin-actions">
84 <button type='submit' name='saveFilterSettings'>{msgPool type='saveButton'}</button>
85 <button type='submit' name='cancelFilterSettings'>{msgPool type='cancelButton'}</button>
86 </div>