Observium_CE/html/pages/device/accesspoints.inc.php

40 lines
887 B
PHP

<?php
/**
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage webui
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$i = "1";
$aps = dbFetchRows("SELECT * FROM `accesspoints` LEFT JOIN `accesspoints-state` USING (`accesspoint_id`) WHERE `device_id` = ? AND `deleted` = '0' ORDER BY `name`,`radio_number` ASC", [$device['device_id']]);
if (count($aps)) {
echo generate_box_open();
echo('<table class="table table-striped table-hover">');
foreach ($aps as $ap) {
include($config['html_dir'] . '/includes/print-accesspoint.inc.php');
$i++;
}
echo('</table>');
echo generate_box_close();
} else {
print_message('No access points found.', 'warning');
}
// EOF