Project

General

Profile

« Previous | Next » 

Revision 32a31f8a

Added by Colin Fleming over 11 years ago

Tidy up "services_ntpd_pps" XHTML

Add SUMMARY to tables
Update HTML Boolean operators
Close INPUT tags
Add missing closing DIV, closing TD and closing TR tags

View differences:

usr/local/www/services_ntpd_pps.php
108 108
<?php if ($input_errors) print_input_errors($input_errors); ?>
109 109
<?php if ($savemsg) print_info_box($savemsg); ?>
110 110

  
111
<table width="100%" border="0" cellpadding="0" cellspacing="0">
111
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="ntpd pps">
112 112
  <tr>
113 113
	<td>
114 114
<?php
......
123 123
  <tr>
124 124
	<td>
125 125
	<div id="mainarea">
126
	<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
126
	<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
127 127
		<tr>
128 128
			<td colspan="2" valign="top" class="listtopic"><?=gettext("NTP PPS Configuration"); ?></td>
129 129
		</tr>
......
146 146
					<option value="">none</option>
147 147
					<?php foreach ($serialports as $port):
148 148
						$shortport = substr($port,5);
149
						$selected = ($shortport == $pconfig['port']) ? " selected" : "";?>
149
						$selected = ($shortport == $pconfig['port']) ? " selected=\"selected\"" : "";?>
150 150
						<option value="<?php echo $shortport;?>"<?php echo $selected;?>><?php echo $shortport;?></option>
151 151
					<?php endforeach; ?>
152 152
				</select>&nbsp;
......
157 157
		<tr>
158 158
			<td width="22%" valign="top" class="vncellreq">Fudge time</td>
159 159
			<td width="78%" class="vtable">
160
				<input name="ppsfudge1" type="text" class="formfld unknown" id="ppsfudge1" min="-1" max="1" size="20" value="<?=htmlspecialchars($pconfig['fudge1']);?>">(<?php echo gettext("seconds");?>)<br />
160
				<input name="ppsfudge1" type="text" class="formfld unknown" id="ppsfudge1" min="-1" max="1" size="20" value="<?=htmlspecialchars($pconfig['fudge1']);?>" />(<?php echo gettext("seconds");?>)<br />
161 161
				<?php echo gettext("Fudge time is used to specify the PPS signal offset from the actual second such as the transmission delay between the transmitter and the receiver.");?> (<?php echo gettext("default");?>: 0.0).</td>
162 162
		</tr>
163 163
		<tr>
164 164
			<td width="22%" valign="top" class="vncellreq">Stratum</td>
165 165
			<td width="78%" class="vtable">
166
				<input name="ppsstratum" type="text" class="formfld unknown" id="ppsstratum" max="16" size="20" value="<?=htmlspecialchars($pconfig['stratum']);?>"><?php echo gettext("(0-16)");?><br />
166
				<input name="ppsstratum" type="text" class="formfld unknown" id="ppsstratum" max="16" size="20" value="<?=htmlspecialchars($pconfig['stratum']);?>" /><?php echo gettext("(0-16)");?><br />
167 167
				<?php echo gettext("This may be used to change the PPS Clock stratum");?> (<?php echo gettext("default");?>: 0). <?php echo gettext("This may be useful if, for some reason, you want ntpd to prefer a different clock and just monitor this source."); ?></td>
168 168
		</tr>
169 169
		<tr>
170 170
			<td width="22%" valign="top" class="vncellreq">Flags</td>
171 171
			<td width="78%" class="vtable">
172
				<table>
172
				<table summary="flags">
173 173
					<tr>
174 174
						<td>
175 175
				<?php echo gettext("Normally there should be no need to change these options from the defaults."); ?><br />
......
179 179
				<table>
180 180
					<tr>
181 181
						<td>
182
							<input name="ppsflag2" type="checkbox" class="formcheckbox" id="ppsflag2"<?php if($pconfig['flag2']) echo ' checked'; ?>>
182
							<input name="ppsflag2" type="checkbox" class="formcheckbox" id="ppsflag2"<?php if($pconfig['flag2']) echo " checked=\"checked\""; ?> />
183 183
						</td>
184 184
						<td>
185 185
							<span class="vexpl"><?php echo gettext("Enable falling edge PPS signal processing (default: rising edge)."); ?></span>
......
187 187
					</tr>
188 188
					<tr>
189 189
						<td>
190
							<input name="ppsflag3" type="checkbox" class="formcheckbox" id="ppsflag3"<?php if($pconfig['flag3']) echo ' checked'; ?>>
190
							<input name="ppsflag3" type="checkbox" class="formcheckbox" id="ppsflag3"<?php if($pconfig['flag3']) echo " checked=\"checked\""; ?> />
191 191
						</td>
192 192
						<td>
193 193
							<span class="vexpl"><?php echo gettext("Enable kernel PPS clock discipline (default: disabled)."); ?></span>
......
195 195
					</tr>
196 196
					<tr>
197 197
						<td>
198
							<input name="ppsflag4" type="checkbox" class="formcheckbox" id="ppsflag4"<?php if($pconfig['flag4']) echo ' checked'; ?>>
198
							<input name="ppsflag4" type="checkbox" class="formcheckbox" id="ppsflag4"<?php if($pconfig['flag4']) echo " checked=\"checked\""; ?> />
199 199
						</td>
200 200
						<td>
201 201
							<span class="vexpl"><?php echo gettext("Record a timestamp once for each second, useful for constructing Allan deviation plots (default: disabled)."); ?></span>
......
207 207
		<tr>
208 208
			<td width="22%" valign="top" class="vncellreq">Clock ID</td>
209 209
			<td width="78%" class="vtable">
210
				<input name="ppsrefid" type="text" class="formfld unknown" id="ppsrefid" maxlength= "4" size="20" value="<?php htmlspecialchars($pconfig['refid']);?>"><?php echo gettext("(1 to 4 charactors)");?><br />
210
				<input name="ppsrefid" type="text" class="formfld unknown" id="ppsrefid" maxlength= "4" size="20" value="<?php htmlspecialchars($pconfig['refid']);?>" /><?php echo gettext("(1 to 4 charactors)");?><br />
211 211
				<?php echo gettext("This may be used to change the PPS Clock ID");?> (<?php echo gettext("default");?>: PPS).</td>
212 212
		</tr>
213 213
		<tr>
214 214
			<td width="22%" valign="top">&nbsp;</td>
215 215
			<td width="78%">
216
			<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>">
216
			<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
217 217
			</td>
218 218
		</tr>
219 219
	</table>
220
</div>
221
</td>
222
</tr>
220 223
</table>
221 224
</form>
222 225
<?php include("fend.inc"); ?>

Also available in: Unified diff