major cleanup:
[mir.git] / templates / admin / articletypelist.template
index 937896c..4361cfa 100755 (executable)
@@ -7,26 +7,14 @@
     
     <include "FUNCTIONS.template">
     <include "head.template">
+    
+    <call showAddOrBack("1", module, "Admin", "superusermenu")>
 
-    <assign contentlist = data.contentlist>
-    <assign column_nr = 3>
-    <assign data_keys = ["id","name"]>
-    <assign column_head_texts = [lang("articletype.id"), lang("articletype.name")]>
-    <assign column_head_CSS = "table_head">
-    <assign listrow1CSS = "listrow1">
-    <assign listrow2CSS = "listrow2">
-    <assign footer_css = "table_foot">
-    <assign module_name = "ArticleType">
-    <assign module_jumpback = "Admin">
-    <assign do_jumpback = "superusermenu">
-  
-    <include "templates/admin/head.template">
-  
-    <call AddOrBack(module_name, module_jumpback, do_jumpback)>
-
-    <if data.contentlist>
-      <call ListTable(contentlist, data_keys, column_head_texts, column_head_CSS, listrow1CSS, listrow2CSS, footer_css, module_name)>
-      <call AddOrBack(module_name, module_jumpback, do_jumpback)>
+    <if entities>
+      <call showPrevNextLinks(prevurl, nexturl, "left")>
+      <call EntityTable(entities, ["id","name"], [lang("articletype.id"), lang("articletype.name")], from, to, count, "1", "1", module)>
+      <call showPrevNextLinks(prevurl, nexturl, "left")>
+      <call showAddOrBack("1", module, "Admin", "superusermenu")>
     <else>
       <P align="center">${lang("no_matches_found")}</p>
     </if>