2015-12-02 01:13:31 +00:00

33 lines
1.2 KiB
PHP

<div class="table-responsive">
<table id="sensors" class="table table-hover table-condensed storage">
<thead>
<tr>
<th data-column-id="hostname">Device</th>
<th data-column-id="sensor_descr">Sensor</th>
<th data-column-id="graph" data-sortable="false" data-searchable="false"></th>
<th data-column-id="alert" data-sortable="false" data-searchable="false"></th>
<th data-column-id="sensor_current">Current</th>
<th data-column-id="sensor_range" data-sortable="false" data-searchable="false">Range limit</th>
</tr>
</thead>
</table>
</div>
<script>
var grid = $("#sensors").bootgrid({
ajax: true,
rowCount: [25,50,100,250,-1],
post: function ()
{
return {
id: 'sensors',
view: '<?php echo $vars['view']; ?>',
graph_type: '<?php echo $graph_type; ?>',
unit: '<?php echo $unit; ?>',
class: '<?php echo $class; ?>',
};
},
url: "ajax_table.php"
});
</script>