--- alx-src/branches/alx-web-070/index.php 2015/09/11 15:25:31 7123 +++ alx-src/branches/alx-web-070/index.php 2015/12/16 15:26:57 8006 @@ -9,7 +9,7 @@ $_SESSION['alx_sort_onfirst'] = $alx_sort_onfirst; $_SESSION['alx_sort_loc'] = $alx_sort_loc; -$locations = sqlarr('SELECT location FROM client_locations', '', 'location'); +$locations = sqlarr('SELECT location FROM client_locations where enabled="1"', '', 'location'); $locations[] = ''; if($_SESSION['alx_sort_krit']==null) @@ -73,9 +73,9 @@ else return ''; } -$comps = sqlarr("select client_serials.serial, client_serials.location, client_serials.mac, cfg_network.hostname, state_connected.mtime from client_serials left join cfg_network on client_serials.serial=cfg_network.serial left join state_connected on client_serials.serial=state_connected.serial", "serial"); +$comps = sqlarr("select client_serials.serial, client_serials.location, client_serials.mac, cfg_network.hostname, state_connected.mtime, state_connected.netboot from client_serials left join cfg_network on client_serials.serial=cfg_network.serial left join state_connected on client_serials.serial=state_connected.serial", "serial"); -sqlforeach('SELECT serial, ip, hostname, mac FROM state_connected', 'check_online', null); +sqlforeach('SELECT state_connected.serial, state_connected.ip, cfg_network.hostname, state_connected.mac FROM state_connected left join cfg_network on cfg_network.serial=state_connected.serial', 'check_online', null); usort($comps, 'sortcomp'); echo ''; @@ -119,10 +119,11 @@ echo ''; -echo ''; +echo ''; //always enable showversion atm $showversion = "on"; if($showversion=='on') echo ''; +echo ''; echo ''; foreach($comps as $c) @@ -147,6 +148,7 @@ echo ''; echo ''; + echo ''; if($c['mtime']) { echo ''; } //if($c['mtime']) { echo ''; } else echo ''; @@ -175,6 +177,10 @@ echo ''; } + //netboot state + if($c['netboot'] == 1) echo ''; + else echo ''; + echo '
editserialhostnameiplast connected
editserialhostnameipmaclast connectedversionbootup/down
'.$c['hostname'].''.$c['ip'].''.$c['mac'].''.date('Y-m-d, H:i:s',$c['mtime']).''.$c['mtime'].''.$alxutils.'Netboot (PXE)Local Disk'; if($c['online']) {