Magellan Linux

Diff of /alx-src/branches/alx-web-070/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8527 by niro, Mon Feb 8 10:03:43 2016 UTC revision 8553 by niro, Mon Feb 8 14:05:46 2016 UTC
# Line 90  if($reload!='off') echo '<body onload="w Line 90  if($reload!='off') echo '<body onload="w
90    
91  echo '<form action="index.php" method="get" style="margin:0px">';  echo '<form action="index.php" method="get" style="margin:0px">';
92  echo '<table width=480><tr>';  echo '<table width=480><tr>';
93  echo '<td><img src="pics/logo.jpg"></td>';  // print version info
94    $version = file_get_contents('.VERSION', FILE_USE_INCLUDE_PATH);
95    echo '<td><img src="pics/logo.jpg"><font size="1">v'.$version.'</font></td>';
96  echo '<td align=right valign=top><a href="index.php" style="color:#000000;text-decoration:none; font-weight:bold">[REFRESH]</a></td>';  echo '<td align=right valign=top><a href="index.php" style="color:#000000;text-decoration:none; font-weight:bold">[REFRESH]</a></td>';
97  echo '</tr><tr>';  echo '</tr><tr>';
98  echo '<td valign=top><b>SORT BY</b> <input onclick="this.form.submit()" type="radio" name="s_krit" value="serial"'.checkif($_SESSION['alx_sort_krit']=='serial').'>serial <input onclick="this.form.submit()" type="radio" name="s_krit" value="hostname"'.checkif($_SESSION['alx_sort_krit']=='hostname').'>hostname<br>';  echo '<td valign=top><b>SORT BY</b> <input onclick="this.form.submit()" type="radio" name="s_krit" value="serial"'.checkif($_SESSION['alx_sort_krit']=='serial').'>serial <input onclick="this.form.submit()" type="radio" name="s_krit" value="hostname"'.checkif($_SESSION['alx_sort_krit']=='hostname').'>hostname<br>';
# Line 139  foreach($comps as $c) Line 141  foreach($comps as $c)
141   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>'; }
142   else echo '<td></td>';   else echo '<td></td>';
143    
144   if($showversion=='on')   // get alx version info for
145   {   $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']);
146   // get alx version info for   $alxver = $alxinfo[os];
147   $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']);   $alxutils = $alxinfo[utils];
  $alxver = $alxinfo[os];  
  $alxutils = $alxinfo[utils];  
148    
149   if($alxver == '') $alxver='unknown';   if($alxver == '') $alxver='unknown';
150   if($alxutils == '') $alxutils='unknown';   if($alxutils == '') $alxutils='unknown';
151    
152   echo '<td>'.$alxver.'</td>';   echo '<td>'.$alxver.'</td>';
153   echo '<td>'.$alxutils.'</td>';   echo '<td>'.$alxutils.'</td>';
  }  
154    
155   //netboot state   // netboot state
156   if($c['netboot'] == 1) echo '<td>Netboot (PXE)</td>';   if($c['netboot'] == 1) echo '<td>Netboot (PXE)</td>';
157   else echo '<td>Local Disk</td>';   else echo '<td>Local Disk</td>';
158    

Legend:
Removed from v.8527  
changed lines
  Added in v.8553