new templates for editing files
authorinit <init>
Fri, 9 Aug 2002 14:45:28 +0000 (14:45 +0000)
committerinit <init>
Fri, 9 Aug 2002 14:45:28 +0000 (14:45 +0000)
templates-dist/admin/fileedit.template [new file with mode: 0755]
templates-dist/admin/fileeditlist.template [new file with mode: 0755]

diff --git a/templates-dist/admin/fileedit.template b/templates-dist/admin/fileedit.template
new file mode 100755 (executable)
index 0000000..e44585c
--- /dev/null
@@ -0,0 +1,52 @@
+<html>
+<head>
+       <title>${lang("fileedit")}</title>
+       <link rel="stylesheet" type="text/css" href="${config.docRoot}/admin.css">
+
+</head>
+
+<body bgcolor="#FFFFFF">
+
+<include "admin/head.template">
+
+<br>
+<b>${lang("fileedit")} :</b> ${data.filename}
+
+<br>
+
+<form action="${config.actionRoot}" method="post">
+
+       <input type="hidden" name="module" value="Fileedit">
+       <input type="hidden" name="id" value="${data.filename}">
+        <input type="hidden" name="do" value="save">
+
+
+        <textarea cols="66" rows="40" name="text" wrap=virtual>${data.text}</textarea>
+
+<br>
+
+
+
+        <input type="submit" name="save" value="${lang("save")}"> &nbsp;
+        <input type="reset" value="${lang("reset")}">
+
+
+</form>
+<br>
+<br>
+
+${lang("preview")}
+
+<hr size="4" width="90%" noshade>
+
+${data.text}
+
+<hr size="4" width="90%" noshade>
+<br>
+
+<include "admin/foot.template">
+
+</body>
+</html>
+
+
diff --git a/templates-dist/admin/fileeditlist.template b/templates-dist/admin/fileeditlist.template
new file mode 100755 (executable)
index 0000000..efbdbaf
--- /dev/null
@@ -0,0 +1,41 @@
+<html>
+<head>
+       <title>${lang("fileedit")}</title>
+</head>
+
+<body bgcolor="#FFFFFF">
+<include "admin/head.template">
+
+
+<if data.filelist>
+
+<table border="0" cellpadding="2" cellspacing="1">
+
+  <tr bgcolor="#006600">
+
+    <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>${lang("language.file")}</b></font></td>
+       <td>&nbsp;</td>
+  </tr>
+
+
+  <list data.filelist as entry>
+        <tr
+        <if grey=="1"><assign grey="0">bgcolor="#dddddd" <else><assign grey="1"> </if>
+        >
+                <td>${entry}&nbsp;</td>
+                <td><font size="1"><a href="${config.actionRoot}?module=Fileedit&do=edit&id=${entry}">${lang("edit")}</a></font></td>
+        </tr>
+  </list>
+
+</table>
+
+      <P>
+
+<else>
+  <P align="center">${lang("no_matches_found")}</p>
+</if>
+<include "admin/foot.template">
+</body>
+</html>
+
+