diff --git a/html/includes/graphs/port/etherlike.inc.php b/html/includes/graphs/port/etherlike.inc.php
index 073dae197..2f0355556 100644
--- a/html/includes/graphs/port/etherlike.inc.php
+++ b/html/includes/graphs/port/etherlike.inc.php
@@ -21,7 +21,8 @@ if (is_file($rrd_filename))
$rrd_list[$i]['rra'] = $oid_rra;
$i++;
}
-} else { echo("file missing: $file"); }
+}
+#} else { echo("file missing: $file"); }
$colours = "mixed";
$nototal = 1;
@@ -29,4 +30,4 @@ $unit_text = "Errors";
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
-?>
\ No newline at end of file
+?>
diff --git a/html/includes/print-vrf.inc.php b/html/includes/print-vrf.inc.php
index 0a5d2f451..a92c6ac9a 100644
--- a/html/includes/print-vrf.inc.php
+++ b/html/includes/print-vrf.inc.php
@@ -12,17 +12,17 @@ echo('
');
$ports_query = mysql_query("SELECT * FROM ports WHERE `device_id` = '" . $device['device_id'] . "' AND `ifVrf` = '" . $vrf['vrf_id'] . "' ");
while ($port = mysql_fetch_assoc($ports_query))
{
- if ($_GET['opta'])
+ if ($_GET['opta'] == "graphs")
{
- $graph_type = "port_" . $_GET['opta'];
+ $graph_type = "port_" . $_GET['optb'];
echo("\
".$port['ifAlias']." \
- \
+ \
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
- "
+ "
".truncate(short_port_descr($port['ifAlias']), 22, '')."
");
@@ -35,4 +35,4 @@ while ($port = mysql_fetch_assoc($ports_query))
echo(" | ");
echo("");
-?>
\ No newline at end of file
+?>
diff --git a/html/pages/device/vrfs.inc.php b/html/pages/device/vrfs.inc.php
index db08ebd5a..647f6b673 100644
--- a/html/pages/device/vrfs.inc.php
+++ b/html/pages/device/vrfs.inc.php
@@ -2,13 +2,47 @@
print_optionbar_start();
-echo("
-Basic | Graphs :
-Bits |
-Packets |
-NU Packets |
-Errors
- ");
+$menu_options = array('basic' => 'Basic',
+ );
+
+if (!$_GET['opta']) { $_GET['opta'] = "basic"; }
+
+$sep = "";
+foreach ($menu_options as $option => $text)
+{
+ echo($sep);
+ if ($_GET['opta'] == $option) { echo(""); }
+ $sep = " | ";
+}
+
+unset($sep);
+
+echo(' Graphs: ');
+
+$graph_types = array("bits" => "Bits",
+ "upkts" => "Unicast Packets",
+ "nupkts" => "Non-Unicast Packets",
+ "errors" => "Errors",
+ "etherlike" => "Etherlike");
+
+foreach ($graph_types as $type => $descr)
+{
+ echo("$type_sep");
+ if ($_GET['optb'] == $type) { echo(""); }
+
+# echo('(');
+# if ($_GET['optb'] == $type) { echo(""); }
+# echo(')');
+ $type_sep = " | ";
+}
+
print_optionbar_end();
echo("");
@@ -22,4 +56,4 @@ while ($vrf = mysql_fetch_assoc($vrf_query))
echo("
");
-?>
\ No newline at end of file
+?>