Files
librenms-librenms/includes/html/pages/device/ports/fdb.inc.php
Tony Murray e9ae08d5db Use Laravel url helpers to improve functionality without dns name (#10227)
* Use Laravel url helpers to improve functionality without dns name
Not exhaustive...

* Fix Url generated urls

* Bump js version
2019-05-20 11:47:34 -05:00

34 lines
1.1 KiB
PHP

<?php
$no_refresh = true;
?>
<table id="ports-fdb" class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th data-column-id="mac_address" data-width="150px">MAC Address</th>
<th data-column-id="ipv4_address" data-sortable="false">IPv4 Address</th>
<th data-column-id="interface">Port</th>
<th data-column-id="description">Description</th>
<th data-column-id="vlan" data-width="60px">Vlan</th>
<th data-column-id="dnsname" data-sortable="false" data-visible="false">DNS Name</th>
<th data-column-id="first_seen" data-width="165px">First seen</th>
<th data-column-id="last_seen" data-width="165px">Last seen</th>
</tr>
</thead>
</table>
<script>
var grid = $("#ports-fdb").bootgrid({
ajax: true,
post: function ()
{
return {
device_id: "<?php echo $device['device_id']; ?>",
dns: $("#ports-fdb").bootgrid("getColumnSettings")[5].visible
};
},
url: "<?php echo url('/ajax/table/fdb-tables') ?>"
});
</script>