source: trunk/templates/menu.tmpl@ 89

Last change on this file since 89 was 69, checked in by Kris Deugau, 14 years ago

/trunk

Changes for much nicer-looking, nifty collapsible tree for groups

  • CSS derived from http://www.thecssninja.com/css/css-tree-menu
  • HTML changes to match
  • Template changes to make the source more closely match the rendered display (and the real tree structure)
  • Minor source tweaks to work with the template changes

Still to ponder:

  • IE (CSS collapsing tree doesn't render correctly in IE 6 or 8, *may* work in 9, pretty much guaranteed to fail in < 6), experiments with <!-- [if IE]--> constructs show they don't work well in <head>
  • Tweaks to allow clicking a group name in the tree to switch to that group (currently the hidden checkbox seems to take over then entire name/line/label, making it easy to expand or collapse the group, but harder to use it for anything else)
File size: 1.7 KB
RevLine 
[2]1<td class="menu">
[30]2<TMPL_VAR NAME=username> logged in<br />
[38]3<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;action=logout">Log out</a>
4<hr />
5<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist">Domains</a><br />
6<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=useradmin">Users</a><br />
7<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=log">Log</a><br />
8<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=reclist&amp;id=<TMPL_VAR NAME=group>&amp;defrec=y">Default Records</a><br />
9<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=axfr">AXFR Import</a><br />
10<hr />
[18]11Current group:
[38]12<form action="<TMPL_VAR NAME=whereami>" method="post">
13<fieldset>
[17]14<select name="group">
[38]15 <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
[17]16 </TMPL_LOOP>
17</select>
[38]18<input type="hidden" name="action" value="chgroup" />
19<input type="submit" value="Change group" />
20</fieldset>
[20]21</form>
[38]22<hr />
23<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman">Manage groups</a><br />
[43]24<div id="grptree">
[69]25
[65]26<ul class="grptree">
[69]27 <li class="<TMPL_IF NAME=subs>hassub<TMPL_ELSE>leaf</TMPL_IF>">
28<TMPL_IF name=subs> <label for="<TMPL_VAR NAME=logingrp>"><TMPL_IF inlogingrp><b><TMPL_VAR NAME=logingrp></b><TMPL_ELSE><TMPL_VAR NAME=logingrp></TMPL_IF></label>
29 <input type="checkbox" checked id="<TMPL_VAR NAME=logingrp>" /><TMPL_ELSE>
30 <TMPL_IF inlogingrp><b><TMPL_VAR NAME=logingrp></b><TMPL_ELSE><TMPL_VAR NAME=logingrp></TMPL_IF></TMPL_IF>
[43]31<TMPL_VAR NAME=grptree>
[69]32 </li>
[43]33</ul>
[69]34
[43]35</div>
[24]36<!-- hmm: <TMPL_VAR NAME=groupname> -->
[38]37<hr />
38<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=dnsq">DNS Query</a><br />
39<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=whoisq">WHOIS Query</a><br />
[2]40</td>
Note: See TracBrowser for help on using the repository browser.