source: trunk/templates/reclist.tmpl@ 696

Last change on this file since 696 was 589, checked in by Kris Deugau, 11 years ago

/trunk

Le sigh. Move a small fragment of HTML from the header back to all the
individual pages that need it, so we can selectively load and use
Javascript, and do some initial tweaking with body.onload.

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