source: trunk/templates/useradmin.tmpl@ 479

Last change on this file since 479 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.4 KB
RevLine 
[24]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[144]5<td align="center" valign="top">
[24]6
[378]7<TMPL_INCLUDE NAME="msgblock.tmpl">
[24]8
[100]9<table width="98%" class="csubtable">
10<tr><th colspan="3"><div class="center maintitle">Manage users</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>
[142]17<TMPL_IF adduser>
[67]18<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=user">New User</a></td></tr>
[142]19</TMPL_IF>
[24]20</table>
21
[100]22<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
[24]23<tr>
[379]24<TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR
25 NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
26 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
27 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
28 NAME=sortorder>.png" /></TMPL_IF></td>
29</TMPL_LOOP>
[142]30<TMPL_IF deluser> <td class="datahead_s">Delete</td></TMPL_IF>
[24]31</tr>
32<TMPL_IF name=usertable>
33<TMPL_LOOP name=usertable>
[325]34<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
35 <td align="left"><TMPL_IF eduser><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=user&amp;useraction=edit&amp;user=<TMPL_VAR NAME=user_id>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>
36 <td class="data_nowrap"><TMPL_VAR name=fname></td>
37 <td><TMPL_VAR name=type></td>
38 <td><TMPL_VAR name=group_name></td>
[142]39 <td align="center">
40<TMPL_IF eduser>
[325]41 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=useradmin<TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;id=<TMPL_VAR NAME=user_id>&amp;userstatus=<TMPL_IF status>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF status>enabled<TMPL_ELSE>disabled</TMPL_IF></a>
[142]42<TMPL_ELSE>
[325]43 <TMPL_IF status>enabled<TMPL_ELSE>disabled</TMPL_IF>
[142]44</TMPL_IF>
45</td>
46<TMPL_IF deluser>
[325]47 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deluser&amp;id=<TMPL_VAR NAME=user_id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
[142]48</TMPL_IF>
[24]49</tr>
50</TMPL_LOOP>
51<TMPL_ELSE>
[41]52<tr><td colspan="6">No users found</td></tr>
[24]53</TMPL_IF>
54</table>
55
56</td>
[38]57</tr>
[24]58</table>
Note: See TracBrowser for help on using the repository browser.