mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	fix BGP pages
git-svn-id: http://www.observium.org/svn/observer/trunk@353 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user