summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_graph.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-03-07 18:53:40 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-03-07 18:53:40 +0545
commitda11e022012a72d6fb65b30c12142a19f0fbbc90 (patch)
treed434dacb49baf3d2fb33cf272e3423b504d2a9f2 /usr/local/www/status_graph.php
parenta02ce2600ca47e3dc85bea420b276330200ae9df (diff)
downloadpfsense-da11e022012a72d6fb65b30c12142a19f0fbbc90.zip
pfsense-da11e022012a72d6fb65b30c12142a19f0fbbc90.tar.gz
Bandwidth by IP - allow filter by local and remote
Diffstat (limited to 'usr/local/www/status_graph.php')
-rwxr-xr-xusr/local/www/status_graph.php22
1 files changed, 17 insertions, 5 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index ec7b73d..636f5d9 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -97,6 +97,11 @@ if ($_GET['sort']) {
} else {
$cursort = "";
}
+if ($_GET['filter']) {
+ $curfilter = $_GET['filter'];
+} else {
+ $curfilter = "";
+}
if ($_GET['hostipformat']) {
$curhostipformat = $_GET['hostipformat'];
} else {
@@ -116,12 +121,13 @@ include("head.inc");
function updateBandwidth(){
var hostinterface = jQuery("#if").val();
var sorting = jQuery("#sort").val();
+ var filter = jQuery("#filter").val();
var hostipformat = jQuery("#hostipformat").val();
- bandwidthAjax(hostinterface, sorting, hostipformat);
+ bandwidthAjax(hostinterface, sorting, filter, hostipformat);
}
-function bandwidthAjax(hostinterface, sorting, hostipformat) {
- uri = "bandwidth_by_ip.php?if=" + hostinterface + "&sort=" + sorting + "&hostipformat=" + hostipformat;
+function bandwidthAjax(hostinterface, sorting, filter, hostipformat) {
+ uri = "bandwidth_by_ip.php?if=" + hostinterface + "&sort=" + sorting + "&filter=" + filter + "&hostipformat=" + hostipformat;
var opt = {
// Use GET
type: 'get',
@@ -211,8 +217,14 @@ foreach ($ifdescrs as $ifn => $ifd) {
</select>
, Sort by:
<select id="sort" name="sort" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
- <option value="">Bandwidth In</option>
- <option value="out"<?php if ($cursort == "out") echo " selected";?>>Bandwidth Out</option>
+ <option value="">Bw In</option>
+ <option value="out"<?php if ($cursort == "out") echo " selected";?>>Bw Out</option>
+</select>
+, Filter:
+<select id="filter" name="filter" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
+ <option value="">All</option>
+ <option value="local"<?php if ($curfilter == "local") echo " selected";?>>Local</option>
+ <option value="remote"<?php if ($curfilter == "remote") echo " selected";?>>Remote</option>
</select>
, Display:
<select id="hostipformat" name="hostipformat" class="formselect" style="z-index: -10;" onchange="document.form1.submit()">
OpenPOWER on IntegriCloud