-<function showFilterEntry(aType, anExpression, anId)>
- <form method="post" action="${config.actionRoot}">
- <input type="hidden" name="module" value="Abuse">
- <input type="hidden" name="do" value="editfilter">
- <if anId>
- <input type="hidden" name="id" value="${anId}">
- </if>
- <if grey=="1"><assign grey="0"><tr class="listrow1"><else><tr class="listrow2"><assign grey="1"> </if>
- <td>
- <select name="type">
- <list filtertypes as t>
- <option value="${t.id}" <if t.id==aType>selected</if>>${lang(t.resource)}</option>
- </list>
- </select>
- </td>
- <td><input type="text" name="expression" size="30" value="${utility.encodeHTML(anExpression)}"></td>
- <if anId>
- <td>
- <input type="submit" name="save" value="${lang("save")}">
- </td>
- <td>
- <a class="listcommand" href="${config.actionRoot}?module=Abuse&do=deletefilter&id=${anId}">[${lang("delete")}]</a>
-
- </td>
- <else>
- <td>
- <input class="majorbutton" type="submit" name="save" value="${lang("add")}">
- </td>
- </if>
- </tr>
- </form>
-</function>
-
-
<html>
<head>
- <title>${config["Mir.Name"]} | ${lang("userlist.htmltitle")}</title>
- <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
+ <title>${config["Mir.Name"]} | ${lang("abuse.filters.htmltitle")}</title>
+ <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
</head>
-
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
+<include "LISTFUNCTIONS.template">
+<include "FUNCTIONS.template">
<include "head.template">
-<p>
- <a class="link_box" href="${config.actionRoot}?module=Abuse">[ < ] ${lang("back")}</a>
- <a class="link_box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
- <br><br>
-</p>
-<table border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td class="table_head"><b>${lang("abuse.filter.type")}</b></td>
- <td class="table_head"><b>${lang("abuse.filter.expression")}</b></td>
- <td class="table_head"><b> </b></td>
- <td class="table_head"><b> </b></td>
- </tr>
- <assign grey="0">
- <list filters as i>
- <call showFilterEntry(i.type, i.expression, i.id)>
- </list>
-
- <call showFilterEntry("", "", "")>
- </table>
+ <p>
+ <a class="link-box" href="${config.actionRoot}?module=Abuse">[ < ] ${lang("back")}</a>
+ <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a>
+ <if config["Abuse.DisallowIPLogging"]!="1">
+ <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
+ </if>
+ <br><br>
+ </p>
+ <call ListStart()>\r
+ <call SpannedListHead([
+ lang("abuse.filter.type"),
+ lang("abuse.filter.expression")], ["1","3"])>
+ <call ListHead([
+ lang("abuse.filter.articleaction"),
+ lang("abuse.filter.commentaction"),
+ lang("abuse.filter.comments"),
+ lang("abuse.filter.lasthit")])>
+ <list filters as f>
+ <call SpannedListEntry([
+ lang("abuse.filtertype."+f.type),
+ utility.encodeHTML(f.expression)],
+ ["1","3"],
+ "module=Abuse&id="+f.id,
+ ["&do=edit", "&do=delete"],
+ [lang("edit"), lang("delete")])>
+ <if f.lastHit>\r
+ <call ListEntry([
+ lang("content.operation."+f.articleAction),
+ lang("comment.operation."+f.commentAction),
+ utility.prettyEncodeHTML(f.comments),
+ f.lastHit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
+ ],
+ "module=Abuse&id="+f.id,
+ ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"],
+ [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
+ lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
+ >
+ <else>
+ <call ListEntry([
+ lang("content.operation."+f.articleAction),
+ lang("comment.operation."+f.commentAction),
+ utility.prettyEncodeHTML(f.comments),
+ "-"
+ ],
+ "module=Abuse&id="+f.id,
+ ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"],
+ [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
+ lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
+ >
+ </if>
+ <tr height="2" class="${TABLE_HEAD_CLASS}"><td colspan="6"> </td></tr>
+ </list>\r
+ <call ListEnd()>\r
+
+ <p>
+ <a class="link-box" href="${config.actionRoot}?module=Abuse">[ < ] ${lang("back")}</a>
+ <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a>
+ <if config["Abuse.DisallowIPLogging"]!="1">
+ <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
+ </if>
+ <br><br>
+ </p>
-
-<p>
- <a class="link_box" href="${config.actionRoot}?module=Abuse">[ < ] ${lang("back")}</a>
- <a class="link_box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
-</p>
-
-
- <include "foot.template">
- </body>
+ <include "foot.template">
+</body>
</html>
+
+