source: branches/stable/templates/reclist.tmpl@ 623

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

/branches/stable

Merge reverse DNS work and object conversion from /trunk, part 5

Includes changes through r543 with a few more minor conflicts.

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