summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-02-19 12:38:56 -0800
committerN0YB <Al_Stu@Frontier.com>2014-02-19 12:38:56 -0800
commit55e41a9832803d51d1ab09475c708423f00ea564 (patch)
tree1d533b9d8fe0cbc9443da05bcfae1ac4378a28a9
parent47f7842f80ec52081bce27e9230203763adb0064 (diff)
downloadpfsense-55e41a9832803d51d1ab09475c708423f00ea564.zip
pfsense-55e41a9832803d51d1ab09475c708423f00ea564.tar.gz
XHTML Compliance
Traffic Graph Status
-rwxr-xr-xusr/local/www/status_graph.php28
1 files changed, 16 insertions, 12 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index f9cf9df..911652e 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -117,7 +117,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript" type="text/javascript">
-
+//<![CDATA[
function updateBandwidth(){
var hostinterface = jQuery("#if").val();
var sorting = jQuery("#sort").val();
@@ -191,7 +191,7 @@ function updateBandwidthHosts(data){
setTimeout('updateBandwidth()', 1000);
}
-
+//]]>
</script>
<?php include("fbegin.inc"); ?>
@@ -208,7 +208,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
<?php
foreach ($ifdescrs as $ifn => $ifd) {
echo "<option value=\"$ifn\"";
- if ($ifn == $curif) echo " selected";
+ if ($ifn == $curif) echo " selected=\"selected\"";
echo ">" . htmlspecialchars($ifd) . "</option>\n";
}
?>
@@ -216,25 +216,29 @@ foreach ($ifdescrs as $ifn => $ifd) {
, Sort by:
<select id="sort" name="sort" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
<option value="">Bw In</option>
- <option value="out"<?php if ($cursort == "out") echo " selected";?>>Bw Out</option>
+ <option value="out"<?php if ($cursort == "out") echo " selected=\"selected\"";?>>Bw Out</option>
</select>
, Filter:
<select id="filter" name="filter" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
- <option value="local"<?php if ($curfilter == "local") echo " selected";?>>Local</option>
- <option value="remote"<?php if ($curfilter == "remote") echo " selected";?>>Remote</option>
- <option value="all"<?php if ($curfilter == "all") echo " selected";?>>All</option>
+ <option value="local"<?php if ($curfilter == "local") echo " selected=\"selected\"";?>>Local</option>
+ <option value="remote"<?php if ($curfilter == "remote") echo " selected=\"selected\"";?>>Remote</option>
+ <option value="all"<?php if ($curfilter == "all") echo " selected=\"selected\"";?>>All</option>
</select>
, Display:
<select id="hostipformat" name="hostipformat" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
<option value="">IP Address</option>
- <option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected";?>>Host Name</option>
- <option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected";?>>FQDN</option>
+ <option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected=\"selected\"";?>>Host Name</option>
+ <option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected=\"selected\"";?>>FQDN</option>
</select>
</form>
-<p>
+<p/>
<div id="niftyOutter">
<div id="col1" style="float: left; width: 46%; padding: 5px; position: relative;">
- <embed src="graph.php?ifnum=<?=htmlspecialchars($curif);?>&ifname=<?=rawurlencode($ifdescrs[htmlspecialchars($curif)]);?>" type="image/svg+xml" width="<?=$width;?>" height="<?=$height;?>" pluginspage="http://www.adobe.com/svg/viewer/install/auto" />
+ <object
+ data="graph.php?ifnum=<?=htmlspecialchars($curif);?>&amp;ifname=<?=rawurlencode($ifdescrs[htmlspecialchars($curif)]);?>"
+ type="image/svg+xml"
+ width="<?=$width;?>" height="<?=$height;?>" >
+ </object>
</div>
<div id="col2" style="float: right; width: 48%; padding: 5px; position: relative;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -327,7 +331,7 @@ foreach ($ifdescrs as $ifn => $ifd) {
</div>
<div style="clear: both;"></div>
</div>
-<p><span class="red"><strong><?=gettext("Note"); ?>:</strong></span> <?=gettext("the"); ?> <a href="http://www.adobe.com/svg/viewer/install/" target="_blank"><?=gettext("Adobe SVG Viewer"); ?></a>, <?=gettext("Firefox 1.5 or later or other browser supporting SVG is required to view the graph"); ?>.
+<p/><span class="red"><strong><?=gettext("Note"); ?>:</strong></span> <?=gettext("the"); ?> <a href="http://www.adobe.com/svg/viewer/install/" target="_blank"><?=gettext("Adobe SVG Viewer"); ?></a>, <?=gettext("Firefox 1.5 or later or other browser supporting SVG is required to view the graph"); ?>.
<?php include("fend.inc"); ?>
OpenPOWER on IntegriCloud