114 |
|
|
115 |
echo '<table border="1" id="mytab">'; |
echo '<table border="1" id="mytab">'; |
116 |
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>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>last connected</th>'; |
117 |
|
//always enable showversion atm |
118 |
|
$showversion = "on"; |
119 |
if($showversion=='on') echo '<th colspan=2>version</th>'; |
if($showversion=='on') echo '<th colspan=2>version</th>'; |
120 |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
121 |
|
|
135 |
else echo '<tr>'; |
else echo '<tr>'; |
136 |
|
|
137 |
echo '<td><input type=button value="EDIT" onclick="location.href=\'show.php?id='.$c['serial'].'\'"></td>'; |
echo '<td><input type=button value="EDIT" onclick="location.href=\'show.php?id='.$c['serial'].'\'"></td>'; |
138 |
echo '<td>'.substr($c['location'],0,1).'</td>'; |
echo '<td>'.substr($c['location'],0,3).'</td>'; |
139 |
echo '<td><img src="pics/'.$pic.'.gif" alt="'.strtoupper($pic).'"></td>'; |
echo '<td><img src="pics/'.$pic.'.gif" alt="'.strtoupper($pic).'"></td>'; |
140 |
echo '<td width=40><b>#'.$c['serial'].'</b></td>'; |
echo '<td width=40><b>#'.$c['serial'].'</b></td>'; |
141 |
echo '<td><nobr>'.$c['hostname'].'</nobr></td>'; |
echo '<td><nobr>'.$c['hostname'].'</nobr></td>'; |
162 |
//$alxutils = $alxinfo[1]; |
//$alxutils = $alxinfo[1]; |
163 |
} |
} |
164 |
} |
} |
165 |
if($alxver == '') $alxver='unkown'; |
if($alxver == '') $alxver='unknown'; |
166 |
if($alxutils == '') $alxutils='unkown'; |
if($alxutils == '') $alxutils='unknown'; |
167 |
|
|
168 |
echo '<td>'.$alxver.'</td>'; |
echo '<td>'.$alxver.'</td>'; |
169 |
echo '<td>'.$alxutils.'</td>'; |
echo '<td>'.$alxutils.'</td>'; |