33 lines
782 B
PHP

<?php
$common_output[] = '
<div class="table-responsive">
<table id="eventlog" class="table table-hover table-condensed table-striped">
<thead>
<tr>
<th data-column-id="datetime" data-order="desc">Datetime</th>
<th data-column-id="hostname">Hostname</th>
<th data-column-id="type">Type</th>
<th data-column-id="message">Message</th>
</tr>
</thead>
</table>
</div>
<script>
var eventlog_grid = $("#eventlog").bootgrid({
ajax: true,
post: function ()
{
return {
id: "eventlog",
device: "' .mres($vars['device']) .'",
type: "' .mres($vars['type']) .'",
};
},
url: "ajax_table.php"
});
</script>
';