Projet

Général

Profil

« Précédent | Suivant » 

Révision afc09384

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "diag_dns.php" XHTML

Add SUMMARY to TABLES
Close INPUT tags
Add missing closing FONT tags
Deprecate Ampersand in Anchor tags
Change _new to _blank in Anchor tags
Add missing closing BODY and closing HTML tags

Voir les différences:

usr/local/www/diag_dns.php
171 171
include("head.inc"); ?>
172 172
<body link="#000000" vlink="#000000" alink="#000000">
173 173
<?php include("fbegin.inc"); ?>
174
<table width="100%" border="0" cellpadding="0" cellspacing="0">
174
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="diag dns">
175 175
        <tr>
176 176
                <td>
177 177
<?php if ($input_errors) print_input_errors($input_errors); ?>
178 178
	<form action="diag_dns.php" method="post" name="iform" id="iform">
179
	  <table width="100%" border="0" cellpadding="6" cellspacing="0">
179
	  <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="tabcont">
180 180
		<tr>
181 181
			<td colspan="2" valign="top" class="listtopic"> <?=gettext("Resolve DNS hostname or IP");?></td>
182 182
		</tr>
......
184 184
		  <td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname or IP");?></td>
185 185
		  <td width="78%" class="vtable">
186 186
            <?=$mandfldhtml;?>
187
			<table>
187
			<table summary="results">
188 188
				<tr><td valign="top">
189
			<input name="host" type="text" class="formfld" id="host" size="20" value="<?=htmlspecialchars($host);?>">
189
			<input name="host" type="text" class="formfld" id="host" size="20" value="<?=htmlspecialchars($host);?>" />
190 190
			</td>
191 191
			<td>
192 192
			<?php if ($resolved && $type) { ?>
......
205 205
				} 
206 206
				if($found > 0) {
207 207
					if($alias_exists) {
208
						echo "<br /><font size='-2'>An alias already exists for the hostname " . htmlspecialchars($host) . ".  To overwrite, click <a href='diag_dns.php?host=" . trim(urlencode(htmlspecialchars($host))) . "&createalias=true&override=true'>here</a>.";
208
						echo "</font><br /><font size=\"-2\">An alias already exists for the hostname " . htmlspecialchars($host) . ".  To overwrite, click <a href=\"diag_dns.php?host=" . trim(urlencode(htmlspecialchars($host))) . "&amp;createalias=true&amp;override=true\">here</a>." . "</font>";
209 209
					} else { 
210 210
						if(!$createdalias) {
211
							echo "<br /><font size='-2'><a href='diag_dns.php?host=" . trim(urlencode(htmlspecialchars($host))) . "&createalias=true'>Create alias</a> out of these entries.";
211
							echo "</font><br /><font size=\"-2\"><a href=\"diag_dns.php?host=" . trim(urlencode(htmlspecialchars($host))) . "&amp;createalias=true\">Create alias</a> out of these entries." . "</font>";
212 212
						} else {
213
							echo "<br /><font size='-2'>Alias created with name " . htmlspecialchars($newalias['name']);
213
							echo "</font><br /><font size=\"-2\">Alias created with name " . htmlspecialchars($newalias['name']) . "</font>";
214 214
						}
215 215
					}
216 216
				}
217 217
?>
218
				<font size="-1">
219 218

  
220 219
			<?php } ?>
221 220
			</td></tr></table>
......
225 224
		<tr>
226 225
		  <td width="22%" valign="top" class="vncell"><?=gettext("Resolution time per server");?></td>
227 226
		  <td width="78%" class="vtable">
228
				<table width="170" border="1" cellpadding="2" style="border-width: 1px 1px 1px 1px; border-collapse: collapse;">
227
				<table width="170" border="1" cellpadding="2" style="border-width: 1px 1px 1px 1px; border-collapse: collapse;" summary="resolution time">
229 228
					<tr>
230 229
						<td>
231 230
							<b><?=gettext("Server");?></b>
......
257 256
		<tr>
258 257
			<td width="22%" valign="top"  class="vncell"><?=gettext("More Information:");?></td>
259 258
			<td width="78%" class="vtable">
260
				<a target="_new" href ="/diag_ping.php?host=<?=htmlspecialchars($host)?>&interface=wan&count=3"><?=gettext("Ping");?></a> <br />
261
				<a target="_new" href ="/diag_traceroute.php?host=<?=htmlspecialchars($host)?>&ttl=18"><?=gettext("Traceroute");?></a>
262
				<p/>
259
				<a href ="/diag_ping.php?host=<?=htmlspecialchars($host)?>&amp;interface=wan&amp;count=3"><?=gettext("Ping");?></a> <br />
260
				<a href ="/diag_traceroute.php?host=<?=htmlspecialchars($host)?>&amp;ttl=18"><?=gettext("Traceroute");?></a>
261
				<p>
263 262
				<?=gettext("NOTE: The following links are to external services, so their reliability cannot be guaranteed.");?><br /><br />
264
				<a target="_new" href="http://private.dnsstuff.com/tools/whois.ch?ip=<?php echo $ipaddr; ?>"><?=gettext("IP WHOIS @ DNS Stuff");?></a><br />
265
				<a target="_new" href="http://private.dnsstuff.com/tools/ipall.ch?ip=<?php echo $ipaddr; ?>"><?=gettext("IP Info @ DNS Stuff");?></a>
263
				<a target="_blank" href="http://private.dnsstuff.com/tools/whois.ch?ip=<?php echo $ipaddr; ?>"><?=gettext("IP WHOIS @ DNS Stuff");?></a><br />
264
				<a target="_blank" href="http://private.dnsstuff.com/tools/ipall.ch?ip=<?php echo $ipaddr; ?>"><?=gettext("IP Info @ DNS Stuff");?></a>
265
				</p>
266 266
			</td>
267 267
		</tr>
268 268
		<?php } ?>
......
270 270
		  <td width="22%" valign="top">&nbsp;</td>
271 271
		  <td width="78%">
272 272
			<br />&nbsp;
273
            <input name="Submit" type="submit" class="formbtn" value="<?=gettext("DNS Lookup");?>">
273
            <input name="Submit" type="submit" class="formbtn" value="<?=gettext("DNS Lookup");?>" />
274 274
		</td>
275 275
		</tr>
276 276
	</table>
277 277
</form>
278 278
</td></tr></table>
279 279
<?php include("fend.inc"); ?>
280
</body>
281
</html>

Formats disponibles : Unified diff