new templates
[mir.git] / templates / admin / message.tmpl
diff --git a/templates/admin/message.tmpl b/templates/admin/message.tmpl
new file mode 100755 (executable)
index 0000000..1718ceb
--- /dev/null
@@ -0,0 +1,45 @@
+<html>
+  <head>
+    <title>${config["Mir.Name"]} | ${lang("message.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">
+  
+      <if request.new && request.new=="1">
+        <assign action="messageSave.do">
+        <assign new=request.new>
+      <else>
+        <assign action="messageSave.do">
+        <assign new="0">
+      </if>
+      
+      
+      <call EditStart(action,["id", "offset", "new"], [request.id, request.offset, request.new])>
+         
+        <call EditReadonlyTextNormal(lang("message.id"), request.message.id)>
+        <call EditReadonlyTextNormal(lang("message.date"), request.message.webdbCreate.format(config["Mir.DefaultDateTimeFormat"]))>
+        <call EditTextNormal(lang("message.title"), 30, 30, "title", request.message.title)>
+        <call EditTextNormal(lang("message.creator"), 30, 30, "creator", request.message.creator)>
+
+        <call EditTextAreaNormal(lang("message.text"), "", "50", "5", "description", request.message.description)>
+      
+        <if request.new=="1">
+          <call EditSubmitButtonNormal(lang("insert"), "save")>
+        <else>
+          <call EditSubmitButtonNormal(lang("save"), "save")>
+        </if> 
+
+      <call EditEnd()>
+      
+      <if returnurl>
+        <call showBack(returnurl)>
+      <else>
+        <call showBack("module="+module+"&amp;do=list")>
+      </if>
+
+    <include "foot.template">
+  </body>
+</html>