2016-01-24 18:17:09 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$common_output[] = '
|
|
|
|
<div class="table-responsive">
|
2016-01-28 13:07:33 +01:00
|
|
|
<table id="stp-ports" class="table table-condensed table-hover">
|
2016-01-24 18:17:09 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th data-column-id="port">Port</th>
|
|
|
|
<th data-column-id="priority">Priority</th>
|
|
|
|
<th data-column-id="state">State</th>
|
|
|
|
<th data-column-id="enable">Enable</th>
|
|
|
|
<th data-column-id="pathCost">Path cost</th>
|
|
|
|
<th data-column-id="designatedRoot">Designated root</th>
|
|
|
|
<th data-column-id="designatedCost">Designated cost</th>
|
|
|
|
<th data-column-id="designatedBridge">Designated bridge</th>
|
|
|
|
<th data-column-id="designatedPort">Designated port</th>
|
2016-01-28 13:07:33 +01:00
|
|
|
<th data-column-id="forwardTransitions">Forward transitions</th>
|
2016-01-24 18:17:09 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2016-01-28 13:07:33 +01:00
|
|
|
</table>
|
2016-01-24 18:17:09 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
var grid = $("#stp-ports").bootgrid( {
|
|
|
|
ajax: true,
|
2016-01-28 13:07:33 +01:00
|
|
|
templates: {search: ""},
|
2016-01-24 18:17:09 +01:00
|
|
|
post: function ()
|
|
|
|
{
|
|
|
|
return {
|
2016-01-26 01:40:08 +00:00
|
|
|
id: "stp-ports",
|
|
|
|
device_id: ' . $device['device_id'] . ',
|
2016-01-24 18:17:09 +01:00
|
|
|
};
|
|
|
|
},
|
|
|
|
url: "ajax_table.php"
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
';
|