Projet

Général

Profil

« Précédent | Suivant » 

Révision c7fa58ac

Ajouté par Jean Cyr il y a plus de 9 ans

Fix up NTP status page formatting

Number of columns is not the same for all table rows

Voir les différences:

usr/local/www/status_ntpd.php
248 248
			<td class="listlr" align="center"><?php echo sprintf("%.5f", $gps_lat); ?> (<?php echo sprintf("%d", $gps_lat_deg); ?>&deg; <?php echo sprintf("%.5f", $gps_lat_min*60); ?><?php echo $gps_vars[4]; ?>)</td>
249 249
			<td class="listlr" align="center"><?php echo sprintf("%.5f", $gps_lon); ?> (<?php echo sprintf("%d", $gps_lon_deg); ?>&deg; <?php echo sprintf("%.5f", $gps_lon_min*60); ?><?php echo $gps_vars[6]; ?>)</td>
250 250
			<?php if (isset($gps_alt)) { echo '<td class="listlr" align="center">' . $gps_alt . ' ' . $gps_alt_unit . '</td>';}?>
251
			<td class="listr" align="center">
252 251
			<?php 
253
			if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);}
254
			if (isset($gps_sat) && isset($gps_satview)) {echo ', ';}
255
			if (isset($gps_sat)) {echo 'in use ' . $gps_sat;} 
252
			if (isset($gps_sat) || isset($gps_satview)) {
253
				echo '<td class="listr" align="center">';
254
				if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);}
255
				if (isset($gps_sat) && isset($gps_satview)) {echo ', ';}
256
				if (isset($gps_sat)) {echo 'in use ' . $gps_sat;}
257
				echo '</td>';
258
			}
256 259
			?>
257
			</td>
258 260
		</tr>
259 261
		<tr>
260 262
			<td class="listlr" colspan="<?php echo $gps_goo_lnk; ?>" align="center"><a target="_gmaps" href="http://maps.google.com/?q=<?php echo $gps_lat; ?>,<?php echo $gps_lon; ?>">Google Maps Link</a></td>

Formats disponibles : Unified diff