Projet

Général

Profil

« Précédent | Suivant » 

Révision 92e8dc9d

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "diag_routes.php" XHTML

Move PHP "fbegin.inc" between BODY and SCRIPT
Add SUMMARY to TABLES
Update HTML Boolean operators
Add missing closing BODY and closing HTML tags

Voir les différences:

usr/local/www/diag_routes.php
75 75
?>
76 76
<body link="#000000" vlink="#000000" alink="#000000">
77 77

  
78
<?php include("fbegin.inc"); ?>
79

  
78 80
<script type="text/javascript">
79 81
//<![CDATA[
80 82

  
......
105 107
		var elements = 8;
106 108
		var tr_class = '';
107 109

  
108
		var thead = '<tr><td class="listtopic" colspan="' + elements + '"><strong>' + section + '</strong></td></tr>' + "\n";
110
		var thead = '<tr><td class="listtopic" colspan="' + elements + '"><strong>' + section + '<\/strong><\/td><\/tr>' + "\n";
109 111
		for (var i = 0; i < responseTextArr.length; i++) {
110 112
			if (responseTextArr[i] == "")
111 113
				continue;
......
124 126
					continue;
125 127
				if (i == 0 && j == (elements - 1))
126 128
					tr_class = 'listhdr';
127
				tmp += '<td class="' + tr_class + '">' + entry[k] + '</td>' + "\n";
129
				tmp += '<td class="' + tr_class + '">' + entry[k] + '<\/td>' + "\n";
128 130
				if (i > 0)
129 131
					tr_class = 'listr';
130 132
				j++;
131 133
			}
132 134
			// The 'Expire' field might be blank
133 135
			if (j == (elements - 1))
134
				tmp += '<td class="listr">&nbsp;</td>' + "\n";
135
			tmp += '</tr>' + "\n";
136
				tmp += '<td class="listr">&nbsp;<\/td>' + "\n";
137
			tmp += '<\/tr>' + "\n";
136 138
			if (i == 0)
137 139
				thead += tmp;
138 140
			else
......
145 147
//]]>
146 148
</script>
147 149

  
148
<?php include("fbegin.inc"); ?>
149

  
150 150
<script type="text/javascript">
151 151
//<![CDATA[
152 152

  
......
162 162

  
163 163
<div id="mainarea">
164 164
<form action="diag_routes.php" method="post">
165
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6">
165
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6" summary="diag routes">
166 166

  
167 167
<tr>
168 168
<td class="vncellreq" width="22%"><?=gettext("Name resolution");?></td>
169 169
<td class="vtable" width="78%">
170
<input type="checkbox" class="formfld" id="resolve" name="resolve" value="yes" <?php if ($_POST['resolve'] == 'yes') echo 'checked'; ?> /><?=gettext("Enable");?>
170
<input type="checkbox" class="formfld" id="resolve" name="resolve" value="yes" <?php if ($_POST['resolve'] == 'yes') echo "checked=\"checked\""; ?> /><?=gettext("Enable");?>
171 171
<br />
172 172
<span class="expl"><?=gettext("Enable this to attempt to resolve names when displaying the tables.");?></span>
173 173
</td>
......
179 179
<select id="limit" name="limit">
180 180
<?php
181 181
	foreach (array("10", "50", "100", "200", "500", "1000", gettext("all")) as $item) {
182
		echo "<option value=\"{$item}\" " . ($item == "100" ? "selected" : "") . ">{$item}</option>\n";
182
		echo "<option value=\"{$item}\" " . ($item == "100" ? "selected=\"selected\"" : "") . ">{$item}</option>\n";
183 183
	}
184 184
?>
185 185
</select>
......
210 210
</table>
211 211
</form>
212 212

  
213
<table class="tabcont sortable" width="100%" cellspacing="0" cellpadding="6" border="0" id="IPv4">
213
<table class="tabcont sortable" width="100%" cellspacing="0" cellpadding="6" border="0" id="IPv4" summary="ipv4 routes">
214 214
	<thead>
215 215
		<tr><td class="listtopic"><strong>IPv4</strong></td></tr>
216 216
	</thead>
......
218 218
		<tr><td class="listhdrr"><?=gettext("Gathering data, please wait...");?></td></tr>
219 219
	</tbody>
220 220
</table>
221
<table class="tabcont sortable" width="100%" cellspacing="0" cellpadding="6" border="0" id="IPv6">
221
<table class="tabcont sortable" width="100%" cellspacing="0" cellpadding="6" border="0" id="IPv6" summary="ipv6 routes">
222 222
	<thead>
223 223
		<tr><td class="listtopic"><strong>IPv6</strong></td></tr>
224 224
	</thead>
......
232 232
<?php
233 233
include('fend.inc');
234 234
?>
235

  
236
</body>
237
</html>

Formats disponibles : Unified diff