From e394048ee43f570f16d0d1289392c14889afc7d6 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 26 Sep 2011 12:16:05 +0000 Subject: [PATCH] css changes. fixes to graph browser. git-svn-id: http://www.observium.org/svn/observer/trunk@2573 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/css/styles.css | 10 +++++++++- html/includes/functions.inc.php | 6 +++--- html/pages/graphs.inc.php | 7 ++++++- html/pages/ports.inc.php | 14 ++++++-------- html/pages/ports/graph.inc.php | 2 +- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 7ecbe970b8..d0541304af 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -49,7 +49,10 @@ ul ul ul { list-style: square outside; } .pagemenu-selected { font-weight: bold; - background-color: #cecece; + background-color: #dfdfdf; + + border: 1px solid #c0c0c0; + margin: -1px; padding:3px 8px 4px 8px; @@ -58,6 +61,11 @@ ul ul ul { list-style: square outside; } -webkit-border-radius: 10px; border-radius: 10px; + -webkit-box-shadow: #CCC 0 0 2px; + -moz-box-shadow: #CCC 0 0 2px; + box-shadow: #CCC 0 0 2px; + + } .submit { diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 7ad6077167..688c4584c5 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -82,7 +82,7 @@ function generate_overlib_content($graph_array, $text) { global $config; - $overlib_content = '
'.$text.""; + $overlib_content = '
'.$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 a8b2d06b82..55084ca22e 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 d3b94fc3fc..aa1f2023c3 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 ca1f93cb62..e6ed1f8e15 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);