From 342acf50f151b54ff914e1cb4c40a23d00f35a57 Mon Sep 17 00:00:00 2001 From: ckforum <51302037+ckforum@users.noreply.github.com> Date: Sat, 22 Jun 2019 05:44:47 +0200 Subject: [PATCH] Add 2 css class graph - minigraph for bg color and other (#10318) * Add 2 class for graph / mini graph (styles.css) Add 2 class for graph / mini graph (styles.css) for changing bg color and more (mini graph port / device) (graph port / general) * Update styles.css Add 2 class for graph / mini graph (styles.css) for changing bg color and more (mini graph port / device) (graph port / general) * Add class CSS for mini graph Add class CSS for mini graph * Update graph.inc.php Change graph.inc.php, add css class / overlib * restore original bg #f5f5f5 .graph-all-common restore original bg #f5f5f5 .graph-all-common * Update ports.inc.php correct extra \ * Update graph.inc.php * Update ports.inc.php * Update ports.inc.php * Update graph.inc.php * Comment line 88 URL.php, because description of location enlarge too much overlib devices's title * Update Url.php * Update Url.php Line 88 -> re ident to pass travis... --- html/css/styles.css | 26 ++++++++++++++++++++++++ includes/html/pages/device/ports.inc.php | 10 ++++----- includes/html/pages/ports/graph.inc.php | 2 +- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 27b565edcf..a110eaa9bb 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -348,6 +348,17 @@ A.purple:visited, a.purple, .purple { color: #740074; } color: #555; } +.graph-all-common { + display: block; + padding: 1px; + margin: 2px; + min-height:180px; + max-height:180px; + text-align: center; + float: left; + background-color: #f5f5f5; +} + .tablehead { font-weight: bold; font-size: 13px; @@ -1542,6 +1553,21 @@ tr.search:nth-child(odd) { margin: 2px; } +.minigraph-div { + display: block; + padding: 3px; + margin: 3px; + min-width: 183px; + max-width: 183px; + min-height: 90px; + max-height: 90px; + text-align: center; + float: left; + background-color: #e9e9e9; + border: solid 1px; + border-color: #e9e9e9; +} + .example-sports .league-name { margin: 0 20px 5px 20px; padding: 3px 0; diff --git a/includes/html/pages/device/ports.inc.php b/includes/html/pages/device/ports.inc.php index cdf4742092..df50e1dda9 100644 --- a/includes/html/pages/device/ports.inc.php +++ b/includes/html/pages/device/ports.inc.php @@ -104,12 +104,10 @@ if ($vars['view'] == 'minigraphs') { // FIXME - FIX THIS. UGLY. foreach (dbFetchRows('select * from ports WHERE device_id = ? AND `disabled` = 0 ORDER BY ifIndex', array($device['device_id'])) as $port) { $port = cleanPort($port, $device); - echo "