source: trunk/templates/useradmin.tmpl@ 211

Last change on this file since 211 was 207, checked in by Kris Deugau, 13 years ago

/trunk

Fix overloaded-$webvar{action}-related buglet - changing the default
group can cause the page to mutate due to template/page overloading.
Reported by Reid Sutherland on the "Edit user" page, when clicking
a group to change the default group.

Group edit and bulk domain change pages tweaked although the impact
is limited to changing the starting data, not the page operation.

File size: 2.6 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
[144]7<TMPL_IF resultmsg>
8<div class="result"><TMPL_VAR NAME=resultmsg></div>
9</TMPL_IF>
[67]10<TMPL_IF warnmsg>
11<div class="warning">Warning: <TMPL_VAR NAME=warnmsg></div>
12</TMPL_IF>
[142]13<TMPL_IF errmsg>
[144]14<div class="errmsg"><TMPL_VAR NAME=errmsg></div>
[100]15</TMPL_IF>
[24]16
[100]17<table width="98%" class="csubtable">
18<tr><th colspan="3"><div class="center maintitle">Manage users</div></th></tr>
[41]19<tr>
20<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
21<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
22<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
23</tr>
[40]24<tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr>
[142]25<TMPL_IF adduser>
[67]26<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=user">New User</a></td></tr>
[142]27</TMPL_IF>
[24]28</table>
29
[100]30<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
[24]31<tr>
[44]32<TMPL_LOOP NAME=colheads>
33 <td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP>
[142]34<TMPL_IF deluser> <td class="datahead_s">Delete</td></TMPL_IF>
[24]35</tr>
36<TMPL_IF name=usertable>
37<TMPL_LOOP name=usertable>
38<tr class="row<TMPL_VAR name=bg>">
[207]39 <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=userid>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>
[59]40 <td class="data_nowrap"><TMPL_VAR name=userfull></td>
[38]41 <td><TMPL_VAR name=usertype></td>
42 <td><TMPL_VAR name=usergroup></td>
[142]43 <td align="center">
44<TMPL_IF eduser>
45 <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=userid>&amp;userstatus=<TMPL_IF active>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF active>enabled<TMPL_ELSE>disabled</TMPL_IF></a>
46<TMPL_ELSE>
47 <TMPL_IF active>enabled<TMPL_ELSE>disabled</TMPL_IF>
48</TMPL_IF>
49</td>
50<TMPL_IF deluser>
[38]51 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deluser&amp;id=<TMPL_VAR NAME=userid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
[142]52</TMPL_IF>
[24]53</tr>
54</TMPL_LOOP>
55<TMPL_ELSE>
[41]56<tr><td colspan="6">No users found</td></tr>
[24]57</TMPL_IF>
58</table>
59
60</td>
[38]61</tr>
[24]62</table>
Note: See TracBrowser for help on using the repository browser.