mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `ospf_instances` WHERE `ospfAdminStat` = 'enabled'";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
$i_i = "0";
|
||||
|
||||
echo('<table width=100% border=0 cellpadding=10>');
|
||||
@@ -10,7 +7,7 @@ echo('<tr><th>Device</th><th>Router Id</th><th>Status</th><th>ABR</th><th>ASBR</
|
||||
|
||||
#### Loop Instances
|
||||
|
||||
while ($instance = mysql_fetch_assoc($query))
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `ospfAdminStat` = 'enabled'") as $instance)
|
||||
{
|
||||
if (!is_integer($i_i/2)) { $instance_bg = $list_colour_a; } else { $instance_bg = $list_colour_b; }
|
||||
|
||||
|
@@ -53,9 +53,8 @@ if($_GET['optb'] == "all" ) {
|
||||
echo("<td width=100 class=box-desc>" . $vrf['mplsVpnVrfRouteDistinguisher'] . "</td>");
|
||||
#echo("<td width=200 class=box-desc>" . $vrf['mplsVpnVrfDescription'] . "</td>");
|
||||
echo("<td><table border=0 cellspacing=0 cellpadding=5 width=100%>");
|
||||
$devices = mysql_query("SELECT * FROM `vrfs` AS V, `devices` AS D WHERE `mplsVpnVrfRouteDistinguisher` = '".$vrf['mplsVpnVrfRouteDistinguisher']."' AND D.device_id = V.device_id");
|
||||
$x=1;
|
||||
while ($device = mysql_fetch_assoc($devices))
|
||||
foreach (dbFetchRows("SELECT * FROM `vrfs` AS V, `devices` AS D WHERE `mplsVpnVrfRouteDistinguisher` = ? AND D.device_id = V.device_id", array($vrf['mplsVpnVrfRouteDistinguisher'])) as $device)
|
||||
{
|
||||
if (!is_integer($i/2))
|
||||
{
|
||||
|
Reference in New Issue
Block a user