2015-08-01 15:36:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$common_output[] = '
|
2015-08-31 21:33:57 +00:00
|
|
|
<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>
|
2015-08-01 15:36:15 +00:00
|
|
|
<script>
|
|
|
|
|
2015-08-08 09:43:28 +00:00
|
|
|
var eventlog_grid = $("#eventlog").bootgrid({
|
2015-08-01 15:36:15 +00:00
|
|
|
ajax: true,
|
|
|
|
post: function ()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
id: "eventlog",
|
2015-08-05 20:05:45 +00:00
|
|
|
device: "' .mres($vars['device']) .'",
|
|
|
|
type: "' .mres($vars['type']) .'",
|
2015-08-01 15:36:15 +00:00
|
|
|
};
|
|
|
|
},
|
2015-08-11 14:54:05 -07:00
|
|
|
url: "ajax_table.php"
|
2015-08-01 15:36:15 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
';
|