Projet

Général

Profil

« Précédent | Suivant » 

Révision bca63487

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "vpn_pptp_users" XHTML

Add SUMMARY to TABLES
Close INPUT and IMG tags and add ALT to IMG
Move NOWRAP to CLASS statement
Deprecated Ampersand in Anchor tags
Add missing closing TR tag

Voir les différences:

usr/local/www/vpn_pptp_users.php
80 80
<?php if ($savemsg) print_info_box($savemsg); ?>
81 81
<?php if (isset($config['pptpd']['radius']['enable']))
82 82
	print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used.")); ?>
83
<?php if (is_subsystem_dirty('pptpusers')): ?><p>
84
<?php print_info_box_np(gettext("The PPTP user list has been modified").".<br />".gettext("You must apply the changes in order for them to take effect").".<br /><b>".gettext("Warning: this will terminate all current PPTP sessions")."!</b>");?><br />
83
<?php if (is_subsystem_dirty('pptpusers')): ?><br/>
84
<?php print_info_box_np(gettext("The PPTP user list has been modified").".<br />".gettext("You must apply the changes in order for them to take effect").".<br /></b><b>".gettext("Warning: this will terminate all current PPTP sessions")."!");?><br />
85 85
<?php endif; ?>
86
<table width="100%" border="0" cellpadding="0" cellspacing="0">
86
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn pptp users">
87 87
  <tr><td class="tabnavtbl">
88 88
<?php
89 89
	$tab_array = array();
......
94 94
  <tr> 
95 95
	<td>
96 96
        <div id="mainarea">
97
              <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
97
              <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
98 98
                <tr> 
99 99
                  <td class="listhdrr"><?=gettext("Username");?></td>
100 100
                  <td class="listhdr"><?=gettext("IP address");?></td>
101 101
                  <td class="list">
102
			<table border="0" cellspacing="0" cellpadding="1">
102
			<table border="0" cellspacing="0" cellpadding="1" summary="add">
103 103
			   <tr>
104 104
				<td width="17"></td>
105
				<td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0"></a></td>
105
				<td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0" alt="add" /></a></td>
106 106
			   </tr>
107 107
			</table>
108 108
		  </td>
......
115 115
                  <td class="listr">
116 116
                    <?=htmlspecialchars($secretent['ip']);?>&nbsp;
117 117
                  </td>
118
                  <td class="list" nowrap> <a href="vpn_pptp_users_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit user");?>" width="17" height="17" border="0"></a>
119
                     &nbsp;<a href="vpn_pptp_users.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this user?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete user");?>" width="17" height="17" border="0"></a></td>
118
                  <td class="list nowrap"><a href="vpn_pptp_users_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit user");?>" width="17" height="17" border="0" alt="edit" /></a>
119
                     &nbsp;<a href="vpn_pptp_users.php?act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this user?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete user");?>" width="17" height="17" border="0" alt="delete" /></a></td>
120 120
				</tr>
121 121
			  <?php $i++; endforeach; ?>
122 122
                <tr> 
123 123
                  <td class="list" colspan="2"></td>
124 124
                  <td class="list">
125
			<table border="0" cellspacing="0" cellpadding="1">
125
			<table border="0" cellspacing="0" cellpadding="1" summary="add">
126 126
			   <tr>
127 127
				<td width="17"></td>
128
				<td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0"></a></td>
128
				<td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0" alt="add" /></a></td>
129 129
			   </tr>
130 130
			</table>
131 131
		  </td>
usr/local/www/vpn_pptp_users_edit.php
143 143
<?php if ($input_errors) print_input_errors($input_errors); ?>
144 144
            <form action="vpn_pptp_users_edit.php" method="post" name="iform" id="iform">
145 145
              <div id="mainarea">
146
	      <table width="100%" border="0" cellpadding="6" cellspacing="0">
146
	      <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="vpn pptp users edit">
147 147
                <tr>
148 148
                  <td width="22%" valign="top" class="vncellreq"><?=gettext("Username");?></td>
149 149
                  <td width="78%" class="vtable">
150
					<?=$mandfldhtml;?><input name="username" type="text" class="formfld user" id="username" size="20" value="<?=htmlspecialchars($pconfig['username']);?>">
150
					<?=$mandfldhtml;?><input name="username" type="text" class="formfld user" id="username" size="20" value="<?=htmlspecialchars($pconfig['username']);?>" />
151 151
                  </td>
152
                </tr>
152 153
                <tr>
153 154
                  <td width="22%" valign="top" class="vncellreq"><?=gettext("Password");?></td>
154 155
                  <td width="78%" class="vtable">
155
                    <?=$mandfldhtml;?><input name="password" type="password" class="formfld pwd" id="password" size="20">
156
                    <br /><?=$mandfldhtml;?><input name="password2" type="password" class="formfld pwd" id="password2" size="20">
156
                    <?=$mandfldhtml;?><input name="password" type="password" class="formfld pwd" id="password" size="20" />
157
                    <br /><?=$mandfldhtml;?><input name="password2" type="password" class="formfld pwd" id="password2" size="20" />
157 158
                    &nbsp;(<?=gettext("confirmation");?>)<?php if (isset($id) && $a_secret[$id]): ?><br />
158 159
                    <span class="vexpl"><?=gettext("If you want to change the users' password, ".
159 160
                    "enter it here twice.");?></span><?php endif; ?></td>
......
161 162
                <tr>
162 163
                  <td width="22%" valign="top" class="vncell"><?=gettext("IP address");?></td>
163 164
                  <td width="78%" class="vtable">
164
                    <input name="ip" type="text" class="formfld unknown" id="ip" size="20" value="<?=htmlspecialchars($pconfig['ip']);?>">
165
                    <input name="ip" type="text" class="formfld unknown" id="ip" size="20" value="<?=htmlspecialchars($pconfig['ip']);?>" />
165 166
                    <br /><span class="vexpl"><?=gettext("If you want the user to be assigned a specific IP address, enter it here.");?></span></td>
166 167
                </tr>
167 168
                <tr>
168 169
                  <td class="vncell" width="22%" valign="top">&nbsp;</td>
169 170
                  <td class="vncell" width="78%">
170
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>">
171
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
171 172
                    <?php if (isset($id) && $a_secret[$id]): ?>
172
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
173
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
173 174
                    <?php endif; ?>
174 175
                  </td>
175 176
                </tr>
......
179 180
<?php include("fend.inc"); ?>
180 181
</body>
181 182
</html>
182

  
183

  

Formats disponibles : Unified diff