Files
Richard Mayhew 389cf5414c Made the 2 tool icons more appropriate in the menu bar (#5701)
* Made the 2 tool icons more appropiate in the menu bar

* updated eventlog and syslog icons so they are the same

* Try #2

* Changed syslog to fa-tag instead of fa-archive which is used for packages already

* Changed Syslog icon to fa-clone
2017-02-06 10:15:38 +00:00

23 lines
889 B
PHP

<?php
echo '<div class="container-fluid">';
echo ' <div class="row">
<div class="col-md-12">
<div class="panel panel-default panel-condensed">
<div class="panel-heading">';
echo '<a href="device/device='.$device['device_id'].'/tab=logs/section=eventlog/">';
echo '<i class="fa fa-bookmark fa-lg icon-theme" aria-hidden="true"></i> <strong>Recent Events</strong></a>';
echo ' </div>
<table class="table table-hover table-condensed table-striped">';
$eventlog = dbFetchRows("SELECT *,DATE_FORMAT(datetime, '".$config['dateformat']['mysql']['compact']."') as humandate FROM `eventlog` WHERE `host` = ? ORDER BY `datetime` DESC LIMIT 0,10", array($device['device_id']));
foreach ($eventlog as $entry) {
include 'includes/print-event-short.inc.php';
}
echo '</table>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';