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

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

/branches/stable

Merge plaintext record list feature from /trunk r420 and r421,
with minor changes to account for no reverse records.
Bump patch version.

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