topic administration
authoridfx <idfx>
Tue, 30 Sep 2003 19:34:04 +0000 (19:34 +0000)
committeridfx <idfx>
Tue, 30 Sep 2003 19:34:04 +0000 (19:34 +0000)
templates/admin/foot.tmpl [new file with mode: 0755]
templates/admin/index.tmpl
templates/admin/message.tmpl
templates/admin/superusermenu.tmpl [new file with mode: 0755]
templates/admin/topic.tmpl [new file with mode: 0755]
templates/admin/topiclist.tmpl [new file with mode: 0755]

diff --git a/templates/admin/foot.tmpl b/templates/admin/foot.tmpl
new file mode 100755 (executable)
index 0000000..d67fe76
--- /dev/null
@@ -0,0 +1,23 @@
+<hr>  
+<table width="100%" cellspacing="0">
+  <tbody>
+  <tr>
+    <td align="left" class="table-head">
+      <a href="#top"><span class="table-head"> ${lang("foot.top")}</span></a>
+      <if returnurl>
+        <a href="${config.actionRoot}?${returnurl}"><span class="table-head"> | &nbsp;&nbsp;${lang("back")} [ &lt; ]</span></a>&nbsp;&nbsp;
+      </if>
+    </td>
+    <td align="right" class="table-head">
+      <a href="mailto:${config["Mir.Contact-email.address"]}"><span class="table-head">${config["Mir.Shortname"]}</span></a> - ${config["Mir.Version"]}
+    </td>
+  </tr>
+</tbody>
+</table>
+
+
+  
+  
+  
+
+
index 9c4024f..bbf148a 100755 (executable)
     </p>
     
     <p class="box bg-neutral">
-      <a href="${config.docRoot}?module=Admin&do=superusermenu">${lang("start.superusermenu")}</a>   
+      <a href="${utility.encodeLink(config.docRoot+"/admin/superusermenu.shtml")}">${lang("start.superusermenu")}</a>   
     </p>
 
   </td>
index 1718ceb..5cd7577 100755 (executable)
@@ -37,9 +37,9 @@
       <if returnurl>
         <call showBack(returnurl)>
       <else>
-        <call showBack("module="+module+"&amp;do=list")>
+        <call showBack("messageList.do")>
       </if>
 
-    <include "foot.template">
+    <include "foot.tmpl">
   </body>
 </html>
diff --git a/templates/admin/superusermenu.tmpl b/templates/admin/superusermenu.tmpl
new file mode 100755 (executable)
index 0000000..74d7d6d
--- /dev/null
@@ -0,0 +1,36 @@
+<html>
+<head>
+  <title>${config["Mir.Name"]} | ${lang("superusermenu.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 "head.template">
+
+<table width="95%">
+  <tbody>
+    <tr>
+    <td width="30%">  
+    <p class="box-head"><b>${lang("superusermenu.manage")}:</b></p>
+    <p class="box">
+    &gt; <a href="${utility.encodeLink(config.docRoot+"/admin/topicList.do")}">${lang("superusermenu.topics")}</a><br>
+    &gt; <a href="${config.actionRoot}?module=ArticleType&do=list">${lang("superusermenu.articletypes")}</a><br>
+    &gt; <a href="${config.actionRoot}?module=CommentStatus&do=list">${lang("superusermenu.comment_statuses")}</a><br>
+    &gt; <a href="${config.actionRoot}?module=Users&do=list">${lang("superusermenu.users")}</a><br>
+    &gt; <a href="${config.actionRoot}?module=Language&do=list">${lang("superusermenu.languages")}</a><br>
+    &gt; <a href="${config.actionRoot}?module=Abuse">${lang("superusermenu.abuse")}</a><br>
+    </p>
+    </td>
+      <td>&nbsp;  </td>
+      <td>&nbsp;  </td>
+    </tr>
+  </tbody>
+</table>
+<p><a class="link-box" href="${config.actionRoot}">[&lt;&lt;&lt;] ${lang("head.start")}</a></p>
+
+<include "foot.template">
+
+</body>
+</html>
+
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>
diff --git a/templates/admin/topiclist.tmpl b/templates/admin/topiclist.tmpl
new file mode 100755 (executable)
index 0000000..da1a72f
--- /dev/null
@@ -0,0 +1,39 @@
+<html>
+  <head>
+    <title>${config["Mir.Name"]} | ${lang("topiclist.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", "topicAdd.do", "Admin", "superusermenu")>
+
+    <if request.topics>
+      <assign baselisturl = "topicList.do?offset=">
+      <call showPrevNextLinks(baselisturl+request.lastoffset, baselisturl+request.nextoffset, "left")>
+      <call EntityTable(request.topics, [
+           "title", 
+           "filename", 
+           "mainUrl", 
+           "archivUrl",
+           "description"], 
+           [ lang("topic.title"), 
+             lang("topic.filename"), 
+             lang("topic.main_url"), 
+             lang("topic.archive_url"), 
+             lang("topic.description")], 
+          request.offset, request.nextoffset, "", "topicDelete.do", "topicEdit.do", "topicList.do")>
+      <call showPrevNextLinks(baselisturl+request.lastoffset, baselisturl+request.nextoffset, "left")>
+      <call showAddOrBack("1", module, "Admin", "superusermenu")>
+    <else>
+      <P align="center">${lang("no_matches_found")}</p>
+    </if>
+
+    <include "foot.tmpl">
+  </body>
+</html>
+
+