syntaxer run

git-svn-id: http://www.observium.org/svn/observer/trunk@2969 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-05 16:48:06 +00:00
parent 2b6581f25d
commit 866c352c5f
6 changed files with 13 additions and 14 deletions

View File

@ -92,9 +92,9 @@ if ($device['os'] == "ios" || $device['os'] == "iosxe")
echo('<p class=box-desc><span class=purple><a title="');
$vlans = dbFetchRows("SELECT * FROM `ports_vlans` AS PV, vlans AS V WHERE PV.`interface_id` ='".$port['interface_id']."' and PV.`device_id` = '".$device['device_id']."' AND V.`vlan_vlan` = PV.vlan AND V.device_id = PV.device_id");
foreach($vlans as $vlan)
foreach ($vlans as $vlan)
{
if($vlan['state'] == "blocking") { $class="red"; } elseif ($vlan['state'] == "forwarding" ) { $class="green"; } else { $class = "none"; }
if ($vlan['state'] == "blocking") { $class="red"; } elseif ($vlan['state'] == "forwarding" ) { $class="green"; } else { $class = "none"; }
echo("<b class=".$class.">".$vlan['vlan'] ."</b> ".$vlan['vlan_descr']."<br />");
}
echo('">'.$port['ifTrunk'].'</a></span></p>');