From 98ba6a4f83557d50c8b27c6b0bc496a454b61a80 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 11 Mar 2009 15:30:01 +0000 Subject: [PATCH] fix BGP pages git-svn-id: http://www.observium.org/svn/observer/trunk@353 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device.php | 16 ++++++++-------- html/pages/device/bgp.inc.php | 13 +++++++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/html/pages/device.php b/html/pages/device.php index c3d47a824..f17100f6b 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -30,6 +30,13 @@ echo(" "); +echo("
  • + + Graphs + +
  • +"); + if(@mysql_result(mysql_query("select count(vlan_id) from vlans WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0') { echo("
  • @@ -76,19 +83,12 @@ if($_SESSION[userlevel] >= "5") { echo("
  • - Port Map + Map
  • "); } -echo("
  • - - Host Graphs - -
  • -"); - if($config['enable_inventory'] && @mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') { echo("
  • diff --git a/html/pages/device/bgp.inc.php b/html/pages/device/bgp.inc.php index b959a36ce..b14936ae5 100644 --- a/html/pages/device/bgp.inc.php +++ b/html/pages/device/bgp.inc.php @@ -1,22 +1,23 @@ -No Graphs | -Graphs +
    +
    Local AS : " . $device['bgpLocalAs'] . "
    +
    + No Graphs | + Graphs +
    "); echo("
    "); - echo(""); - $i = "1"; $peer_query = mysql_query("select * from bgpPeers WHERE device_id = '".$device['device_id']."' ORDER BY bgpPeerRemoteAs, bgpPeerIdentifier"); while($peer = mysql_fetch_array($peer_query)) {

    Local AS : " . $device['bgpLocalAs'] . "