librenms/html/pages/device/events.inc.php

14 lines
362 B
PHP
Raw Normal View History

<?php
$query = "SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `eventlog` WHERE `host` = '$_GET[id]' ORDER BY `datetime` DESC LIMIT 0,250";
$data = mysql_query($query);
echo('<table cellspacing="0" cellpadding="2" width="100%">');
while ($entry = mysql_fetch_array($data))
{
include("includes/print-event.inc.php");
}
echo('</table>');
?>