1<?php 2 3/** 4 * Observium 5 * 6 * This file is part of Observium. 7 * 8 * @package observium 9 * @subpackage webui 10 * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited 11 * 12 */ 13 14if ($device['type'] == 'wireless') 15{ 16 $radios = dbFetchRows("SELECT * FROM `wifi_accesspoints` LEFT JOIN `wifi_radios` ON `wifi_accesspoints`.`wifi_accesspoint_id` = `wifi_radios`.`radio_ap` WHERE `wifi_accesspoints`.`device_id` = ? ", array($device['device_id'])); 17 18 foreach ($radios as $radio) 19 { 20 if (!in_array($radio['location'],$locations)) $locations[] = $radio['location']; 21 if (!in_array($radio['model'],$models)) $models[] = $radio['model']; 22 if (!in_array($radio['wifi_accesspoint_id'],$aps_ids)) $aps_ids[] = $radio['wifi_accesspoint_id']; 23 } 24 25 echo generate_box_open(); 26 echo('<table class="table table-striped table-condensed ">'); 27 echo('<tr><td style="width: 350px;">'); 28 echo("<span>" . count($aps_ids) . " APs</span><br /><span>" . count($radios) . " radios</span><br />"); 29 echo('</td><td><span>Models: ' . implode(", ",$models) .'</span><br /><span>Sites: ' . implode(", ",$locations) . '</span></td>'); 30 // echo('<td><span>'. $radios[0]['serial'] ." </span></br><span>" . $radios[0]['fingerprint']. "</span></td></tr>"); 31 echo("</table>"); 32 echo generate_box_close(); 33} 34 35// EOF 36