2006-11-06 17:05:00 +01:00
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
2007-01-27 02:12:18 +01:00
|
|
|
<?cs call:show_plugin_title() ?>
|
2006-12-13 11:01:58 +01:00
|
|
|
<?cs call:handle_messages() ?>
|
|
|
|
|
|
|
|
<?cs call:show_help(Lang.Plugins.logs.Help.EventLog) ?>
|
|
|
|
|
2006-12-11 15:16:10 +01:00
|
|
|
<table border="0" align="center"><tr>
|
|
|
|
<td><?cs call:print_form_header("log-all", "logs") ?>
|
2006-12-07 13:20:43 +01:00
|
|
|
<button type="submit" value="refresh"><?cs
|
2006-12-11 15:16:10 +01:00
|
|
|
var:html_escape(Lang.Plugins.logs.Text.ShowAll) ?></button>
|
|
|
|
</form></td>
|
|
|
|
<td><?cs call:print_form_header("log-warnings", "logs") ?>
|
|
|
|
<input type="hidden" name="level" value="WARNING" />
|
|
|
|
<button type="submit" value="refresh"><?cs
|
|
|
|
var:html_escape(Lang.Plugins.logs.Text.AtLeastWarnings) ?></button>
|
|
|
|
</form></td>
|
|
|
|
<td><?cs call:print_form_header("log-only-error", "logs") ?>
|
|
|
|
<input type="hidden" name="level" value="ERROR" />
|
|
|
|
<button type="submit" value="refresh"><?cs
|
|
|
|
var:html_escape(Lang.Plugins.logs.Text.OnlyErrors) ?></button>
|
|
|
|
</form></td>
|
|
|
|
</tr></table>
|
2006-12-07 13:20:43 +01:00
|
|
|
|
2006-11-15 12:46:32 +01:00
|
|
|
<div id="log">
|
2006-11-06 17:05:00 +01:00
|
|
|
|
2006-12-12 14:34:05 +01:00
|
|
|
<?cs if:Data.Plugins.logs.Destination != "file" ?>
|
|
|
|
<?cs call:hint("Plugins.logs.NoLogFileConfigured") ?>
|
|
|
|
<?cs elif:subcount(Data.Plugins.logs.Content) > 0 ?>
|
2006-12-11 15:16:10 +01:00
|
|
|
<table class="log"><?cs # the first line dictates if we show meta info or not
|
|
|
|
?><?cs if:Data.Plugins.logs.Content.0.Level ?>
|
|
|
|
<tr><th></th>
|
|
|
|
<th><?cs var:html_escape(Lang.Plugins.logs.Text.AgeOfEvent) ?></th>
|
|
|
|
<th><?cs var:html_escape(Lang.Plugins.logs.Text.EventText) ?></th>
|
|
|
|
</tr>
|
|
|
|
<?cs loop:index = #0, subcount(Data.Plugins.logs.Content)-1, #1 ?><?cs
|
|
|
|
with:x=Data.Plugins.logs.Content[index] ?><?cs
|
|
|
|
if:x.Text ?><?cs
|
|
|
|
if:x.Level == "ERROR" ?><?cs
|
|
|
|
set:meta_file="dialog-error_tango.gif" ?><?cs
|
|
|
|
elif:x.Level == "WARNING" ?><?cs
|
|
|
|
set:meta_file="dialog-warning_tango.gif" ?><?cs
|
|
|
|
else ?><?cs
|
|
|
|
set:meta_file="dialog-information_tango.gif" ?><?cs
|
|
|
|
/if ?>
|
|
|
|
<tr><td class="level"><img src="<?cs
|
|
|
|
call:link("cryptobox-misc/" + meta_file, "", "", "", "") ?>"
|
|
|
|
alt="symbol: <?cs var:html_escape(x.Level) ?>" /></td>
|
|
|
|
<td class="time"><?cs if:x.TimeDiff.Value ?><?cs
|
|
|
|
var:html_escape(x.TimeDiff.Value) ?> <?cs
|
|
|
|
var:html_escape(Lang.Plugins.logs.Text.TimeUnits[
|
|
|
|
x.TimeDiff.Unit]) ?><?cs
|
|
|
|
/if ?></td>
|
|
|
|
<td class="text"><?cs var:html_escape(x.Text) ?></td></tr><?cs
|
|
|
|
/if ?><?cs /with ?><?cs /loop ?><?cs
|
|
|
|
else ?><?cs
|
|
|
|
loop:index = #0, subcount(Data.Plugins.logs.Content)-1, #1 ?><?cs
|
|
|
|
with:x=Data.Plugins.logs.Content[index] ?>
|
|
|
|
<tr><td><?cs var:html_escape(x.Text) ?></td></tr><?cs
|
|
|
|
/with ?><?cs /loop ?><?cs
|
|
|
|
/if ?>
|
|
|
|
</table>
|
2006-11-06 17:05:00 +01:00
|
|
|
<?cs else ?>
|
2006-12-11 15:16:10 +01:00
|
|
|
<?cs call:hint("Plugins.logs.EmptyLog") ?>
|
2006-11-06 17:05:00 +01:00
|
|
|
<?cs /if ?>
|
|
|
|
|
|
|
|
</div>
|
2006-12-12 14:34:05 +01:00
|
|
|
|