109 |
|
|
110 |
echo '<table border="1" id="mytab">'; |
echo '<table border="1" id="mytab">'; |
111 |
echo '<thead><tr style="font-weight:bold;background-color:#d5e5ff"><th>edit</th><th colspan=3>serial</th><th width=170>hostname</th><th width=100>ip</th><th width=100>mac</th><th width=100>last connected</th>'; |
echo '<thead><tr style="font-weight:bold;background-color:#d5e5ff"><th>edit</th><th colspan=3>serial</th><th width=170>hostname</th><th width=100>ip</th><th width=100>mac</th><th width=100>last connected</th>'; |
112 |
//always enable showversion atm |
echo '<th colspan=2>version</th>'; |
|
$showversion = "on"; |
|
|
if($showversion=='on') echo '<th colspan=2>version</th>'; |
|
113 |
echo '<th width=100>boot</th>'; |
echo '<th width=100>boot</th>'; |
114 |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
115 |
|
|
139 |
if($c['mtime']) { echo '<td><nobr>'.date('Y-m-d, H:i:s',$c['mtime']).'</nobr></td>'; } |
if($c['mtime']) { echo '<td><nobr>'.date('Y-m-d, H:i:s',$c['mtime']).'</nobr></td>'; } |
140 |
else echo '<td></td>'; |
else echo '<td></td>'; |
141 |
|
|
142 |
if($showversion=='on') |
// get alx version info for |
143 |
{ |
$alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']); |
144 |
// get alx version info for |
$alxver = $alxinfo[os]; |
145 |
$alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']); |
$alxutils = $alxinfo[utils]; |
|
$alxver = $alxinfo[os]; |
|
|
$alxutils = $alxinfo[utils]; |
|
146 |
|
|
147 |
if($alxver == '') $alxver='unknown'; |
if($alxver == '') $alxver='unknown'; |
148 |
if($alxutils == '') $alxutils='unknown'; |
if($alxutils == '') $alxutils='unknown'; |
149 |
|
|
150 |
echo '<td>'.$alxver.'</td>'; |
echo '<td>'.$alxver.'</td>'; |
151 |
echo '<td>'.$alxutils.'</td>'; |
echo '<td>'.$alxutils.'</td>'; |
|
} |
|
152 |
|
|
153 |
//netboot state |
// netboot state |
154 |
if($c['netboot'] == 1) echo '<td>Netboot (PXE)</td>'; |
if($c['netboot'] == 1) echo '<td>Netboot (PXE)</td>'; |
155 |
else echo '<td>Local Disk</td>'; |
else echo '<td>Local Disk</td>'; |
156 |
|
|