filter page bugs resolved
[mir.git] / templates / admin / filterlist.template
1 <html>
2 <head>
3   <title>${config["Mir.Name"]} | ${lang("filterlist.htmltitle")}</title>
4   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5 </head>
6 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
7 <include "LISTFUNCTIONS.template">
8 <include "FUNCTIONS.template">
9 <include "head.template">
10
11     <p>
12       <a class="link-box" href="${config.actionRoot}?module=Abuse&amp;do=showfiltergroups">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
13       <a class="link-box" href="${config.actionRoot}?module=Abuse&amp;groupid=${groupid}&amp;do=addfilter">[+] ${lang("add")}</a> &nbsp;
14       <if config["Abuse.DisallowIPLogging"]!="1">
15         <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("showlog")}</a>
16       </if>
17       <br><br>
18     </p>
19     <call ListStart()>\r
20     <call SpannedListHead([
21           lang("filter.type"),
22           lang("filter.expression")], ["1","3"])>
23     <call ListHead([
24           lang("filter.articleaction"),
25           lang("filter.commentaction"),
26           lang("filter.tag"),
27           lang("filter.last_hit")])>
28     <call SpannedListHead([
29           lang("filter.comment")], ["4"])>
30     <list filters as f>
31         <call SpannedListEntry([
32           lang("filtertype."+f.type),
33           utility.encodeHTML(f.expression)],
34           ["1","3"],
35           "module=Abuse&id="+f.id+"&groupid="+groupid,
36            ["&do=editfilter", "&do=deletefilter"],
37            [lang("edit"), lang("delete")])>
38           <if f.lasthit>\r
39               <call ListEntry([
40                 lang("content.operation."+f.articleaction),
41                 lang("comment.operation."+f.commentaction),
42                 utility.encodeHTML(f.tag),
43                 f.lasthit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
44                 ],
45                 "module=Abuse&id="+f.id+"&groupid="+groupid,
46                 ["&do=movefilterup", "&do=movefilterdown"],
47                 [lang("filters.moveup"), lang("filters.movedown")])
48               >
49           <else>
50               <call ListEntry([
51                 lang("content.operation."+f.articleaction),
52                 lang("comment.operation."+f.commentaction),
53                 utility.encodeHTML(f.tag),
54                 "-"
55                 ],
56                 "module=Abuse&id="+f.id+"&groupid="+groupid,
57                 ["&do=movefilterup", "&do=movefilterdown"],
58                 [lang("filters.moveup"), lang("filters.movedown")])
59               >
60           </if>
61           <call SpannedListEntry([
62             utility.prettyEncodeHTML(f.comment)],
63             ["4"],
64             "module=Abuse&id="+f.id+"&groupid="+groupid,
65              ["&do=movefiltertop", "&do=movefilterbottom"],
66              [lang("filters.movetop"), lang("filters.movebottom")])>
67         <tr height="2" class="${TABLE_HEAD_CLASS}"><td colspan="6"> </td></tr>
68     </list>\r
69     <call ListEnd()>\r
70
71     <p>
72       <a class="link-box" href="${config.actionRoot}?module=Abuse&amp;do=showfiltergroups">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
73       <a class="link-box" href="${config.actionRoot}?module=Abuse&amp;groupid=${groupid}&amp;do=addfilter">[+] ${lang("add")}</a> &nbsp;
74       <if config["Abuse.DisallowIPLogging"]!="1">
75         <a class="link-box" href="${config.actionRoot}?module=Abuse&amp;do=showlog">${lang("showlog")}</a>
76       </if>
77       <br><br>
78     </p>
79
80   <include "foot.template">
81 </body>
82 </html>
83
84
85
86