From 314937de141268de377f8e46f1ea401256c46e8d Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 29 Nov 2011 10:34:18 +0000 Subject: [PATCH] location bits! git-svn-id: http://www.observium.org/svn/observer/trunk@2742 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/location/auth.inc.php | 13 ++++++ html/includes/graphs/location/bits.inc.php | 50 ++++++++++++++++++++++ html/pages/device/routing/cef.inc.php | 30 ++++++------- 3 files changed, 77 insertions(+), 16 deletions(-) create mode 100644 html/includes/graphs/location/auth.inc.php create mode 100644 html/includes/graphs/location/bits.inc.php diff --git a/html/includes/graphs/location/auth.inc.php b/html/includes/graphs/location/auth.inc.php new file mode 100644 index 0000000000..b266d7e5e4 --- /dev/null +++ b/html/includes/graphs/location/auth.inc.php @@ -0,0 +1,13 @@ + diff --git a/html/includes/graphs/location/bits.inc.php b/html/includes/graphs/location/bits.inc.php new file mode 100644 index 0000000000..c8296d4b98 --- /dev/null +++ b/html/includes/graphs/location/bits.inc.php @@ -0,0 +1,50 @@ + diff --git a/html/pages/device/routing/cef.inc.php b/html/pages/device/routing/cef.inc.php index 1649976a1e..4cc5e68885 100644 --- a/html/pages/device/routing/cef.inc.php +++ b/html/pages/device/routing/cef.inc.php @@ -2,26 +2,24 @@ print_optionbar_start(); -$menu_options = array('basic' => 'Basic', - 'graphs' => 'Graphs', - ); +$link_array = array('page' => 'device', + 'device' => $device['device_id'], + 'tab' => 'routing', + 'proto' => 'cef'); -if (!$_GET['optb']) { $_GET['optb'] = "basic"; } +if(!isset($vars['view'])) { $vars['view'] = "basic"; } echo('CEF » '); -$sep = ""; -foreach ($menu_options as $option => $text) -{ - echo($sep); - if ($_GET['optb'] == $option) { echo(""); } - echo('' . $text - . ''); - if ($_GET['optb'] == $option) { echo(""); } - $sep = " | "; -} +if ($vars['view'] == "basic") { echo(""); } +echo(generate_link("Basic", $link_array,array('view'=>'basic'))); +if ($vars['view'] == "basic") { echo(""); } -unset($sep); +echo(" | "); + +if ($vars['view'] == "graphs") { echo(""); } +echo(generate_link("Graphs", $link_array,array('view'=>'graphs'))); +if ($vars['view'] == "graphs") { echo(""); } print_optionbar_end(); @@ -87,7 +85,7 @@ foreach (dbFetchRows("SELECT * FROM `cef_switching` WHERE `device_id` = ? ORDER echo(" "); - if ($_GET['optb'] == "graphs") + if ($vars['view'] == "graphs") { $graph_array['height'] = "100"; $graph_array['width'] = "215";