4 |
include('include/common-functions.php'); |
include('include/common-functions.php'); |
5 |
|
|
6 |
session_start(); |
session_start(); |
7 |
session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc'); |
//session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc'); |
8 |
|
$_SESSION['alx_sort_krit'] = $alx_sort_krit; |
9 |
|
$_SESSION['alx_sort_onfirst'] = $alx_sort_onfirst; |
10 |
|
$_SESSION['alx_sort_loc'] = $alx_sort_loc; |
11 |
|
|
12 |
$locations = sqlarr('SELECT location FROM client_locations', '', 'location'); |
$locations = sqlarr('SELECT location FROM client_locations', '', 'location'); |
13 |
$locations[] = ''; |
$locations[] = ''; |
117 |
|
|
118 |
echo '<table border="1" id="mytab">'; |
echo '<table border="1" id="mytab">'; |
119 |
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>'; |
120 |
|
//always enable showversion atm |
121 |
|
$showversion = "on"; |
122 |
if($showversion=='on') echo '<th colspan=2>version</th>'; |
if($showversion=='on') echo '<th colspan=2>version</th>'; |
123 |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
echo '<th width=150>up/down</th></tr></thead><tbody>'; |
124 |
|
|
138 |
else echo '<tr>'; |
else echo '<tr>'; |
139 |
|
|
140 |
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>'; |
141 |
echo '<td>'.substr($c['location'],0,1).'</td>'; |
echo '<td>'.substr($c['location'],0,3).'</td>'; |
142 |
echo '<td><img src="pics/'.$pic.'.gif" alt="'.strtoupper($pic).'"></td>'; |
echo '<td><img src="pics/'.$pic.'.gif" alt="'.strtoupper($pic).'"></td>'; |
143 |
echo '<td width=40><b>#'.$c['serial'].'</b></td>'; |
echo '<td width=40><b>#'.$c['serial'].'</b></td>'; |
144 |
echo '<td><nobr>'.$c['hostname'].'</nobr></td>'; |
echo '<td><nobr>'.$c['hostname'].'</nobr></td>'; |
165 |
//$alxutils = $alxinfo[1]; |
//$alxutils = $alxinfo[1]; |
166 |
} |
} |
167 |
} |
} |
168 |
if($alxver == '') $alxver='unkown'; |
if($alxver == '') $alxver='unknown'; |
169 |
if($alxutils == '') $alxutils='unkown'; |
if($alxutils == '') $alxutils='unknown'; |
170 |
|
|
171 |
echo '<td>'.$alxver.'</td>'; |
echo '<td>'.$alxver.'</td>'; |
172 |
echo '<td>'.$alxutils.'</td>'; |
echo '<td>'.$alxutils.'</td>'; |