5c9db62b4151e108ddc13d2806de76103b95b79a
[mir.git] / templates / admin / abuse.filters.template
1 <html>
2 <head>
3   <title>${config["Mir.Name"]} | ${lang("abuse.filters.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">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
13       <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a> &nbsp;
14       <if config["Abuse.DisallowIPLogging"]!="1">
15         <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
16       </if>
17       <br><br>
18     </p>
19     <call ListStart()>\r
20     <call SpannedListHead([
21           lang("abuse.filter.type"), 
22           lang("abuse.filter.expression")], ["1","3"])>
23     <call ListHead([
24           lang("abuse.filter.articleaction"),
25           lang("abuse.filter.commentaction"),
26           lang("abuse.filter.comments"),
27           lang("abuse.filter.lasthit")])>
28     <list filters as f>    
29         <call SpannedListEntry([
30           lang("abuse.filtertype."+f.type),
31           utility.encodeHTML(f.expression)],
32           ["1","3"],
33           "module=Abuse&id="+f.id, 
34            ["&do=edit", "&do=delete"], 
35            [lang("edit"), lang("delete")])>
36           <if f.lastHit>\r
37               <call ListEntry([
38                 lang("content.operation."+f.articleAction),
39                 lang("comment.operation."+f.commentAction),
40                 utility.prettyEncodeHTML(f.comments),
41                 f.lastHit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
42                 ], 
43                 "module=Abuse&id="+f.id, 
44                 ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"], 
45                 [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
46                  lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
47               >
48           <else>
49               <call ListEntry([
50                 lang("content.operation."+f.articleAction),
51                 lang("comment.operation."+f.commentAction),
52                 utility.prettyEncodeHTML(f.comments),
53                 "-"
54                 ], 
55                 "module=Abuse&id="+f.id, 
56                 ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"], 
57                 [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
58                  lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
59               >
60           </if>
61         <tr height="2" class="${TABLE_HEAD_CLASS}"><td colspan="6"> </td></tr>
62     </list>\r
63     <call ListEnd()>\r
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=add">[+] ${lang("add")}</a> &nbsp;
68       <if config["Abuse.DisallowIPLogging"]!="1">
69         <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
70       </if>
71       <br><br>
72     </p>
73
74   <include "foot.template">
75 </body>
76 </html>
77
78
79
80