<html>
<head>
- <title>${config["Mir.Name"]} | ${lang("messagelist.htmltitle")}</title>
- <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
+ <title>${config["Mir.Name"]} | ${lang("messagelist.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 "templates/admin/head.template">
-<if data.contentlist>
-<table border="0" cellpadding="2" cellspacing="1">
- <tr class="darkgrey">
- <td><span class="witesmall">
- <b>${lang("message.date")}</b></span></td>
- <td><span class="witesmall">
- <b>${lang("message.title")}<br>${lang("message.creator")}</b></span></td>
- <td><span class="witesmall">
- <b>${lang("message.text")}</b></span></td>
- </tr>
+ <include "FUNCTIONS.template">
+ <include "head.template">
+
+ <call showAddOrBack("1", module, "Admin", "start")>
- <list data.contentlist as entry>
- <tr
- <if grey=="1"><assign grey="0">class="list1"<else>class="list2"<assign grey="1"> </if>>
- <td>${entry.webdb_create} </td>
- <td><b>${entry.title}</b><br>
- <i>${entry.creator}</i></td>
- <td class="pink">${entry.description} </td>
- <td><span class="text"> <a href="${config.actionRoot}?module=Message&do=delete&id=${entry.id}">${lang("delete")}</a>
- | <a href="${config.actionRoot}?module=Message&do=edit&id=${entry.id}">${lang("edit")}</a></span></td>
- </tr>
- </list>
- <tr>
- <td colspan="3" class="darkgrey"><span class="witetext">${data.count} ${lang("records")} /
- ${lang("show_from_to", data.from, data.to)}</span></td>
- <td> </td>
- </tr>
-</table>
+ <if entities>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+ <call EntityTable(entities, [
+ "id", "title", "creator", "description"],
+ [ lang("message.id"), lang("message.title"), lang("message.creator"), lang("message.text")],
+ from, to, count, "1", "1", module)>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+ <call showAddOrBack("1", module, "Admin", "start")>
+ <else>
+ <P align="center">${lang("no_matches_found")}</p>
+ </if>
- <P>
-<if data.prev>
- <a href="${config.actionRoot}?module=Users&do=list&where=${data.where}&prevoffset=${data.prev}&prev=zurück">${lang("list.previous")}</a>
-</if>
-<if data.next>
-<a href="${config.actionRoot}?module=Users&do=list&where=${data.where}&nextoffset=${data.next}&next=weiter">${lang("list.next")}</a>
-</if>
+ <include "foot.template">
-<else>
- <P align="center">${lang("no_matches_found")}</p>
-</if>
-<include "templates/admin/foot.template">
</body>
-</html>
\ No newline at end of file
+</html>