source: trunk/templates/reclist.tmpl@ 381

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

/trunk

Normalize the formatting for the column-header-creator loop in the
templates. Use first instead of generating this by hand in Perl.

Also fix up whitespace to remove some newlines that showed up in odd
places in the output.

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