source: trunk/templates/reclist.tmpl@ 291

Last change on this file since 291 was 248, checked in by Kris Deugau, 13 years ago

/trunk

Quick pass over log linking and display for reverse zones. See #26.
Also add a ##fixme in logaction() for pagination, filtering, and
other log data massaging.

Fix a couple of typos introduced by hand-applying unrelated fixes
in a separate working copy

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