summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_filemanager.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-04-03 16:06:59 +0100
committerColin Fleming <cj_fleming@sky.com>2014-04-03 16:06:59 +0100
commitad7af00be8ded868b9ace6ae0ca0aaf24d177879 (patch)
tree26a31643c5cc85a847945c248a7f02dbcfd5d1f5 /usr/local/www/services_captiveportal_filemanager.php
parenta4b1bf88bbdc0b05f39c5dcca245ccf3f0563f7d (diff)
downloadpfsense-ad7af00be8ded868b9ace6ae0ca0aaf24d177879.zip
pfsense-ad7af00be8ded868b9ace6ae0ca0aaf24d177879.tar.gz
Tidy up "services_captiveportal_filemanager" XHTM
Swap BODY and ph statement Add SUMMARY to tables Deprecate ampersand Close IMG and add ALT Move NOWRAP to class Close INPUT
Diffstat (limited to 'usr/local/www/services_captiveportal_filemanager.php')
-rw-r--r--usr/local/www/services_captiveportal_filemanager.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/services_captiveportal_filemanager.php b/usr/local/www/services_captiveportal_filemanager.php
index 80572df..c6eab15 100644
--- a/usr/local/www/services_captiveportal_filemanager.php
+++ b/usr/local/www/services_captiveportal_filemanager.php
@@ -135,12 +135,12 @@ if ($_POST) {
include("head.inc");
?>
-<?php include("fbegin.inc"); ?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<?php include("fbegin.inc"); ?>
<form action="services_captiveportal_filemanager.php" method="post" enctype="multipart/form-data" name="iform" id="iform">
<input type="hidden" name="zone" id="zone" value="<?=htmlspecialchars($cpzone);?>" />
<?php if ($input_errors) print_input_errors($input_errors); ?>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="captiveportal file manager">
<tr><td class="tabnavtbl">
<?php
$tab_array = array();
@@ -154,15 +154,15 @@ include("head.inc");
?> </td></tr>
<tr>
<td class="tabcont">
- <table width="80%" border="0" cellpadding="0" cellspacing="0">
+ <table width="80%" border="0" cellpadding="0" cellspacing="0" summary="main">
<tr>
<td width="70%" class="listhdrr"><?=gettext("Name"); ?></td>
<td width="20%" class="listhdr"><?=gettext("Size"); ?></td>
<td width="10%" class="list">
- <table border="0" cellspacing="0" cellpadding="1">
+ <table border="0" cellspacing="0" cellpadding="1" summary="icons">
<tr>
<td width="17" height="17"></td>
- <td><a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&act=add"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add file"); ?>" width="17" height="17" border="0"></a></td>
+ <td><a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&amp;act=add"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add file"); ?>" width="17" height="17" border="0" alt="add" /></a></td>
</tr>
</table>
</td>
@@ -173,7 +173,7 @@ include("head.inc");
<td class="listlr"><?=htmlspecialchars($element['name']);?></td>
<td class="listr" align="right"><?=format_bytes($element['size']);?></td>
<td valign="middle" nowrap class="list">
- <a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this file?"); ?>')"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete file"); ?>" width="17" height="17" border="0"></a>
+ <a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&amp;act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this file?"); ?>')"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete file"); ?>" width="17" height="17" border="0" alt="delete" /></a>
</td>
</tr>
<?php $i++; endforeach; endif; ?>
@@ -182,26 +182,26 @@ include("head.inc");
<tr>
<td class="listlr" style="background-color: #eee"><strong><?=gettext("TOTAL"); ?></strong></td>
<td class="listr" style="background-color: #eee" align="right"><strong><?=format_bytes($total_size);?></strong></td>
- <td valign="middle" nowrap class="list"></td>
+ <td valign="middle" class="list nowrap"></td>
</tr>
<?php endif; ?>
<?php if ($_GET['act'] == 'add'): ?>
<tr>
- <td class="listlr" colspan="2"><input type="file" name="new" class="formfld file" size="40" id="new">
- <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Upload"); ?>"></td>
- <td valign="middle" nowrap class="list">
- <a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("cancel"); ?>" width="17" height="17" border="0"></a>
+ <td class="listlr" colspan="2"><input type="file" name="new" class="formfld file" size="40" id="new" />
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Upload"); ?>" /></td>
+ <td valign="middle" class="list nowrap">
+ <a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("cancel"); ?>" width="17" height="17" border="0" alt="delete" /></a>
</td>
</tr>
<?php else: ?>
<tr>
<td class="list" colspan="2"></td>
<td class="list">
- <table border="0" cellspacing="0" cellpadding="1">
+ <table border="0" cellspacing="0" cellpadding="1" summary="add">
<tr>
<td width="17" height="17"></td>
- <td><a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&act=add"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add file"); ?>" width="17" height="17" border="0"></a></td>
+ <td><a href="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&amp;act=add"><img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add file"); ?>" width="17" height="17" border="0" alt="add" /></a></td>
</tr>
</table>
</td>
@@ -221,7 +221,7 @@ include("head.inc");
<?=gettext("In addition, you can also upload .php files for execution. You can pass the filename " .
"to your custom page from the initial page by using text similar to:"); ?>
<br /><br />
- <tt>&lt;a href="/captiveportal-aup.php?zone=$PORTAL_ZONE$&redirurl=$PORTAL_REDIRURL$"&gt;<?=gettext("Acceptable usage policy"); ?>&lt/a&gt;</tt>
+ <tt>&lt;a href="/captiveportal-aup.php?zone=$PORTAL_ZONE$&amp;redirurl=$PORTAL_REDIRURL$"&gt;<?=gettext("Acceptable usage policy"); ?>&lt/a&gt;</tt>
<br /><br />
<?php printf(gettext("The total size limit for all files is %s."), format_bytes($g['captiveportal_element_sizelimit']));?></span>
</td>
OpenPOWER on IntegriCloud