source: trunk/templates/grpman.tmpl@ 392

Last change on this file since 392 was 379, checked in by Kris Deugau, 12 years ago

/trunk

Normalize the formatting for the column-header-creator loop in the
templates. Use first instead of generating this by hand in Perl.

Also fix up whitespace to remove some newlines that showed up in odd
places in the output.

File size: 2.2 KB
RevLine 
[19]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[22]6
[378]7<TMPL_INCLUDE NAME="msgblock.tmpl">
[22]8
[19]9<table width="98%">
[140]10<tr><th colspan="3"><div class="center maintitle"><TMPL_IF chggrps>Manage<TMPL_ELSE>View</TMPL_IF> groups</div></th></tr>
[41]11<tr>
12<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
13<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
14<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
15</tr>
[40]16<tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr>
[79]17<tr>
[140]18 <td colspan="2"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=gid>">Edit Current Group</a></TMPL_IF></td>
19 <td align="right"><TMPL_IF addgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newgrp">New Group</a></TMPL_IF>
20</td>
[79]21</tr>
[19]22</table>
23
[41]24<table width="98%" border="0" cellspacing="4" cellpadding="3">
[19]25<tr>
[379]26<TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR
27 NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
28 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
29 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
30 NAME=sortorder>.png" /></TMPL_IF></td>
31</TMPL_LOOP>
[140]32<TMPL_IF delgrp>
[41]33 <td class="datahead_s">Delete</td>
[140]34</TMPL_IF>
[19]35</tr>
[20]36<TMPL_IF name=grouptable>
37<TMPL_LOOP name=grouptable>
[314]38<tr class="row<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
[140]39 <td align="left"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td>
[38]40 <td><TMPL_VAR name=pgroup></td>
41 <td><TMPL_VAR name=nusers></td>
42 <td><TMPL_VAR name=ndomains></td>
[314]43 <td><TMPL_VAR NAME=nrevzones></td>
[140]44<TMPL_IF delgrp>
[38]45 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
[140]46</TMPL_IF>
[19]47</tr>
48</TMPL_LOOP>
49<TMPL_ELSE>
[41]50<tr><td colspan="5" align="center">No groups found</td></tr>
[19]51</TMPL_IF>
52</table>
53
54</td>
[38]55</tr>
[19]56</table>
Note: See TracBrowser for help on using the repository browser.