mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
14 lines
536 B
PHP
14 lines
536 B
PHP
<?php
|
|
|
|
$entries = dbFetchRows("SELECT *,DATE_FORMAT(datetime, '" . \LibreNMS\Config::get('dateformat.mysql.compact') . "') as humandate FROM `eventlog` WHERE `device_id` = ? AND `type` = 'interface' AND `reference` = '" . $port['port_id'] . "' ORDER BY `datetime` DESC LIMIT 0,250", [$device['device_id']]);
|
|
echo '<table class="table table-condensed">';
|
|
echo '<th>Timestamp</th><th>Port</th><th>Event</th>';
|
|
|
|
foreach ($entries as $entry) {
|
|
include 'includes/html/print-event.inc.php';
|
|
}
|
|
|
|
echo '</table>';
|
|
|
|
$pagetitle[] = 'Events';
|