source: trunk/templates/useradmin.tmpl@ 499

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

/trunk

Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.

Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.

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