Projet

Général

Profil

« Précédent | Suivant » 

Révision 4d07ca6a

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "vpn_ipsec_keys" XHTML

Add SUMMARY to TABLES
Close INPUT and IMG tags and ALT
Move NOWRAP into CLASS statement
Deprecate ampersand in Anchor tags
Add missing closing BODY and HTML tags

Voir les différences:

usr/local/www/vpn_ipsec_keys.php
85 85
	print_info_box_np(gettext("The IPsec tunnel configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
86 86

  
87 87
?>
88
<table width="100%" border="0" cellpadding="0" cellspacing="0">
88
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn ipsec keys">
89 89
  <tr><td class="tabnavtbl">
90 90
<?php
91 91
	$tab_array = array();
......
99 99
  <tr> 
100 100
    <td>
101 101
	<div id="mainarea">
102
              <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
102
              <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
103 103
                <tr> 
104 104
                  <td class="listhdrr"><?=gettext("Identifier"); ?></td>
105 105
                  <td class="listhdr"><?=gettext("Pre-Shared Key"); ?></td>
106 106
                  <td class="list">
107
			<table border="0" cellspacing="0" cellpadding="1">
107
			<table border="0" cellspacing="0" cellpadding="1" summary="add key">
108 108
			    <tr>
109
			        <td width="20" heigth="17"></td>
110
				<td><a href="vpn_ipsec_keys_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add key"); ?>" width="17" height="17" border="0"></a></td>
109
			        <td width="20" height="17"></td>
110
				<td><a href="vpn_ipsec_keys_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add key"); ?>" width="17" height="17" border="0" alt="add" /></a></td>
111 111
			    </tr>
112 112
			</table>
113 113
		  </td>
......
120 120
		<td class="listr gray">
121 121
			<?=htmlspecialchars($secretent['pre-shared-key']);?>
122 122
		</td>
123
		<td class="list" nowrap><a href="system_usermanager.php?act=edit&id=<?=$secretent['id'];?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit key"); ?>" width="17" height="17" border="0"></a>
123
		<td class="list nowrap"><a href="system_usermanager.php?act=edit&amp;id=<?=$secretent['id'];?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit key"); ?>" width="17" height="17" border="0" alt="edit" /></a>
124 124
		&nbsp;</td>
125 125
				</tr>
126 126
			  <?php $i++; endforeach; ?>
......
133 133
                  <td class="listr">
134 134
                    <?=htmlspecialchars($secretent['pre-shared-key']);?>
135 135
                  </td>
136
                  <td class="list" nowrap> <a href="vpn_ipsec_keys_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit key"); ?>" width="17" height="17" border="0"></a>
137
                     &nbsp;<a href="vpn_ipsec_keys.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Pre-Shared Key?"); ?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete key"); ?>" width="17" height="17" border="0"></a></td>
136
                  <td class="list nowrap"><a href="vpn_ipsec_keys_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit key"); ?>" width="17" height="17" border="0" alt="edit" /></a>
137
                     &nbsp;<a href="vpn_ipsec_keys.php?act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Pre-Shared Key?"); ?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete key"); ?>" width="17" height="17" border="0" alt="delete" /></a></td>
138 138
				</tr>
139 139
			  <?php $i++; endforeach; ?>
140 140
                <tr> 
141 141
                  <td class="list" colspan="2"></td>
142 142
                  <td class="list">
143
			<table border="0" cellspacing="0" cellpadding="1">
143
			<table border="0" cellspacing="0" cellpadding="1" summary="add key">
144 144
			    <tr>
145
			        <td width="20" heigth="17"></td>
146
				<td><a href="vpn_ipsec_keys_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add key"); ?>" width="17" height="17" border="0"></a></td>
145
			        <td width="20" height="17"></td>
146
				<td><a href="vpn_ipsec_keys_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add key"); ?>" width="17" height="17" border="0" alt="add" /></a></td>
147 147
			    </tr>
148 148
			</table>
149 149
		  </td>
usr/local/www/vpn_ipsec_keys_edit.php
123 123
<?php include("fbegin.inc"); ?>
124 124
<?php if ($input_errors) print_input_errors($input_errors); ?>
125 125
            <form action="vpn_ipsec_keys_edit.php" method="post" name="iform" id="iform">
126
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
126
              <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="vpn ipsec keys edit">
127 127
                <tr> 
128 128
                  <td valign="top" class="vncellreq"><?=gettext("Identifier"); ?></td>
129 129
                  <td class="vtable">
130
					<?=$mandfldhtml;?><input name="ident" type="text" class="formfld unknown" id="ident" size="30" value="<?=htmlspecialchars($pconfig['ident']);?>">
130
					<?=$mandfldhtml;?><input name="ident" type="text" class="formfld unknown" id="ident" size="30" value="<?=htmlspecialchars($pconfig['ident']);?>" />
131 131
                    <br />
132 132
<?=gettext("This can be either an IP address, fully qualified domain name or an e-mail address"); ?>.       
133 133
                  </td>
......
135 135
                <tr> 
136 136
                  <td width="22%" valign="top" class="vncellreq"><?=gettext("Pre-Shared Key"); ?></td>
137 137
                  <td width="78%" class="vtable"> 
138
                    <?=$mandfldhtml;?><input name="psk" type="text" class="formfld unknown" id="psk" size="40" value="<?=htmlspecialchars($pconfig['psk']);?>">
138
                    <?=$mandfldhtml;?><input name="psk" type="text" class="formfld unknown" id="psk" size="40" value="<?=htmlspecialchars($pconfig['psk']);?>" />
139 139
                  </td>
140 140
                </tr>
141 141
                <tr> 
142 142
                  <td width="22%" valign="top">&nbsp;</td>
143 143
                  <td width="78%"> 
144
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> 
144
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> 
145 145
                    <?php if (isset($id) && $a_secret[$id]): ?>
146
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
146
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
147 147
                    <?php endif; ?>
148 148
                  </td>
149 149
                </tr>
150 150
              </table>
151 151
</form>
152 152
<?php include("fend.inc"); ?>
153
</body>
154
</html>

Formats disponibles : Unified diff