Projet

Général

Profil

« Précédent | Suivant » 

Révision a8590dd6

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "diag_ipsec" XHTML

Add SUMMARY to TABLES
Move NOWRAP into CLASS statement
Close INPUT and IMG tags and add ALT to IMG tag
Add dummy row to TBODY but don't display it
Deprecate Ampersand in ANCHOR tag

Voir les différences:

usr/local/www/diag_ipsec.php
81 81
<body link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="<?php echo $jsevents["body"]["onload"]; ?>">
82 82
<?php include("fbegin.inc"); ?>
83 83
<div id="inputerrors"></div>
84
<table width="100%" border="0" cellpadding="0" cellspacing="0">
84
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status ipsec">
85 85
	<tr>
86 86
		<td>
87 87
			<?php
......
97 97
	<tr>
98 98
	<td>
99 99
	<div id="mainarea">
100
		<table width="100%" border="0" cellpadding="6" cellspacing="0" class="tabcont sortable">
100
		<table width="100%" border="0" cellpadding="6" cellspacing="0" class="tabcont sortable" summary="status">
101 101
		<thead>
102 102
			<tr>
103
				<th nowrap class="listhdrr"><?php echo gettext("Description");?></th>
104
				<th nowrap class="listhdrr"><?php echo gettext("Local ID");?></th>
105
				<th nowrap class="listhdrr"><?php echo gettext("Local IP");?></th>
106
				<th nowrap class="listhdrr"><?php echo gettext("Remote ID");?></th>
107
				<th nowrap class="listhdrr"><?php echo gettext("Remote IP");?></a></th>
108
				<th nowrap class="listhdrr"><?php echo gettext("Role");?></a></th>
109
				<th nowrap class="listhdrr"><?php echo gettext("Status");?></a></th>
103
				<th class="listhdrr nowrap"><?php echo gettext("Description");?></th>
104
				<th class="listhdrr nowrap"><?php echo gettext("Local ID");?></th>
105
				<th class="listhdrr nowrap"><?php echo gettext("Local IP");?></th>
106
				<th class="listhdrr nowrap"><?php echo gettext("Remote ID");?></th>
107
				<th class="listhdrr nowrap"><?php echo gettext("Remote IP");?></th>
108
				<th class="listhdrr nowrap"><?php echo gettext("Role");?></th>
109
				<th class="listhdrr nowrap"><?php echo gettext("Status");?></th>
110 110
		</tr>
111 111
		</thead>
112 112
		<tbody>
......
175 175
				<td class="listbg">
176 176
					<?php ?> &nbsp;
177 177
				</td>
178
				<td valign="middle" nowrap class="list">
179
					<table border="0" cellspacing="0" cellpadding="1">
178
				<td valign="middle" class="list nowrap">
179
					<table border="0" cellspacing="0" cellpadding="1" summary="">
180 180
					</table>
181 181
				</td>
182 182
			</tr>
......
184 184
			<tr>
185 185
				<td class="listrborder" colspan="7">
186 186
				<div id="btnchildsa-<?=$ikeid;?>">
187
					<input  type="button" onClick="show_childsa('childsa-<?=$ikeid;?>','btnchildsa-<?=$ikeid;?>');" value="+" /> - Show child SA entries</a>
187
					<input  type="button" onclick="show_childsa('childsa-<?=$ikeid;?>','btnchildsa-<?=$ikeid;?>');" value="+" /> - Show child SA entries
188 188
				</div>
189
				<table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="childsa-<?=$ikeid;?>" style="display:none">
189
				<table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="childsa-<?=$ikeid;?>" style="display:none" summary="">
190 190
				<thead>
191 191
					<tr>
192
						<th nowrap class="listhdrr"><?php echo gettext("Local subnets");?></th>
193
						<th nowrap class="listhdrr"><?php echo gettext("Local SPI");?></th>
194
						<th nowrap class="listhdrr"><?php echo gettext("Remote SPI");?></th>
195
						<th nowrap class="listhdrr"><?php echo gettext("Remote subnets");?></th>
192
						<th class="listhdrr nowrap"><?php echo gettext("Local subnets");?></th>
193
						<th class="listhdrr nowrap"><?php echo gettext("Local SPI");?></th>
194
						<th class="listhdrr nowrap"><?php echo gettext("Remote SPI");?></th>
195
						<th class="listhdrr nowrap"><?php echo gettext("Remote subnets");?></th>
196 196
					</tr>
197 197
				</thead>
198 198
				<tbody>
......
201 201
						foreach ($ikesa['childsalist']['childsa'] as $childsa) {
202 202
				?>
203 203
					<tr valign="top">
204
						<td nowrap class="listlr">
204
						<td class="listlr nowrap">
205 205
				<?php	if (is_array($childsa['local']) && is_array($childsa['local']['networks']) && is_array($childsa['local']['networks']['network'])) {
206 206
						foreach ($childsa['local']['networks']['network'] as $lnets) {
207 207
							echo htmlspecialchars($lnets) . "<br />";	
......
210 210
						echo "Unknown";
211 211
				?>
212 212
						</td>
213
						<td nowrap class="listr">
213
						<td class="listr nowrap">
214 214
				<?php	if (is_array($childsa['local']))
215 215
						echo htmlspecialchars($childsa['local']['spi']);
216 216
				?>
217 217
						</td>
218
						<td nowrap class="listr">
218
						<td class="listr nowrap">
219 219
				<?php	if (is_array($childsa['remote']))
220 220
						echo htmlspecialchars($childsa['remote']['spi']);
221 221
				?>
222 222
						</td>
223
						<td nowrap class="listlr">
223
						<td class="listlr nowrap">
224 224
				<?php	if (is_array($childsa['remote']) && is_array($childsa['remote']['networks']) && is_array($childsa['remote']['networks']['network'])) {
225 225
						foreach ($childsa['remote']['networks']['network'] as $rnets) {
226 226
							echo htmlspecialchars($rnets) . "<br />";	
......
229 229
						echo "Unknown";
230 230
				?>
231 231
						</td>
232
						<td nowrap class="list">
232
						<td class="list nowrap">
233 233
							&nbsp;
234 234
						</td>
235 235
					</tr>
236 236
				<?php } } ?>
237
					<tr style="display:none;"><td></td></tr>
237 238
				</tbody>
238 239
				</table>
239 240
				</td>
......
242 243
		}
243 244
	}
244 245
?>
246
			<tr style="display:none;"><td></td></tr>
245 247
		</tbody>
246 248
		</table>
247 249
	</div>
248 250
	</td>
249 251
	</tr>
250 252
</table>
251
</div>
252 253

  
253
<span class="vexpl">
254
<p class="vexpl">
254 255
	<span class="red">
255 256
		<strong><?php echo gettext("Note:");?><br /></strong>
256 257
	</span>
257 258
	<?php echo gettext("You can configure IPsec");?>
258 259
	<a href="vpn_ipsec.php">here</a>.
259
</span>
260
</p>
260 261
<?php unset($status); include("fend.inc"); ?>
261 262
<script type="text/javascript">
263
//<![CDATA[
262 264
function show_childsa(id, buttonid) {
263 265
	document.getElementById(buttonid).innerHTML='';
264 266
	aodiv = document.getElementById(id);
265 267
	aodiv.style.display = "block";
266 268
}
269
//]]>
267 270
</script>
268 271
</body>
269 272
</html>

Formats disponibles : Unified diff