+ ');
+ echo('
+ Client |
+ Signal |
+ Noise |
+ Speed |
+
');
+ foreach ($clients as $client)
+ {
+ if ($client['active'] == 'y')
+ {
+ $active = 'class="clientconnected"';
+ }
+ else
+ {
+ unset($active);
+ }
+
+ $client_details = dbFetchRows("SELECT hostname FROM mac_ip_host WHERE mac='".$client['client_mac']."'");
+
+ if (empty($client_details))
+ {
+ $client_id = $client['client_mac'];
+ }
+ else
+ {
+ $client_id = $client_details[0]['hostname'];
+ }
+
+ $url = generate_url(array('page' => 'wifi_client',
+ 'client' => $client['client_mac']));
+ echo('
+ '.$client_id.' |
+ '.$client['signal_db'].' |
+ '.$client['noise_db'].' |
+ '.$client['speed'].' |
+
');
+ }
+ echo('');
+ }
+ echo("