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_spd.php
65 65

  
66 66
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
67 67
	<?php include("fbegin.inc"); ?>
68
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
68
	<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status ipsec spd">
69 69
		<tr>
70 70
			<td>
71 71
				<?php
......
81 81
		<tr>
82 82
			<td>
83 83
				<div id="mainarea" style="background:#eeeeee">
84
					<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0">
84
					<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
85 85
						<?php if (count($spd)): ?>
86 86
						<tr>
87
							<td nowrap class="listhdrr"><?= gettext("Source"); ?></td>
88
							<td nowrap class="listhdrr"><?= gettext("Destination"); ?></td>
89
							<td nowrap class="listhdrr"><?= gettext("Direction"); ?></td>
90
							<td nowrap class="listhdrr"><?= gettext("Protocol"); ?></td>
91
							<td nowrap class="listhdrr"><?= gettext("Tunnel endpoints"); ?></td>
92
							<td nowrap class="list"></td>
87
							<td class="listhdrr nowrap"><?= gettext("Source"); ?></td>
88
							<td class="listhdrr nowrap"><?= gettext("Destination"); ?></td>
89
							<td class="listhdrr nowrap"><?= gettext("Direction"); ?></td>
90
							<td class="listhdrr nowrap"><?= gettext("Protocol"); ?></td>
91
							<td class="listhdrr nowrap"><?= gettext("Tunnel endpoints"); ?></td>
92
							<td class="list nowrap"></td>
93 93
						</tr>
94 94
						<?php foreach ($spd as $sp): ?>
95 95
						<tr>
96 96
							<td class="listlr" valign="top"><?=htmlspecialchars($sp['srcid']);?></td>
97 97
							<td class="listr" valign="top"><?=htmlspecialchars($sp['dstid']);?></td>
98 98
							<td class="listr" valign="top">
99
								<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_<?=$sp['dir'];?>.gif" width="11" height="11" style="margin-top: 2px">
99
								<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_<?=$sp['dir'];?>.gif" width="11" height="11" style="margin-top: 2px" alt="direction" />
100 100
							</td>
101 101
							<td class="listr" valign="top"><?=htmlspecialchars(strtoupper($sp['proto']));?></td>
102 102
							<td class="listr" valign="top"><?=htmlspecialchars($sp['src']);?> -> <?=htmlspecialchars($sp['dst']);?></td>
103
							<td class="list" nowrap>
103
							<td class="list nowrap">
104 104
								<?php
105 105
									$args = "srcid=".rawurlencode($sp['srcid']);
106
									$args .= "&dstid=".rawurlencode($sp['dstid']);
107
									$args .= "&dir=".rawurlencode($sp['dir']);
106
									$args .= "&amp;dstid=".rawurlencode($sp['dstid']);
107
									$args .= "&amp;dir=".rawurlencode($sp['dir']);
108 108
								?>
109
								<a href="diag_ipsec_spd.php?act=del&<?=$args;?>" onclick="return confirm('<?= gettext("Do you really want to delete this security policy?"); ?>')">
110
									<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0">
109
								<a href="diag_ipsec_spd.php?act=del&amp;<?=$args;?>" onclick="return confirm('<?= gettext("Do you really want to delete this security policy?"); ?>')">
110
									<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
111 111
								</a>
112 112
							</td>
113 113
						</tr>
114 114
						<?php endforeach; ?>
115 115
					</table>
116 116
					<br />
117
					<table class="tabcont" border="0" cellspacing="0" cellpadding="6">
117
					<table class="tabcont" border="0" cellspacing="0" cellpadding="6" summary="policies">
118 118
						<tr>
119
							<td width="16"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_in.gif" width="11" height="11"></td>
119
							<td width="16"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_in.gif" width="11" height="11" alt="in" /></td>
120 120
							<td><?= gettext("incoming (as seen by firewall)"); ?></td>
121 121
						</tr>
122 122
						<tr>
123 123
							<td colspan="5" height="4"></td>
124 124
						</tr>
125 125
						<tr>
126
							<td><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_out.gif" width="11" height="11"></td>
126
							<td><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_out.gif" width="11" height="11" alt="out" /></td>
127 127
							<td><?= gettext("outgoing (as seen by firewall)"); ?></td>
128 128
						</tr>
129 129
						<?php else: ?>
......
139 139
		</tr>
140 140
	</table>
141 141

  
142
<p>
143
<span class="vexpl">
142
<p class="vexpl">
144 143
<span class="red"><strong><?= gettext("Note:"); ?><br /></strong></span>
145 144
<?= gettext("You can configure your IPsec"); ?> <a href="vpn_ipsec.php"><?= gettext("here."); ?></a>
146
</span>
145
</p>
147 146

  
148 147
<?php include("fend.inc"); ?>
149 148
</body>
150 149
</html>
151

  

Formats disponibles : Unified diff