summaryrefslogtreecommitdiff
path: root/skins/deltab/logger.tmpl
blob: 70c5ac75a69c031f3279a099a779308b90bd91d5 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!-- logger -->
<body class="frame">
<div id="body">
<h1><?% gettext("Read journal file: ") %?><?% param.logfile %?></h1>
<p><?% gettext("Size: ") %?><?% param.Size %?>&nbsp;
    <?% gettext("Last changed: ") %?><?% param.LastChanged %?></p>
    <?% trun = param.full ? 1000 : param.maxlet %?>
    <table summary=""  width="100%">
<?% fields = data.shift %?>
    <tr>
    <?% FOREACH field IN fields %?>
        <?% NEXT IF field.match('^__') %?>
        <th>
            <?% field %?>
        </th>
    <?% END %?>
    </tr>
    <?% FOREACH zeile IN data %?>
    <tr<?% ' class="two"' IF loop.count mod 2 == 0 %?>>
        <?% c = -1 %?>
        <?% FOREACH field IN zeile %?>
            <?% c = c + 1 %?>
            <?% NEXT IF fields.$c.match('^__') %?>
            <td>
                <?% IF field == zeile.last && trun < 100 %?>
                    <a id="" href="" title="<?% zeile.last.replace("  ", "&nbsp;&nbsp;") %?>">
                    <font color='<?% param.color(zeile) %?>'>
                    <?% chop(field,trun) %?>
                    </font>
                    </a>
                <?% ELSE %?>
                    <font color='<?% param.color(zeile) %?>'>
                    <?% chop(field,trun) %?>
                    </font>
                <?% END %?>
            </td>
        <?% END %?>
    </tr>
    <?% END %?>
    </table> 
</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
<?% IF allow('rp') %?>
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Report",20) %?></td></tr>
    <tr>
    <td class="sidetext">
      <a title="<?% gettext("Report") %?>" href="?cmd=rp"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Report") %?>" href="?cmd=rp"><?% gettext("Report",20) %?></a>
    </td>
    </tr>
    <tr>
        <td class="sidebottom"></td>
    </tr>
  </table>
<?% END %?>
<?% IF allow('lg') %?>
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Log files",20) %?></td></tr>
    <tr>
    <td class="sidetext">
      <a title="<?% gettext("Standard") %?>" href="?cmd=lg&data=main"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Standard") %?>" href="?cmd=lg&data=main"><?% gettext("Standard",20) %?></a><br />
      <a title="<?% gettext("Syslog") %?>" href="?cmd=lg&data=syslog"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Syslog") %?>" href="?cmd=lg&data=syslog"><?% gettext("Syslog",20) %?></a><br />
    </td>
    </tr>
    <tr>
        <td class="sidebottom"></td>
    </tr>
  </table>
<?% END %?>
  <p id="sidefooter">&nbsp;</p>
</div>
<?% INCLUDE header.inc %?>