source: trunk/templates/loclist.tmpl@ 567

Last change on this file since 567 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: 1.9 KB
RevLine 
[370]1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
4<td align="center" valign="top">
5
[378]6<TMPL_INCLUDE NAME="msgblock.tmpl">
[370]7
8<table width="98%" class="csubtable">
9<tr><th colspan="3"><div class="center maintitle">Manage locations/views</div></th></tr>
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>
15<TMPL_IF addloc>
[493]16<tr><td colspan="3" align="right"><a href="<TMPL_VAR NAME=script_self>&amp;page=location">New Location/View</a></td></tr>
[370]17</TMPL_IF>
18</table>
19
20<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
21<tr>
[493]22<TMPL_LOOP NAME=colheads> <td class="datahead_s"><a href="<TMPL_VAR
23 NAME=script_self>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
[379]24 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
25 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
26 NAME=sortorder>.png" /></TMPL_IF></td>
27</TMPL_LOOP>
[370]28<TMPL_IF delloc> <td class="datahead_s">Delete</td></TMPL_IF>
29</tr>
30<TMPL_IF name=loctable>
31<TMPL_LOOP name=loctable>
32<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[493]33 <td align="left"><TMPL_IF edloc><a href="<TMPL_VAR NAME=script_self>&amp;page=location&amp;locact=edit&amp;loc=<TMPL_VAR NAME=location>"><TMPL_VAR NAME=description></a><TMPL_ELSE><TMPL_VAR NAME=description></TMPL_IF></td>
[370]34 <td><TMPL_VAR name=iplist></td>
35 <td><TMPL_VAR name=group_name></td>
36<TMPL_IF delloc>
[493]37 <td align="center"><a href="<TMPL_VAR NAME=script_self>&amp;page=delloc&amp;locid=<TMPL_VAR
[427]38NAME=location>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
[370]39</TMPL_IF>
40</tr>
41</TMPL_LOOP>
42<TMPL_ELSE>
43<tr><td colspan="6">No locations/views defined</td></tr>
44</TMPL_IF>
45</table>
46
47</td>
48</tr>
49</table>
Note: See TracBrowser for help on using the repository browser.