templates/folders.tmpl
changeset 59 2c5e38748004
parent 58 004a32370ba5
child 74 6784c4350b41
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/folders.tmpl	Sun Dec 28 12:29:23 2008 -0500
@@ -0,0 +1,66 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+  <TMPL_INCLUDE NAME="headers.tmpl">
+  <body>
+    <TMPL_INCLUDE "top.tmpl">
+    <TMPL_IF folder>
+      <p>Parents: 
+        <TMPL_LOOP Parents>
+	<TMPL_IF id> : </TMPL_IF>
+	<a href="?action=index&view=folder&folder=<TMPL_VAR id>"><TMPL_IF id><TMPL_VAR name>
+	<TMPL_ELSE>Top </TMPL_IF> (<TMPL_VAR count>)</a>
+	</TMPL_LOOP>
+      </p>
+    </TMPL_IF>
+    <h2><TMPL_IF folder><TMPL_VAR name><TMPL_ELSE>Main Folder</TMPL_IF>
+    (<TMPL_VAR subtotal>/<TMPL_VAR total>)</h2>
+    <DIV class="subfolders">
+    <form action="?action=index&view=folder&folder=<TMPL_VAR folder>" method="post" name="edit_folders">
+    <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
+    <input type="hidden" name="view" value="folder"/>
+    <input type="hidden" name="action" value="delete"/>
+    <ul>
+    <TMPL_LOOP Subfolders>
+      <li><button name="delete" value="<TMPL_VAR id>">Delete</button>
+      <a href="?action=index&view=folder&folder=<TMPL_VAR id>"><TMPL_VAR name>
+      	(<TMPL_VAR count>)</a></li>
+    </TMPL_LOOP>
+    </ul>
+    </form>
+    </div>
+    <form action="?action=index&view=folder&folder=<TMPL_VAR folder>" method="post" name="add_folder">
+      <label>Add subfolder with keyword:
+      <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
+      <input type="hidden" name="view" value="folder"/>
+	<select name="sel" size="1">
+	<TMPL_LOOP Keywords>
+	  <option value="<TMPL_VAR id>"
+	    ><TMPL_VAR keyword> (<TMPL_VAR removed>/<TMPL_VAR count>)</option>
+	</TMPL_LOOP></select>
+	<button name="action" value="add">Add</button>
+    </form>
+    <hr>
+    <TMPL_INCLUDE NAME="bkmarks.tmpl">
+    <hr>
+    <a href="?action=index&view=dynamic">Switch to dynamic view</a>
+    <TMPL_INCLUDE NAME="footers.tmpl">
+  </body>
+</html>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-namecase-general:t
+sgml-general-insert-case:lower
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:nil
+sgml-parent-document:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vi: syntax=html
+-->