dc78231cbc2d40176fd96ed4714f446565f76653
[mir.git] / templates / admin / abuse.filters.template
1 <function showFilterEntry(aType, anExpression, anId)>
2       <form method="post" action="${config.actionRoot}">
3         <input type="hidden" name="module" value="Abuse">
4         <input type="hidden" name="do" value="editfilter">
5         <if anId>
6           <input type="hidden" name="id" value="${anId}">
7         </if>
8         <if grey=="1"><assign grey="0"><tr class="listrow1"><else><tr class="listrow2"><assign grey="1"> </if>
9           <td>
10             <select name="type">
11               <list filtertypes as t>
12                 <option value="${t.id}" <if t.id==aType>selected</if>>${lang("abuse.filtertype."+t.resource)}</option>
13               </list>
14             </select>
15           </td>
16           <td><input type="text" name="expression" size="30" value="${utility.encodeHTML(anExpression)}"></td>
17           <if anId>
18             <td>
19               <input type="submit" name="save" value="${lang("save")}">
20             </td>
21             <td>
22                 <a class="listcommand" href="${config.actionRoot}?module=Abuse&do=deletefilter&id=${anId}">[${lang("delete")}]</a>
23                 &nbsp;
24             </td>
25           <else>
26             <td>
27               <input class="majorbutton" type="submit" name="save" value="${lang("add")}">
28             </td>
29           </if>
30         </tr>
31       </form>
32 </function>
33
34
35 <html>
36 <head>
37         <title>${config["Mir.Name"]} | ${lang("userlist.htmltitle")}</title>
38         <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
39 </head>
40
41 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
42 <include "head.template">
43 <p>
44         <a class="link_box" href="${config.actionRoot}?module=Abuse">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
45         <a class="link_box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
46         <br><br>
47 </p>
48 <table border="0" cellpadding="2" cellspacing="1">
49         <tr>
50                 <td class="table_head"><b>${lang("abuse.filter.type")}</b></td>
51                 <td class="table_head"><b>${lang("abuse.filter.expression")}</b></td>
52                 <td class="table_head"><b>&nbsp;</b></td>
53                 <td class="table_head"><b>&nbsp;</b></td>
54         </tr>
55
56         <assign grey="0">      
57         <list filters as i>
58                 <call showFilterEntry(i.type, i.expression, i.id)>
59         </list>
60
61         <call showFilterEntry("", "", "")>
62         </table>
63
64         
65 <p>
66         <a class="link_box" href="${config.actionRoot}?module=Abuse">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
67         <a class="link_box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
68 </p>
69  
70  
71     <include "foot.template">
72   </body>
73 </html>
74
75