diff options
author | Jean Cyr <jcyr@dillobits.com> | 2014-09-28 23:35:10 -0400 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2014-09-28 23:35:10 -0400 |
commit | c7fa58acbb66d1236562031c4752698d07b56def (patch) | |
tree | 5f384448fb391cc1e0923dd66e0a50515cf67f32 | |
parent | e7b03bc1f4fdec9721fe0cd2373576657ef7dff1 (diff) | |
download | pfsense-c7fa58acbb66d1236562031c4752698d07b56def.zip pfsense-c7fa58acbb66d1236562031c4752698d07b56def.tar.gz |
Fix up NTP status page formatting
Number of columns is not the same for all table rows
-rw-r--r-- | usr/local/www/status_ntpd.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/status_ntpd.php b/usr/local/www/status_ntpd.php index c3e850f..1bda7a4 100644 --- a/usr/local/www/status_ntpd.php +++ b/usr/local/www/status_ntpd.php @@ -248,13 +248,15 @@ include("head.inc"); <td class="listlr" align="center"><?php echo sprintf("%.5f", $gps_lat); ?> (<?php echo sprintf("%d", $gps_lat_deg); ?>° <?php echo sprintf("%.5f", $gps_lat_min*60); ?><?php echo $gps_vars[4]; ?>)</td> <td class="listlr" align="center"><?php echo sprintf("%.5f", $gps_lon); ?> (<?php echo sprintf("%d", $gps_lon_deg); ?>° <?php echo sprintf("%.5f", $gps_lon_min*60); ?><?php echo $gps_vars[6]; ?>)</td> <?php if (isset($gps_alt)) { echo '<td class="listlr" align="center">' . $gps_alt . ' ' . $gps_alt_unit . '</td>';}?> - <td class="listr" align="center"> <?php - if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);} - if (isset($gps_sat) && isset($gps_satview)) {echo ', ';} - if (isset($gps_sat)) {echo 'in use ' . $gps_sat;} + if (isset($gps_sat) || isset($gps_satview)) { + echo '<td class="listr" align="center">'; + if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);} + if (isset($gps_sat) && isset($gps_satview)) {echo ', ';} + if (isset($gps_sat)) {echo 'in use ' . $gps_sat;} + echo '</td>'; + } ?> - </td> </tr> <tr> <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> |