source: trunk/templates/reclist.tmpl@ 75

Last change on this file since 75 was 72, checked in by Kris Deugau, 14 years ago

/trunk

Checkpoint - adding sort-on-title-click to record list columns

  • HTML seems complete
  • Still need to store sort type, direction in session
  • Still need to pass sort info into record retrieval sub in DNSDB.pm
File size: 3.1 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 del_failed>
8 <div class='errmsg'>Error deleting record: <TMPL_VAR NAME=errmsg></div>
9 </TMPL_IF>
10
11<!-- FIXME: long data in records causes record list table to overflow one or another container -->
12
13<table><tr><td>
14
15<div class="center">Records<TMPL_IF NAME=parent> in <TMPL_VAR NAME=parent></TMPL_IF></div>
16
17<TMPL_INCLUDE NAME=soadata.tmpl>
18
19<table border="0" width="100%">
20<tr class="darkrowheader">
21 <td colspan="2" align="left">
22 <TMPL_INCLUDE NAME="pgcount.tmpl">
23 </td>
24 <td colspan="2" align="center">
25 <TMPL_INCLUDE NAME="fpnla.tmpl">
26 </td>
27 <td colspan="2" align="right">
28 <form action="dns.cgi">
29 <fieldset>
30 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
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>" />
35 <input name="search" />
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 <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>
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>">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>
53 <!-- td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>" -->
54<td><a href="dns.cgi?sid=<TMPL_VAR
55NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
56NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR
57NAME=order>&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>"><TMPL_VAR
58NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>"
59src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP>
60
61<!-- <td>Name</td>
62 <td>Type</td>
63 <td>Address</td>
64 <td>Distance</td><td>Weight</td><td>Port</td><td>TTL</td> -->
65
66 <td>Delete</td>
67</tr>
68<TMPL_LOOP NAME=reclist>
69<tr class="row<TMPL_VAR NAME=row>">
70 <td><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></td>
71 <td><TMPL_VAR NAME=type></td>
72 <td><TMPL_VAR NAME=val></td>
73 <td><TMPL_VAR NAME=distance></td>
74 <td><TMPL_VAR NAME=weight></td>
75 <td><TMPL_VAR NAME=port></td>
76 <td><TMPL_VAR NAME=ttl></td>
77 <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>
78</tr>
79</TMPL_LOOP>
80<TMPL_ELSE>
81<tr><td colspan="5">No records found</td></tr>
82</TMPL_IF>
83</table>
84
85</td></tr></table>
86<!-- /div -->
87
88</td>
89</tr>
90</table>
Note: See TracBrowser for help on using the repository browser.