summaryrefslogtreecommitdiff
path: root/html/logger.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'html/logger.tmpl')
-rw-r--r--html/logger.tmpl55
1 files changed, 55 insertions, 0 deletions
diff --git a/html/logger.tmpl b/html/logger.tmpl
new file mode 100644
index 0000000..ffded50
--- /dev/null
+++ b/html/logger.tmpl
@@ -0,0 +1,55 @@
+<p><p>
+<!-- TableTemplate -->
+<script type="text/javascript" src="javascript/helptip.js"></script>
+<link type="text/css" rel="StyleSheet" href="style/helptip.css" />
+
+<h1><?% gettext("Read journal file: ") %?><?% param.logfile %?></h1>
+<h3><?% gettext("Size: ") %?><?% param.Size %?>&nbsp;
+ <?% gettext("Last changed: ") %?><?% param.LastChanged %?></h3>
+<br/>
+<a href='?cmd=logger&data=<?% param.type %?>&__full=<?% param.full %?>'>[<?% gettext("Refresh") %?>]</a>
+<a href='?cmd=logger&data=<?% param.type %?>&__full=<?% param.full ? 0 : 1 %?>'>[
+ <?% param.full ? gettext("Short display")
+ : gettext("Full display") %?>]</a>
+<?%- truncatesize = param.full ? 1000 : param.maxlet -%?>
+<p/>
+<table border="0" width="95%">
+<?% fields = data.shift %?>
+ <tr>
+ <?% FOREACH field = fields %?>
+ <?% NEXT IF field.match('^__') %?>
+ <th>
+ <nobr><?% field | html %?>
+ <?% IF param.sortable %?>
+ <a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=0"><img src="images/asc.png"></a>
+ <a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=1"><img src="images/desc.png"></a>
+ <?% END %?>
+ </nobr>
+ </th>
+ <?% END %?>
+ </tr>
+ <?% x = -1 %?>
+ <?% FOREACH zeile = data %?>
+ <tr>
+ <?% x = x + 1 %?>
+ <?% c = -1 %?>
+ <?% FOREACH field = zeile %?>
+ <?% c = c + 1 %?>
+ <?% NEXT IF fields.$c.match('^__') %?>
+ <td <?% IF (x mod 2) == 0 %?>bgcolor='#F5F5F5'<?% END %?>>
+ <?% IF field == zeile.last && truncatesize < 100 %?>
+ <a id="test" href="?" class="helpLink" onclick='showHelpTip(event, "<?% escape(zeile.last.replace(" ", "&nbsp;&nbsp;")) %?>", true); return false'>
+ <font color='<?% param.color(zeile) %?>'>
+ <?% chop(field,truncatesize) %?>
+ </font>
+ </a>
+ <?% ELSE %?>
+ <font color='<?% param.color(zeile) %?>'>
+ <?% chop(field,truncatesize) %?>
+ </font>
+ <?% END %?>
+ </td>
+ <?% END %?>
+ </tr>
+ <?% END %?>
+</table>