2015-08-01 15:36:15 +00:00
|
|
|
<?php
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-21 18:04:12 +02:00
|
|
|
$common_output[] = '
|
2015-08-31 21:33:57 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table id="syslog" class="table table-hover table-condensed table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th data-column-id="timestamp" data-order="desc">Datetime</th>
|
|
|
|
<th data-column-id="device_id">Hostname</th>
|
|
|
|
<th data-column-id="program">Program</th>
|
|
|
|
<th data-column-id="msg">Message</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-08-18 18:52:57 +02:00
|
|
|
<script>
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-21 18:04:12 +02:00
|
|
|
var syslog_grid = $("#syslog").bootgrid({
|
2015-08-18 18:52:57 +02:00
|
|
|
ajax: true,
|
|
|
|
post: function ()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
id: "syslog",
|
2015-08-20 11:31:00 +02:00
|
|
|
device: "' .mres($vars['device']) .'",
|
2015-08-18 18:52:57 +02:00
|
|
|
};
|
|
|
|
},
|
|
|
|
url: "ajax_table.php"
|
|
|
|
});
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-18 18:52:57 +02:00
|
|
|
</script>
|
2015-08-20 11:31:00 +02:00
|
|
|
';
|