'.$text."";
foreach (array('day','week','month','year') as $period)
{
$graph_array['from'] = $config['time'][$period];
@@ -421,9 +421,9 @@ function generate_port_thumbnail($args)
function print_optionbar_start ($height = 0, $width = 0, $marginbottom = 5)
{
echo("
-
");
+ padding: 7px 14px 8px 14px'>");
}
function print_optionbar_end()
diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php
index a8b2d06b8..55084ca22 100644
--- a/html/pages/graphs.inc.php
+++ b/html/pages/graphs.inc.php
@@ -31,7 +31,12 @@ if (!$auth)
{
include("includes/error-no-perm.inc.php");
} else {
- if (isset($config['graph_types'][$type][$subtype]['descr'])) { $title .= " :: ".$config['graph_types'][$type][$subtype]['descr']; } else { $title .= " :: ".$graph_type; }
+ if (isset($config['graph_types'][$type][$subtype]['descr']))
+ {
+ $title .= " :: ".$config['graph_types'][$type][$subtype]['descr'];
+ } else {
+ $title .= " :: ".ucfirst($subtype);
+ }
$graph_array = $vars;
$graph_array['height'] = "60";
diff --git a/html/pages/ports.inc.php b/html/pages/ports.inc.php
index d3b94fc3f..aa1f2023c 100644
--- a/html/pages/ports.inc.php
+++ b/html/pages/ports.inc.php
@@ -35,14 +35,6 @@ foreach (dbFetchRows("SELECT `device_id`,`hostname` FROM `devices` GROUP BY `hos
-
-
-
-
-
-
-
-
@@ -271,6 +263,12 @@ foreach($vars as $var => $value)
$where .= " AND I.$var LIKE ?";
$param[] = "%".$value."%";
break;
+ case 'errors':
+ if ($value == 1)
+ {
+ $where .= " AND (I.`ifInErrors_delta` > '0' OR I.`ifOutErrors_delta` > '0')";
+ }
+ break;
case 'state':
if ($value == "down")
{
diff --git a/html/pages/ports/graph.inc.php b/html/pages/ports/graph.inc.php
index ca1f93cb6..e6ed1f8e1 100644
--- a/html/pages/ports/graph.inc.php
+++ b/html/pages/ports/graph.inc.php
@@ -34,7 +34,7 @@ foreach ($ports as $port)
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
- $overlib_content = generate_overlib_content($graph_array, $device['hostname'] . " - " . $port['ifDescr']);
+ $overlib_content = generate_overlib_content($graph_array, $port['hostname'] . " - " . $port['label']);
$graph_array['title'] = "yes";
$graph_array['width'] = 315; $graph_array['height'] = 119;
$graph = generate_graph_tag($graph_array);