2014-02-26 22:33:45 +00:00
< ? php
2015-07-13 20:10:26 +02:00
echo '<div class="container-fluid">' ;
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/">' ;
2015-10-08 19:38:34 +02:00
echo " <img src='images/16/report.png'> <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
2015-05-22 13:38:52 +01:00
$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' ]));
2015-07-13 20:10:26 +02:00
foreach ( $eventlog as $entry ) {
include 'includes/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>' ;
echo '</div>' ;