1<?php 2 3echo "<div style='margin: 0px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>"; 4 5$i = '1'; 6 7if ($vars['ap'] > 0) { //We have a selected AP 8 $aps = dbFetchRows("SELECT * FROM `access_points` WHERE `device_id` = ? AND `accesspoint_id` = ? AND `deleted` = '0' ORDER BY `name`,`radio_number` ASC", [$device['device_id'], $vars['ap']]); 9} else { 10 $aps = dbFetchRows("SELECT * FROM `access_points` WHERE `device_id` = ? AND `deleted` = '0' ORDER BY `name`,`radio_number` ASC", [$device['device_id']]); 11} 12echo "<div style='margin: 0px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>"; 13foreach ($aps as $ap) { 14 include 'includes/html/print-accesspoint.inc.php'; 15 $i++; 16} 17 18echo '</table></div>'; 19 20echo '</div>'; 21