This commit is contained in:
Ad Schellevis 2016-06-29 20:22:27 +02:00
parent 40ca0a8a3a
commit 365afd1b2d

View File

@ -64,7 +64,6 @@ if (isset($_POST['filtertext'])) {
}
include("head.inc");
?>
<body>
@ -83,39 +82,43 @@ include("head.inc");
</p>
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr>
<td class="col-md-2 col-sm-3 col-xs-4"><?= gettext('Date') ?></td>
<td class="col-md-10 col-sm-9 col-xs-8"><?= gettext('Message') ?></td>
</tr>
<?php if (isset($logpills)): ?>
<tr>
<td colspan="2">
<ul class="nav nav-pills" role="tablist">
<?php foreach ($logpills as $pill): ?>
<li role="presentation" <?php if (str_replace('amp;','', $pill[2]) == $_SERVER['REQUEST_URI']):?>class="active"<?php endif; ?>><a href="<?=$pill[2];?>"><?=$pill[0];?></a></li>
<?php endforeach; ?>
</ul>
</td>
</tr>
<?php endif; ?>
<?php
if ($logclog) {
dump_clog($logfile, $nentries, $filtertext);
} else {
dump_log($logfile, $nentries, $filtertext);
}
?>
<tr>
<td colspan="2">
<form method="post">
<?php if (isset($mode)): ?>
<table class="table table-striped">
<thead>
<tr>
<th class="col-md-2 col-sm-3 col-xs-4"><?= gettext('Date') ?></th>
<th class="col-md-10 col-sm-9 col-xs-8"><?= gettext('Message') ?></th>
</tr>
</thead>
<tbody>
<?php if (isset($logpills)): ?>
<tr>
<td colspan="2">
<ul class="nav nav-pills" role="tablist">
<?php foreach ($logpills as $pill): ?>
<li role="presentation" <?php if (str_replace('amp;','', $pill[2]) == $_SERVER['REQUEST_URI']):?>class="active"<?php endif; ?>><a href="<?=$pill[2];?>"><?=$pill[0];?></a></li>
<?php endforeach; ?>
</ul>
</td>
</tr>
<?php endif; ?>
<?php
if ($logclog) {
dump_clog($logfile, $nentries, $filtertext);
} else {
dump_log($logfile, $nentries, $filtertext);
}
?>
<tr>
<td colspan="2">
<form method="post">
<?php if (isset($mode)): ?>
<input type="hidden" name="mode" id="mode" value="<?= html_safe($mode) ?>"/>
<?php endif ?>
<input name="clear" type="submit" class="btn btn-primary" value="<?= html_safe(gettext('Clear log')) ?>"/>
</form>
</td>
</tr>
<?php endif; ?>
<input name="clear" type="submit" class="btn btn-primary" value="<?= html_safe(gettext('Clear log')) ?>"/>
</form>
</td>
</tr>
</tbody>
</table>
</div>
</div>