summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_filter_reload.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-05-16 22:15:28 +0100
committerColin Fleming <cj_fleming@sky.com>2014-05-16 22:15:28 +0100
commit112546f8764e0c5d78f4d3e87c5c538481f469a1 (patch)
treec7661fd457cbddf8a21b3f521a38a9a92ef7d50e /usr/local/www/status_filter_reload.php
parent024068017f98572f6bd41b7ba542fc36fccee39a (diff)
downloadpfsense-112546f8764e0c5d78f4d3e87c5c538481f469a1.zip
pfsense-112546f8764e0c5d78f4d3e87c5c538481f469a1.tar.gz
Tidy up "status_filter_reload.php" XHTML
Close INPUT tags Remove NAME from DIV tags, not valid in XHTML Add CDATA section to SCRIPTS Close IMG tags and add ALT to IMG
Diffstat (limited to 'usr/local/www/status_filter_reload.php')
-rw-r--r--usr/local/www/status_filter_reload.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php
index 4575a19..9b04716 100644
--- a/usr/local/www/status_filter_reload.php
+++ b/usr/local/www/status_filter_reload.php
@@ -70,27 +70,28 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<br />
<form action="status_filter_reload.php" method="post" name="filter">
-<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter">
+<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter" />
<?php if ($config['hasync'] && $config['hasync']["synchronizetoip"] != ""): ?>
&nbsp;&nbsp;&nbsp;&nbsp;
-<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter">
+<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter" />
<?php endif; ?>
</form>
<br /><br /><br />
-<div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;">
+<div id="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;">
<?php echo $status; ?>
</div>
-<div id="doneurl" name="doneurl">
+<div id="doneurl">
</div>
-<p>
+<br/>
-<div id="reloadinfo" name="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div>
+<div id="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div>
<script type="text/javascript">
+//<![CDATA[
/* init update "thread */
function update_status_thread() {
getURL('status_filter_reload.php?getstatus=true', update_data);
@@ -102,24 +103,26 @@ function update_data(obj) {
result_text = result_text.replace("\n","");
result_text = result_text.replace("\r","");
if (result_text) {
- jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> ' + result_text + '...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> ' + result_text + '...');
} else {
- jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Obtaining filter status...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Obtaining filter status...');
}
if(result_text == "Initializing") {
- jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Initializing...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Initializing...');
} else if(result_text == "Done") {
jQuery('#status').effect('highlight');
jQuery('#status').html('Done. The filter rules have been reloaded.');
jQuery('#reloadinfo').css("visibility","hidden");
jQuery('#doneurl').css("visibility","visible");
- jQuery('#doneurl').html("<p/><a href='status_queues.php'>Queue Status</a>");
+ jQuery('#doneurl').html("<p><a href='status_queues.php'>Queue Status<\/a><\/p>");
}
window.setTimeout('update_status_thread()', 2500);
}
+//]]>
</script>
<script type="text/javascript">
+//<![CDATA[
/*
* getURL is a proprietary Adobe function, but it's simplicity has made it very
* popular. If getURL is undefined we spin our own by wrapping XMLHttpRequest.
@@ -164,6 +167,7 @@ if (typeof getURL == 'undefined') {
}
}
window.setTimeout('update_status_thread()', 2500);
+//]]>
</script>
<?php include("fend.inc"); ?>
OpenPOWER on IntegriCloud