fix BGP pages

git-svn-id: http://www.observium.org/svn/observer/trunk@353 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-03-11 15:30:01 +00:00
parent dfcf7756dc
commit 98ba6a4f83
2 changed files with 15 additions and 14 deletions

View File

@@ -1,22 +1,23 @@
<?php
if($_GET['opta'] == "graphs" || $_GET['opta'] == "graphs") {
if($_GET['optb'] == "graphs" || $_GET['idb'] == "graphs") {
$graphs = 1;
} else {
$graphs = 0;
}
echo("
<div style='float: right; text-align: right;'>
<a href='/device/" . $_GET['id'] . "/bgp/'>No Graphs</a> |
<a href='/device/" . $_GET['id'] . "/bgp/graphs/'>Graphs</a>
<div style='padding: 5px; height: 20px; clear: both; display: block;'>
<div style='float: left; font-size: 22px; font-weight: bold;'>Local AS : " . $device['bgpLocalAs'] . "</div>
<div style='float: right; text-align: right;'>
<a href='/device/" . $_GET['id'] . "/bgp/'>No Graphs</a> |
<a href='/device/" . $_GET['id'] . "/bgp/graphs/'>Graphs</a>
</div>
</div>");
echo("<div style='margin: 5px;'><table border=0 cellspacing=1 cellpadding=5 width=100%>");
echo("<tr><td colspan=6><h2>Local AS : " . $device['bgpLocalAs'] . "</h2></td></tr>");
$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)) {