new templates for using struts
[mir.git] / templates / admin / messagelist.tmpl
diff --git a/templates/admin/messagelist.tmpl b/templates/admin/messagelist.tmpl
new file mode 100755 (executable)
index 0000000..4294784
--- /dev/null
@@ -0,0 +1,30 @@
+<html>
+<head>
+  <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 "FUNCTIONS.tmpl">
+    <include "head.tmpl">
+    
+    <call showAddOrBack("1", "messageAdd.shtml", "index.do", "")>
+
+    <if request.messages>
+      <assign baselisturl = "/admin/messageList.do?offset=">
+      <call showPrevNextLinks(baselisturl+request.lastoffset, baselisturl+request.nextoffset, "left")>
+      <call EntityTable(request.messages, [
+           "id", "title", "creator", "description"], 
+           [ lang("message.id"), lang("message.title"), lang("message.creator"), lang("message.text")], 
+          request.offset, request.nextoffset, "", "messageDelete.do", "messageEdit.do", "messagesEdit.do")>
+      <call showPrevNextLinks(baselisturl+request.lastoffset, baselisturl+request.nextoffset, "left")>
+      <call showAddOrBack("1", "messageAdd.shtml", "index.do", "")>
+    <else>
+      <P align="center">${lang("no_matches_found")}</p>
+    </if>
+
+    <include "foot.template">
+
+</body>
+</html>