summaryrefslogtreecommitdiff
path: root/skins/stone/logger.tmpl
blob: 81c8bcc7d7124f06ae155d309587f0061845f2cb (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
77
78
79
80
81
82
83
84
<!-- 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 : 150 %?>
    <table class="largetable" summary="">
        <tr><td class="largehead"></td></tr>
            <tr>
                <td class="largetext" align="left">
                <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("\n","<br />").replace("\"", "").replace("\'", "").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>
                </td>
            </tr>
        <tr><td class="largebottom"></td></tr>
    </table> 
</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
<?% IF allow('report') %?>
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Report",20) %?></td></tr>
    <tr>
    <td class="sidetext">
      <a title="<?% gettext("Report") %?>" href="?cmd=report"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Report") %?>" href="?cmd=report"><?% gettext("Report",20) %?></a>
    </td>
    </tr>
    <tr>
        <td class="sidebottom"></td>
    </tr>
  </table>
<?% END %?>
<?% IF allow('logger') %?>
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Log files",20) %?></td></tr>
    <tr>
    <td class="sidetext">
      <a title="<?% gettext("Standard") %?>" href="?cmd=logger&data=main"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Standard") %?>" href="?cmd=logger&data=main"><?% gettext("Standard",20) %?></a><br />
      <a title="<?% gettext("Syslog") %?>" href="?cmd=logger&data=syslog"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
      <a title="<?% gettext("Syslog") %?>" href="?cmd=logger&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 %?>