blob: eccb4a75825da5ff9ce013a1e9b27e23cc6e3de7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 %?>
<?% 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 IN fields %?>
<?% NEXT IF field.match('^__') %?>
<th>
<nobr><?% field %?>
<?% 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 IN data %?>
<tr>
<?% x = x + 1 %?>
<?% c = -1 %?>
<?% FOREACH field IN 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(" ", " ")) %?>", 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>
|