summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_system_activity.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-05-17 18:18:09 +0100
committerColin Fleming <cj_fleming@sky.com>2014-05-17 18:18:09 +0100
commitf74c828f2dff2a4901fe91d0a4a2d22f2df5a863 (patch)
treef19bac87b906b2f98726410fc497c18f6516a502 /usr/local/www/diag_system_activity.php
parent024068017f98572f6bd41b7ba542fc36fccee39a (diff)
downloadpfsense-f74c828f2dff2a4901fe91d0a4a2d22f2df5a863.zip
pfsense-f74c828f2dff2a4901fe91d0a4a2d22f2df5a863.tar.gz
Tidy up "diag_system_activity.php" XHTML
Move PHP "fbegin.inc" between BODY and SCRIPT Add CDATA sections to SCRIPTS Merge FONT tags and escape closing PRE and FONT Move closing DIV tag to outside the TABLE tag
Diffstat (limited to 'usr/local/www/diag_system_activity.php')
-rw-r--r--usr/local/www/diag_system_activity.php31
1 files changed, 15 insertions, 16 deletions
diff --git a/usr/local/www/diag_system_activity.php b/usr/local/www/diag_system_activity.php
index d62e7cb..cc5cc69 100644
--- a/usr/local/www/diag_system_activity.php
+++ b/usr/local/www/diag_system_activity.php
@@ -53,8 +53,9 @@ include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-
+<?php include("fbegin.inc"); ?>
<script type="text/javascript">
+//<![CDATA[
function getcpuactivity() {
scroll(0,0);
var url = "/diag_system_activity.php";
@@ -68,44 +69,42 @@ include("head.inc");
});
}
function activitycallback(transport) {
- jQuery('#cpuactivitydiv').html('<font face="Courier"><font size="2"><b><pre style="text-align:left;">' + transport.responseText + '</pre></font>');
- setTimeout('getcpuactivity()', 2500);
+ jQuery('#cpuactivitydiv').html('<font face="Courier" size="2"><pre style="text-align:left;">' + transport.responseText + '<\/pre><\/font>');
+ setTimeout('getcpuactivity()', 2500);
}
- setTimeout('getcpuactivity()', 1000);
+ setTimeout('getcpuactivity()', 1000);
+//]]>
</script>
-<div id='maincontent'>
+<div id="maincontent">
<?php
- include("fbegin.inc");
if($savemsg) {
- echo "<div id='savemsg'>";
+ echo "<div id=\"savemsg\">";
print_info_box($savemsg);
echo "</div>";
}
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="diag system activity">
<tr>
<td>
- <table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0">
+ <table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="tabcont">
<tr>
- <td>
- <center>
- <table>
+ <td align="center">
+ <table summary="results">
<tr><td>
- <div name='cpuactivitydiv' id='cpuactivitydiv'>
- <b><?=gettext("Gathering CPU activity, please wait...");?>
+ <div id="cpuactivitydiv">
+ <?=gettext("Gathering CPU activity, please wait...");?>
</div>
</td></tr>
</table>
</td>
</tr>
</table>
- </div>
</td>
</tr>
</table>
-</form>
+</div>
<?php include("fend.inc"); ?>
</body>
</html>
OpenPOWER on IntegriCloud