Switch device and port ARP tables to ajax

Allow sorting, filtering and paging of device and port ARP tables.
This commit is contained in:
Tony Murray
2015-12-24 10:58:12 -06:00
parent 1ea0e4f710
commit fe86b998bf
3 changed files with 56 additions and 91 deletions

View File

@@ -26,6 +26,11 @@ if (is_numeric($_POST['device_id'])) {
$param[] = $_POST['device_id'];
}
if (is_numeric($_POST['port_id'])) {
$sql .= ' AND P.port_id = ?';
$param[] = $_POST['port_id'];
}
$count_sql = "SELECT COUNT(`M`.`port_id`) $sql";
$total = dbFetchCell($count_sql, $param);