Projet

Général

Profil

« Précédent | Suivant » 

Révision 0cb60645

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "status_captiveportal" XHTML

Add SUMMARY to TABLES
Remove PHP ECHO that isn't in a PHP statement
Update HTML Boolean operator
Add COLSPAN to fill the width of the table
Move NOWRAP to CLASS statement
Close INPUT and IMG tags and add ALT to IMG
Add BODY between HEAD.INC and FBEGIN.INC
Remove TYPE from TEXTAREA, invalid in XHTML
Add closing BODY and closing HTML tags

Voir les différences:

usr/local/www/status_captiveportal.php
117 117
<td class="tabcont">
118 118
<?php endif; ?>
119 119

  
120
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
120
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
121 121
  <tr>
122 122
	<td width="20%" class="vncell" valign="top"> 
123 123
               <br /><?=gettext("Captive Portal Zone"); ?><br/><br />
......
125 125
	<td class="vncell" width="30%" align="center"> 
126 126
	<form action="status_captiveportal.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
127 127
		<select name="zone" class="formselect" onchange="document.form1.submit()">
128
		echo "<option value="">none</option>\n";
128
		<option value="">none</option>
129 129
		<?php foreach ($a_cp as $cpkey => $cp) {
130
		       echo "<option value='{$cpkey}' ";
130
		       echo "<option value=\"{$cpkey}\" ";
131 131
		       if ($cpzone == $cpkey)
132
			       echo "selected";
132
			       echo "selected=\"selected\"";
133 133
		       echo ">" . htmlspecialchars($cp['zone']) . "</option>\n";
134 134
		       }
135 135
               ?>
......
152 152
    <td class="listhdrr"><a href="?zone=<?=$cpzone?>&amp;order=start&amp;showact=<?=htmlspecialchars($_GET['showact']);?>"><?=gettext("Session start");?></a></td>
153 153
    <td class="listhdr"><a href="?zone=<?=$cpzone?>&amp;order=lastact&amp;showact=<?=htmlspecialchars($_GET['showact']);?>"><?=gettext("Last activity");?></a></td>
154 154
	<?php else: ?>
155
    <td class="listhdr"><a href="?zone=<?=$cpzone?>&amp;order=start&amp;showact=<?=htmlspecialchars($_GET['showact']);?>"><?=gettext("Session start");?></a></td>
155
    <td class="listhdr" colspan="2"><a href="?zone=<?=$cpzone?>&amp;order=start&amp;showact=<?=htmlspecialchars($_GET['showact']);?>"><?=gettext("Session start");?></a></td>
156 156
	<?php endif; ?>
157 157
    <td class="list sort_ignore"></td>
158 158
  </tr>
......
174 174
	<?php if ($_GET['showact']):
175 175
	$last_act = captiveportal_get_last_activity($cpent[2], $cpent[3]); ?>
176 176
    <td class="listr"><?php if ($last_act != 0) echo htmlspecialchars(date("m/d/Y H:i:s", $last_act));?></td>
177
	<?php else: ?>
178
    <td class="listr" colspan="2"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
177 179
	<?php endif; ?>
178
    <td valign="middle" class="list" nowrap>
180
    <td valign="middle" class="list nowrap">
179 181
      <a href="?zone=<?=$cpzone;?>&amp;order=<?=$_GET['order'];?>&amp;showact=<?=htmlspecialchars($_GET['showact']);?>&amp;act=del&amp;id=<?=$cpent[5];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a>
180 182
    </td>
181 183
  </tr>

Formats disponibles : Unified diff