folders.tmpl
author fabien
Thu, 30 Oct 2003 03:24:25 -0500
branchxbelweb
changeset 54 f74bad856bce
parent 53 e80160a19653
child 57 31271426f879
permissions -rw-r--r--
[svn r1611] Optimization of db.get_bookmarks_count which was call too often.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <TMPL_INCLUDE NAME="headers.tmpl">
  <body>
    <h1><TMPL_VAR remote_user>'s XBelWeb</h1>
    <TMPL_IF folder>
      <p>Parents: 
        <TMPL_LOOP Parents>
	<TMPL_IF id> : </TMPL_IF>
	<a href="?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="index.py?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="index.py?view=folder;folder=<TMPL_VAR id>"><TMPL_VAR name>
      	(<TMPL_VAR count>)</a></li>
    </TMPL_LOOP>
    </ul>
    </form>
    </div>
    <form action="index.py?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="?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
-->