folders.tmpl
branchxbelweb
changeset 45 c81d480c3224
child 46 d3c1de4d929e
equal deleted inserted replaced
44:87f94936990d 45:c81d480c3224
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
     2 <html>
       
     3   <TMPL_INCLUDE NAME="headers.tmpl">
       
     4   <body>
       
     5     <h1><TMPL_VAR remote_user>'s XBelWeb</h1>
       
     6     <TMPL_UNLESS folder>
       
     7       <p><TMPL_LOOP Parents><a href="?folder=<TMPL_VAR id>"><TMPL_VAR name></a>
       
     8         : </TMPL_LOOP></p>
       
     9     </TMPL_UNLESS>
       
    10     <h2><TMPL_IF folder><TMPL_VAR name><TMPL_ELSE>Main Folder</TMPL_IF>
       
    11     (<TMPL_VAR total>)</h2>
       
    12     <DIV class="subfolders">
       
    13     <ul>
       
    14     <TMPL_LOOP Subfolders>
       
    15       <li><a href="folders.py?folder=<TMPL_VAR id>"><TMPL_VAR name>
       
    16       	(<TMPL_VAR count>)</a>
       
    17 	<a href="delete_folders.py?folder=<TMPL_VAR id>">delete</a></li>
       
    18     </TMPL_LOOP>
       
    19     </ul>
       
    20     </div>
       
    21     <form action="folders.py" method="post" name="folders">
       
    22       <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
       
    23       <label>Add subfolder with keyword:
       
    24 	<select name="sel" size="1">
       
    25 	<TMPL_LOOP Keywords>
       
    26 	  <option value="<TMPL_VAR id>"
       
    27 	    ><TMPL_VAR keyword> (<TMPL_VAR count>)</option>
       
    28 	</TMPL_LOOP></select>
       
    29 	<button name="action" value="add">Add</button>
       
    30     </form>
       
    31     <hr>
       
    32     <div class="bookmarks">
       
    33     <dl>
       
    34     <TMPL_LOOP Bookmarks>
       
    35       <dt>
       
    36         <a href="<TMPL_VAR url>"><TMPL_VAR name></a>
       
    37 	<a href="edit.py?id=<TMPL_VAR id>">edit</a>
       
    38       </dt>
       
    39       <dd><p><TMPL_VAR desc></p></dd>
       
    40     </TMPL_LOOP>
       
    41     </dl>
       
    42     </div>
       
    43     <hr>
       
    44   </body>
       
    45 </html>
       
    46 <!-- Keep this comment at the end of the file
       
    47 Local variables:
       
    48 mode: sgml
       
    49 sgml-omittag:t
       
    50 sgml-shorttag:t
       
    51 sgml-namecase-general:t
       
    52 sgml-general-insert-case:lower
       
    53 sgml-minimize-attributes:nil
       
    54 sgml-always-quote-attributes:t
       
    55 sgml-indent-step:2
       
    56 sgml-indent-data:nil
       
    57 sgml-parent-document:nil
       
    58 sgml-exposed-tags:nil
       
    59 sgml-local-catalogs:nil
       
    60 sgml-local-ecat-files:nil
       
    61 End:
       
    62 vi: syntax=html
       
    63 -->