source: trunk/templates/log.tmpl@ 352

Last change on this file since 352 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
RevLine 
[47]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
[2]4
[100]5<td align="center" valign="top">
[2]6
[180]7<TMPL_IF errmsg>
8<div class='errmsg'><TMPL_VAR NAME=errmsg></div>
9</TMPL_IF>
10
[60]11<table border="0" width="90%">
[323]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%">
[90]20 <!-- Not sure "Customer ID" (filled with uid) is of any use... -->
21 <!-- td>Customer ID</td -->
[323]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
[47]32<TMPL_IF logentries>
33<TMPL_LOOP NAME=logentries>
34 <tr class="datalinelight">
35 <td><TMPL_VAR NAME=userfname></td>
[90]36 <!-- td><TMPL_VAR NAME=userid></td -->
[47]37 <td><TMPL_VAR NAME=useremail></td>
38 <td><TMPL_VAR NAME=logentry></td>
39 <td><TMPL_VAR NAME=logtime></td>
[2]40 </tr>
[47]41</TMPL_LOOP>
42<TMPL_ELSE>
43 <tr class="datalinelight">
44 <td colspan="5" align="center">No log entries found</td>
[2]45 </tr>
[47]46</TMPL_IF>
[2]47</table>
48
[47]49</td>
[2]50</tr>
51</table>
Note: See TracBrowser for help on using the repository browser.