git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-16 12:48:50 +00:00
parent d9439aaf65
commit fc40257da9
18 changed files with 125 additions and 125 deletions

View File

@@ -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; }

View File

@@ -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))
{