Files

21 lines
853 B
PHP
Raw Permalink Normal View History

2014-02-26 22:33:45 +00:00
<?php
2015-07-13 20:10:26 +02:00
echo ' <div class="row">
2014-02-26 22:33:45 +00:00
<div class="col-md-12">
<div class="panel panel-default panel-condensed">
2015-07-13 20:10:26 +02:00
<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>';
2015-07-13 20:10:26 +02:00
echo ' </div>
<table class="table table-hover table-condensed table-striped">';
2014-02-26 22:33:45 +00:00
2019-06-23 00:29:12 -05:00
$eventlog = dbFetchRows("SELECT *,DATE_FORMAT(datetime, '" . \LibreNMS\Config::get('dateformat.mysql.compact') . "') as humandate FROM `eventlog` WHERE `device_id` = ? ORDER BY `datetime` DESC LIMIT 0,10", [$device['device_id']]);
2015-07-13 20:10:26 +02:00
foreach ($eventlog as $entry) {
2019-04-11 23:26:42 -05:00
include 'includes/html/print-event-short.inc.php';
2014-02-26 22:33:45 +00:00
}
2015-07-13 20:10:26 +02:00
echo '</table>';
echo '</div>';
echo '</div>';
echo '</div>';