Files
Tony Murray ef41c9fd7d Refactor FDB Tables to Laravel (#9669)
* Refactor FDB Tables to Laravel
Hopefully much better performance with large tables.
Better dns resolution (limit to 4 IPs tried per MAC)

* update style

* de-duplicate IPs

* fixed column width for mac and vlan

* Make DNS column visibility control whether or not we send the dns query.
Hide that column by default.
2019-01-20 08:43:36 -06:00

31 lines
856 B
PHP

<?php
$no_refresh = true;
?>
<table id="port-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="vlan" data-width="60px">Vlan</th>
<th data-column-id="dnsname" data-sortable="false" data-visible="false">DNS Name</th>
</tr>
</thead>
</table>
<script>
var grid = $("#port-fdb").bootgrid({
ajax: true,
post: function ()
{
return {
port_id: "<?php echo $port['port_id']; ?>",
dns: $("#port-fdb").bootgrid("getColumnSettings")[4].visible
};
},
url: "ajax/table/fdb-tables"
});
</script>