diff --git a/html/css/styles.css b/html/css/styles.css index 56c116842c..93ca0217b9 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -467,6 +467,18 @@ a.list-device-disabled, a.list-device-disabled:visited { color: #999999; } +.front-page { + padding: 3px 10px; + background: #fff; +} + +.front-page-bgp-normal { +} + +.front-page-bgp-small { + font-size: 10px; +} + .front-box { text-align: center; margin: 1pt; @@ -1476,7 +1488,6 @@ tr.search:nth-child(odd) { background: #ffffff; } - .paddedcell { padding: 7px; } @@ -1489,3 +1500,18 @@ tr.search:nth-child(odd) { font-weight: bold; font-size: 16px; } + +.overlib-box { + width: 708px; +} + +.overlib-title { + margin-left: 5px; + font-size: 12px; + font-weight: bold; +} + +.minigraph-image { + margin: 2px; +} + diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 2a441fc615..d0cb2984c7 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -108,6 +108,12 @@ function get_percentage_colours($percentage) } +function generate_minigraph_image($device, $start, $end, $type, $legend = 'no', $width = 275, $height = 100) +{ + return ''; +} + function generate_device_url($device, $vars=array()) { return generate_url(array('page' => 'device', 'device' => $device['device_id']), $vars); @@ -151,10 +157,10 @@ function generate_device_link($device, $text=NULL, $vars=array(), $start=0, $end { $graph = $entry['graph']; $graphhead = $entry['text']; - $contents .= '
'; - $contents .= ''.$graphhead.'
'; - $contents .= "'; - $contents .= "'; + $contents .= '
'; + $contents .= ''.$graphhead.'
'; + $contents .= generate_minigraph_image($device, $start, $end, $graph); + $contents .= generate_minigraph_image($device, $config['time']['week'], $end, $graph); $contents .= '
'; } diff --git a/html/pages/front/default.php b/html/pages/front/default.php index 0664b23dc4..37d07381f6 100644 --- a/html/pages/front/default.php +++ b/html/pages/front/default.php @@ -7,7 +7,7 @@ echo("
"); } -echo("
"); +echo("
"); if ($_SESSION['userlevel'] == '10') { @@ -73,7 +73,7 @@ if (isset($config['enable_bgp']) && $config['enable_bgp']) { generate_front_box("bgp-down", "
".generate_device_link($peer, shorthost($peer['hostname']))."
BGP Down - ".$peer['bgpPeerIdentifier']."
+ ".$peer['bgpPeerIdentifier']."
AS".truncate($peer['bgpPeerRemoteAs']." ".$peer['astext'], 14, "")."
"); }