summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_captiveportal_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/status_captiveportal_test.php')
-rw-r--r--usr/local/www/status_captiveportal_test.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/usr/local/www/status_captiveportal_test.php b/usr/local/www/status_captiveportal_test.php
index 47d64c9..dd065ad 100644
--- a/usr/local/www/status_captiveportal_test.php
+++ b/usr/local/www/status_captiveportal_test.php
@@ -59,9 +59,9 @@ $pgtitle = array(gettext("Status"), gettext("Captive portal"), gettext("Test Vou
$shortcut_section = "captiveportal-vouchers";
include("head.inc");
-include("fbegin.inc");
-
?>
+<body>
+<?php include("fbegin.inc"); ?>
<form action="status_captiveportal_test.php" method="post" enctype="multipart/form-data" name="iform" id="iform">
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="tab pane">
@@ -83,38 +83,40 @@ include("fbegin.inc");
<tr>
<td valign="top" class="vncellreq"><?=gettext("Voucher(s)"); ?></td>
<td class="vtable">
- <textarea name="vouchers" cols="65" rows="3" type="text" id="vouchers" class="formpre"><?=htmlspecialchars($_POST['vouchers']);?></textarea>
+ <textarea name="vouchers" cols="65" rows="3" id="vouchers" class="formpre"><?=htmlspecialchars($_POST['vouchers']);?></textarea>
<br />
<?=gettext("Enter multiple vouchers separated by space or newline. The remaining time, if valid, will be shown for each voucher"); ?>.</td>
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <input name="zone" type="hidden" value="<?=htmlspecialchars($cpzone);?>">
- <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Submit"); ?>">
+ <input name="zone" type="hidden" value="<?=htmlspecialchars($cpzone);?>" />
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Submit"); ?>" />
</td>
</tr>
</table>
</td></tr></table>
</form>
-<p>
+<br/>
<?php
if ($_POST) {
if ($_POST['vouchers']) {
$test_results = voucher_auth($_POST['vouchers'], 1);
- echo "<p><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n";
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\" summary=\"results\">\n";
foreach ($test_results as $result) {
if (strpos($result, " good ") || strpos($result, " granted ")) {
- echo "<tr><td bgcolor=\"#D9DEE8\"><img src=\"/themes/{$g['theme']}/images/icons/icon_pass.gif\"></td>";
+ echo "<tr><td bgcolor=\"#D9DEE8\"><img src=\"/themes/{$g['theme']}/images/icons/icon_pass.gif\" alt=\"pass\" /></td>";
echo "<td bgcolor=\"#D9DEE8\">$result</td></tr>";
} else {
- echo "<tr><td bgcolor=\"#FFD9D1\"><img src=\"/themes/{$g['theme']}/images/icons/icon_block.gif\"></td>";
+ echo "<tr><td bgcolor=\"#FFD9D1\"><img src=\"/themes/{$g['theme']}/images/icons/icon_block.gif\" alt=\"block\" /></td>";
echo "<td bgcolor=\"#FFD9D1\">$result</td></tr>";
}
}
- echo "</table></p>";
+ echo "</table>";
}
}
include("fend.inc");
?>
+</body>
+</html>
OpenPOWER on IntegriCloud