source: trunk/templates/log.tmpl@ 734

Last change on this file since 734 was 733, checked in by Kris Deugau, 9 years ago

/trunk

Add log filtering supporting redirecting to a "base" log set for user,
domain, or revzone, and a free text field to filter the entries. Closes #17.

While we're meddling with the log entry retrieval, start an experiment
to merge getFooCount() and getFooList() subs. See #62.

File size: 2.5 KB
RevLine 
[589]1<body>
2<div id="main">
3
[47]4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
[2]6
[100]7<td align="center" valign="top">
[2]8
[180]9<TMPL_IF errmsg>
[733]10<div class="errmsg"><TMPL_VAR NAME=errmsg></div>
[180]11</TMPL_IF>
12
[733]13<table border="0" width="98%">
[323]14<tr><th colspan="3"><div class="center maintitle">Log entries for <TMPL_VAR NAME=logfor></div></th></tr>
15<tr>
16<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
17<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
[733]18<td class="rightthird">
19 <form action="<TMPL_VAR NAME=script_self>">
20 <input type="hidden" name="page" value="log" />
21 <input type="hidden" name="offset" value="0" />
22 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
23 <input type="hidden" name="ltype" value="<TMPL_VAR NAME=ltype>" />
24 <input name="filter"<TMPL_IF filter> value="<TMPL_VAR NAME=filter>"</TMPL_IF> />
25 <input type="submit" value="Filter" />
26 </form>
27</td>
[323]28</tr>
29</table>
[733]30<table border="0" width="98%">
[323]31<tr class="darkrowheader">
[733]32<TMPL_LOOP NAME=colheads>
33 <td class="data_nowrap"><a href="<TMPL_VAR NAME=script_self>&amp;page=<TMPL_VAR NAME=page><TMPL_IF
[323]34 NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR
35 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;id=<TMPL_VAR NAME=id>&amp;ltype=<TMPL_VAR
36 NAME=ltype>"><TMPL_VAR NAME=colname></a><TMPL_IF
[379]37 NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
38 NAME=sortorder>.png" /></TMPL_IF></td>
39</TMPL_LOOP>
[323]40</tr>
41
[47]42<TMPL_IF logentries>
43<TMPL_LOOP NAME=logentries>
44 <tr class="datalinelight">
[733]45 <td><a href="<TMPL_VAR NAME=script_self>&amp;page=log&amp;sortby=<TMPL_VAR
46 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;<TMPL_IF userid>id=<TMPL_VAR
47 NAME=userid><TMPL_ELSE>fname=<TMPL_VAR NAME=userfname ESCAPE=URL></TMPL_IF>&amp;ltype=user"><TMPL_VAR
48 NAME=userfname></a></td>
49 <td><a href="<TMPL_VAR NAME=script_self>&amp;page=log&amp;sortby=<TMPL_VAR
50 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;id=<TMPL_VAR
51 NAME=domain_id>&amp;ltype=dom"><TMPL_VAR NAME=domain></a></td>
52 <td><a href="<TMPL_VAR NAME=script_self>&amp;page=log&amp;sortby=<TMPL_VAR
53 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>&amp;id=<TMPL_VAR
54 NAME=rdns_id>&amp;ltype=rdns"><TMPL_VAR NAME=revzone></a></td>
[47]55 <td><TMPL_VAR NAME=logentry></td>
56 <td><TMPL_VAR NAME=logtime></td>
[2]57 </tr>
[47]58</TMPL_LOOP>
59<TMPL_ELSE>
60 <tr class="datalinelight">
61 <td colspan="5" align="center">No log entries found</td>
[2]62 </tr>
[47]63</TMPL_IF>
[2]64</table>
65
[731]66<TMPL_IF logentries><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
67
[47]68</td>
[2]69</tr>
70</table>
Note: See TracBrowser for help on using the repository browser.