<?=sprintf(gettext('Statistics unavailable because ntpq and ntpdc queries are disabled in the %sNTP service settings%s.'),'<a href="services_ntpd.php">','</a>')?>
</td></tr>
<?phpelseif(count($ntpq_servers)==0):?>
<tr><tdclass="listlr"colspan="11"align="center">
<?=sprintf(gettext('No peers found, %sis the ntp service running%s?'),'<a href="status_services.php">','</a>')?>
</td></tr>
<?phpelse:?>
<?php$i=0;foreach($ntpq_serversas$server):?>
<?php
if(isset($config['ntpd']['noquery'])):?>
<tr>
<tdclass="listlr nowrap">
<?=$server['status'];?>
</td>
<tdclass="listr">
<?=$server['server'];?>
</td>
<tdclass="listr">
<?=$server['refid'];?>
</td>
<tdclass="listr">
<?=$server['stratum'];?>
</td>
<tdclass="listr">
<?=$server['type'];?>
</td>
<tdclass="listr">
<?=$server['when'];?>
</td>
<tdclass="listr">
<?=$server['poll'];?>
</td>
<tdclass="listr">
<?=$server['reach'];?>
</td>
<tdclass="listr">
<?=$server['delay'];?>
</td>
<tdclass="listr">
<?=$server['offset'];?>
<tdcolspan="11">
<?=sprintf(gettext('Statistics unavailable because ntpq and ntpdc queries are disabled in the %sNTP service settings%s.'),'<a href="services_ntpd.php">','</a>')?>
</td>
<tdclass="listr">
<?=$server['jitter'];?>
</tr>
<?php
elseif(count($ntpq_servers)==0):?>
<tr>
<tdcolspan="11">
<?=sprintf(gettext('No peers found, %sis the ntp service running%s?'),'<a href="status_services.php">','</a>')?>