Révision 64feeb74
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/status_ntpd.php | ||
---|---|---|
162 | 162 |
?> |
163 | 163 |
<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> |
164 | 164 |
<?php include("fbegin.inc"); ?> |
165 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
165 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status ntpd">
|
|
166 | 166 |
<tr><td><div id="mainarea"> |
167 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
167 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="heading">
|
|
168 | 168 |
<tr><td class="listtopic">Network Time Protocol Status</td></tr> |
169 | 169 |
</table> |
170 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
170 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
|
|
171 | 171 |
<thead> |
172 | 172 |
<tr> |
173 | 173 |
<th class="listhdrr"><?=gettext("Status"); ?></th> |
... | ... | |
195 | 195 |
<?php else: ?> |
196 | 196 |
<?php $i = 0; foreach ($ntpq_servers as $server): ?> |
197 | 197 |
<tr> |
198 |
<td class="listlr" nowrap>
|
|
198 |
<td class="listlr nowrap">
|
|
199 | 199 |
<?=$server['status'];?> |
200 | 200 |
</td> |
201 |
<td class="listlr">
|
|
201 |
<td class="listr"> |
|
202 | 202 |
<?=$server['server'];?> |
203 | 203 |
</td> |
204 |
<td class="listlr">
|
|
204 |
<td class="listr"> |
|
205 | 205 |
<?=$server['refid'];?> |
206 | 206 |
</td> |
207 |
<td class="listlr">
|
|
207 |
<td class="listr"> |
|
208 | 208 |
<?=$server['stratum'];?> |
209 | 209 |
</td> |
210 |
<td class="listlr">
|
|
210 |
<td class="listr"> |
|
211 | 211 |
<?=$server['type'];?> |
212 | 212 |
</td> |
213 |
<td class="listlr">
|
|
213 |
<td class="listr"> |
|
214 | 214 |
<?=$server['when'];?> |
215 | 215 |
</td> |
216 |
<td class="listlr">
|
|
216 |
<td class="listr"> |
|
217 | 217 |
<?=$server['poll'];?> |
218 | 218 |
</td> |
219 |
<td class="listlr">
|
|
219 |
<td class="listr"> |
|
220 | 220 |
<?=$server['reach'];?> |
221 | 221 |
</td> |
222 |
<td class="listlr">
|
|
222 |
<td class="listr"> |
|
223 | 223 |
<?=$server['delay'];?> |
224 | 224 |
</td> |
225 |
<td class="listlr">
|
|
225 |
<td class="listr"> |
|
226 | 226 |
<?=$server['offset'];?> |
227 | 227 |
</td> |
228 |
<td class="listlr">
|
|
228 |
<td class="listr"> |
|
229 | 229 |
<?=$server['jitter'];?> |
230 | 230 |
</td> |
231 | 231 |
</tr> |
... | ... | |
234 | 234 |
</table> |
235 | 235 |
<?php if (($gps_ok) && ($gps_lat) && ($gps_lon)): ?> |
236 | 236 |
<?php $gps_goo_lnk = 2; ?> |
237 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
237 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="gps status">
|
|
238 | 238 |
<thead> |
239 | 239 |
<tr> |
240 | 240 |
<th class="listhdrr"><?=gettext("Clock Latitude"); ?></th> |
241 | 241 |
<th class="listhdrr"><?=gettext("Clock Longitude"); ?></th> |
242 |
<?php if (isset($gps_alt)) { echo '<th class="listhdrr">'.gettext("Clock Altitude").'</th>'; $gps_goo_lnk++;}?>
|
|
243 |
<?php if (isset($gps_sat) || isset($gps_satview)) { echo '<th class="listhdrr">'.gettext("Satellites").'</th>'; $gps_goo_lnk++;}?>
|
|
242 |
<?php if (isset($gps_alt)) { echo '<th class="listhdrr">' . gettext("Clock Altitude") . '</th>'; $gps_goo_lnk++;}?>
|
|
243 |
<?php if (isset($gps_sat) || isset($gps_satview)) { echo '<th class="listhdrr">' . gettext("Satellites") . '</th>'; $gps_goo_lnk++;}?>
|
|
244 | 244 |
</tr> |
245 | 245 |
</thead> |
246 | 246 |
<tbody> |
247 | 247 |
<tr> |
248 | 248 |
<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> |
249 | 249 |
<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> |
250 |
<?php if (isset($gps_alt)) { echo '<td class="listlr" align="center">'.$gps_alt.' '.$gps_alt_unit.'</td>';}?>
|
|
250 |
<?php if (isset($gps_alt)) { echo '<td class="listlr" align="center">' . $gps_alt . ' ' . $gps_alt_unit . '</td>';}?>
|
|
251 | 251 |
<td class="listr" align="center"> |
252 | 252 |
<?php |
253 | 253 |
if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);} |
Formats disponibles : Unified diff
Tidy up "status_ntpd.php" XHTML
Add SUMMARY to TABLES
Move NOWRAP into CLASS statement
Change TD class to LISTR