</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
+ <include "FUNCTIONS.template">
+ <include "head.template">
+
+ <call showAddOrBack("1", module, "Admin", "superusermenu")>
-<include "head.template">
-<if data.contentlist>
- <table border="0">
- <tr class="darkgrey">
- <td class="table-head">${lang("mediafolder.date")}</td>
- <td class="table-head">${lang("mediafolder.name")}</td>
- <td class="table-head">${lang("mediafolder.location")}</td>
- <td class="table-head">${lang("mediafolder.comment")}</td>
- <td class="table-head">${lang("mediafolder.keywords")}</td>
- <td class="table-head"> </td>
- </tr>
- <list data.contentlist as entry>
- <tr <if grey=="1"><assign grey="0">class="listrow1"<else>class="listrow2"<assign grey="1"> </if>>
- <td>${entry.date} </td>
- <td><b>${entry.name}</b> </td>
- <td>${entry.place} </td>
- <td>${entry.comment} </td>
- <td>${entry.keywords} </td>
- <td><a href="${config.actionRoot}?module=Mediafolder&do=delete&id=${entry.id}">${lang("delete")}</a>
- | <a href="${config.actionRoot}?module=Mediafolder&do=edit&id=${entry.id}">${lang("edit")}</a>
- | <a href="${config.actionRoot}?module=Images&do=list&query_media_folder=${entry.id}">${lang("list")}</a></td>
- </tr>
- </list>
- <tr>
- <td colspan="6" class="table-foot">${data.count} ${lang("records")} /
- ${lang("show_from_to", data.from, data.to)}</td>
- <td> </td>
- </tr>
- </table>
- <P>
- <if data.prev>
- <a href="${config.actionRoot}?module=Mediafolder&do=list&where=${data.where}&prevoffset=${data.prev}&prev=zurück">${lang("list.previous")}</a>
- </if>
- <if data.next>
- <a href="${config.actionRoot}?module=Mediafolder&do=list&where=${data.where}&nextoffset=${data.next}&next=weiter">${lang("list.next")}</a>
- </if>
-<else>
- <P align="center" class="box">${lang("no_matches_found")}</p>
-</if>
+ <if entities>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+ <call EntityTable(entities, ["name", "place","comment"],
+ [ lang("mediafolder.name"),
+ lang("mediafolder.location"),
+ lang("mediafolder.comment")], 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>
- <a class="link-box" href="${config.actionRoot}?module=Mediafolder&do=add">[+] ${lang("add")}</a>
- <a class="link-box" href="${config.actionRoot}">[<<<] ${lang("head.start")}</a>
- </p>
-
-<include "foot.template">
+ <include "foot.template">
</body>
</html>