source: trunk/templates/log.tmpl@ 346

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

/trunk

Moved some more SQL out of dns.cgi (see #1). Added pagination
and sorting to the log display while I was at it.

File size: 1.6 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 errmsg>
8<div class='errmsg'><TMPL_VAR NAME=errmsg></div>
9</TMPL_IF>
10
11<table border="0" width="90%">
12<tr><th colspan="3"><div class="center maintitle">Log entries for <TMPL_VAR NAME=logfor></div></th></tr>
13<tr>
14<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
15<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
16<td class="rightthird">&nbsp;</td>
17</tr>
18</table>
19<table border="0" width="90%">
20 <!-- Not sure "Customer ID" (filled with uid) is of any use... -->
21 <!-- td>Customer ID</td -->
22<tr class="darkrowheader">
23<TMPL_LOOP NAME=colheads><TMPL_IF firstcol></TMPL_IF>
24 <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF
25 NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR
26 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;id=<TMPL_VAR NAME=id>&amp;ltype=<TMPL_VAR
27 NAME=ltype>"><TMPL_VAR NAME=colname></a><TMPL_IF
28 NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VARNAME=sortorder>.png"
29 /></TMPL_IF></td></TMPL_LOOP>
30</tr>
31
32<TMPL_IF logentries>
33<TMPL_LOOP NAME=logentries>
34 <tr class="datalinelight">
35 <td><TMPL_VAR NAME=userfname></td>
36 <!-- td><TMPL_VAR NAME=userid></td -->
37 <td><TMPL_VAR NAME=useremail></td>
38 <td><TMPL_VAR NAME=logentry></td>
39 <td><TMPL_VAR NAME=logtime></td>
40 </tr>
41</TMPL_LOOP>
42<TMPL_ELSE>
43 <tr class="datalinelight">
44 <td colspan="5" align="center">No log entries found</td>
45 </tr>
46</TMPL_IF>
47</table>
48
49</td>
50</tr>
51</table>
Note: See TracBrowser for help on using the repository browser.