summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-04-01 16:55:55 +0100
committerColin Fleming <cj_fleming@sky.com>2014-04-01 16:55:55 +0100
commitbd42727d067c30228ee648f782a8eb71d8fa1202 (patch)
tree450ba7df12e7ce8569bc878c43a8962b90e56c35 /usr/local/www/widgets/widgets
parentef322f451144f933bb9f7d1ab2f34f7b9d90a014 (diff)
downloadpfsense-bd42727d067c30228ee648f782a8eb71d8fa1202.zip
pfsense-bd42727d067c30228ee648f782a8eb71d8fa1202.tar.gz
Tidy up "system_information.widget.php" XHTML
Add CDATA secttions to script Remove link to CSS file and place it in HEAD.INC and add "type"
Diffstat (limited to 'usr/local/www/widgets/widgets')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index cf1ebe8..2cb00f2 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -71,10 +71,11 @@ if($_REQUEST['getupdatestatus']) {
$needs_system_upgrade = false;
if (pfs_version_compare($current_installed_buildtime, $current_installed_version, $remote_version) == -1) {
echo "<br /><span class=\"red\" id=\"updatealert\"><b>Update available. </b></span><a href=\"/system_firmware_check.php\">Click Here</a> to view update.";
- echo "<script type=\"text/javascript\">";
- echo "jQuery('#updatealert').effect('pulsate',{times: 30},10000);";
-
- echo "</script>";
+ echo "\n<script type=\"text/javascript\">\n";
+ echo "//<![CDATA[\n";
+ echo "jQuery('#updatealert').effect('pulsate',{times: 30},10000);\n";
+ echo "//]]>\n";
+ echo "</script>\n";
} else
echo "<br />You are on the latest version.";
}
@@ -86,6 +87,7 @@ $curcfg = $config['system']['firmware'];
?>
<script type="text/javascript">
+//<![CDATA[
jQuery(function() {
jQuery("#statePB").progressbar( { value: <?php echo get_pfstate(true); ?> } );
jQuery("#mbufPB").progressbar( { value: <?php echo get_mbuf(true); ?> } );
@@ -100,8 +102,8 @@ $curcfg = $config['system']['firmware'];
jQuery("#tempPB").progressbar( { value: <?php echo get_temp(); ?> } );
<?php endif; ?>
});
+//]]>
</script>
-<link rel="stylesheet" href="javascript/jquery/jquery-ui.custom.css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="system information">
<tbody>
OpenPOWER on IntegriCloud