topic administration
[mir.git] / templates / admin / topic.tmpl
diff --git a/templates/admin/topic.tmpl b/templates/admin/topic.tmpl
new file mode 100755 (executable)
index 0000000..179a838
--- /dev/null
@@ -0,0 +1,50 @@
+<html>
+  <head>
+    <title>${config["Mir.Name"]} | ${lang("topic.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="topicSave.do">
+        <assign new=request.new>
+      <else>
+        <assign action="topicSave.do">
+        <assign new="0">
+      </if>
+      
+      <call EditStart(
+         action,
+         ["id", "new"],
+         [request.topic.id, request.new])>
+         
+        <call EditReadonlyTextNormal(lang("topic.id"), request.topic.id)>
+        <call EditPullDown(lang("topic.parenttopic"), "parentTopic", request.topics, "id", "title", request.topic.parentTopic.id, "","","")>
+        <call EditTextNormal(lang("topic.title"), 40, 255, "title", request.topic.title)>
+        <call EditTextAreaNormal(lang("topic.description"), "", 40, 3, "description", request.topic.description)>
+        <call EditTextNormal(lang("topic.filename"), 20, 255, "filename", request.topic.filename)>
+        <call EditTextNormal(lang("topic.main_url"), 40, 255, "mainUrl", request.topic.mainUrl)>
+        <call EditTextNormal(lang("topic.archive_url"), 40, 255, "archivUrl", request.topic.archivUrl)>
+        
+        
+      
+        <if new=="1">
+          <call EditSubmitButtonNormal(lang("insert"), "save")>
+        <else>
+          <call EditSubmitButtonNormal(lang("save"), "save")>
+        </if> 
+
+      <call EditEnd()>
+      
+      <if returnurl>
+        <call showBack(returnurl)>
+      <else>
+        <call showBack("topicList.do")>
+      </if>
+
+    <include "foot.tmpl">
+  </body>
+</html>