merged with 1.1
[mir.git] / templates / admin / mediafolderlist.template
index 06b3a31..62787b7 100755 (executable)
@@ -5,53 +5,24 @@
 </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">&nbsp;</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}&nbsp;</td>
-        <td><b>${entry.name}</b>&nbsp;</td>
-        <td>${entry.place}&nbsp;</td>
-        <td>${entry.comment}&nbsp;</td>
-        <td>${entry.keywords}&nbsp;</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>&nbsp;</td>
-      </tr>
-  </table>
-      <P>
-  <if data.prev>
-  <a href="${config.actionRoot}?module=Mediafolder&do=list&where=${data.where}&prevoffset=${data.prev}&prev=zur&uuml;ck">${lang("list.previous")}</a>&nbsp;
-  </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> &nbsp;
-      <a class="link-box" href="${config.actionRoot}">[&lt;&lt;&lt;] ${lang("head.start")}</a>
-  </p>
-
-<include "foot.template">
+    <include "foot.template">
 </body>
 </html>