source: trunk/templates/reclist.tmpl@ 504

Last change on this file since 504 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: 4.0 KB
RevLine 
[2]1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
[39]4<td align="center" valign="top">
5
[378]6<TMPL_INCLUDE NAME="msgblock.tmpl">
[39]7
[140]8<TMPL_UNLESS perm_err>
[36]9<!-- FIXME: long data in records causes record list table to overflow one or another container -->
[2]10
[39]11<table><tr><td>
[38]12
[100]13<div class="center maintitle">Records<TMPL_IF NAME=parent> in <TMPL_VAR NAME=parent></TMPL_IF></div>
[39]14
[2]15<TMPL_INCLUDE NAME=soadata.tmpl>
16
[38]17<table border="0" width="100%">
[2]18<tr class="darkrowheader">
[39]19 <td colspan="2" align="left">
[12]20 <TMPL_INCLUDE NAME="pgcount.tmpl">
[2]21 </td>
[39]22 <td colspan="2" align="center">
[2]23 <TMPL_INCLUDE NAME="fpnla.tmpl">
24 </td>
[39]25 <td colspan="2" align="right">
[493]26 <form action="<TMPL_VAR NAME=script_self>">
[38]27 <fieldset>
[71]28 <input type="hidden" name="page" value="reclist" />
29 <input type="hidden" name="offset" value="0" />
30 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
31 <input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
[224]32 <input type="hidden" name="revrec" value="<TMPL_VAR NAME=revrec>" />
[137]33 <input name="filter"<TMPL_IF filter> value="<TMPL_VAR NAME=filter>"</TMPL_IF> />
[38]34 <input type="submit" value="Filter" />
35 </fieldset>
[2]36 </form>
37 </td>
38</tr>
39<tr class="darkrowheader">
[420]40 <td colspan="3">Records</td>
[493]41 <td align="center"><a href="textrecs.cgi?id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>">Plain text</a></td>
42<TMPL_IF record_create> <td align="right"><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>&amp;recact=new">Add record</a></td></TMPL_IF>
43 <td align="right"><a href="<TMPL_VAR NAME=script_self>&amp;page=log&amp;id=<TMPL_VAR NAME=id><TMPL_IF logdom>&amp;ltype=dom</TMPL_IF><TMPL_IF logrdns>&amp;ltype=rdns</TMPL_IF>">View log</a></td>
[2]44</tr>
45
46</table>
47
[39]48<table width="100%">
[38]49<TMPL_IF reclist>
[2]50<tr class="darkrowheader">
[493]51<TMPL_LOOP NAME=colheads> <td><a href="<TMPL_VAR NAME=script_self>&amp;page=<TMPL_VAR NAME=page><TMPL_IF
[76]52 NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR
53 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR
[224]54 NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>"><TMPL_VAR NAME=colname></a><TMPL_IF
[379]55 NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
56 NAME=sortorder>.png" /></TMPL_IF></td>
57</TMPL_LOOP>
[95]58<TMPL_IF record_delete> <td>Delete</td></TMPL_IF>
[72]59</tr>
[2]60<TMPL_LOOP NAME=reclist>
[397]61<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[224]62<TMPL_IF fwdzone>
[493]63 <td><TMPL_IF record_edit><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>&amp;recact=edit&amp;id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=host></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=host><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td>
[38]64 <td><TMPL_VAR NAME=type></td>
65 <td><TMPL_VAR NAME=val></td>
66 <td><TMPL_VAR NAME=distance></td>
67 <td><TMPL_VAR NAME=weight></td>
68 <td><TMPL_VAR NAME=port></td>
[224]69<TMPL_ELSE>
[493]70 <td><TMPL_IF record_edit><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>&amp;recact=edit&amp;id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=val></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=val><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td>
[224]71 <td><TMPL_VAR NAME=type></td>
72 <td><TMPL_VAR NAME=host></td>
73</TMPL_IF>
[38]74 <td><TMPL_VAR NAME=ttl></td>
[493]75<TMPL_IF record_delete> <td align="center"><a href="<TMPL_VAR NAME=script_self>&amp;page=delrec&amp;id=<TMPL_VAR NAME=record_id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;revrec=<TMPL_VAR NAME=revrec>&amp;parentid=<TMPL_VAR NAME=id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>
[38]76</tr>
[2]77</TMPL_LOOP>
[38]78<TMPL_ELSE>
79<tr><td colspan="5">No records found</td></tr>
80</TMPL_IF>
[39]81</table>
[2]82
83</td></tr></table>
[39]84<!-- /div -->
[140]85</TMPL_UNLESS>
[39]86
87</td>
88</tr>
89</table>
Note: See TracBrowser for help on using the repository browser.