fixes to routing/vrf/ menu and remove erroneous ) from print-vrf

git-svn-id: http://www.observium.org/svn/observer/trunk@2297 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-13 09:45:05 +00:00
parent c156c75b0a
commit f355e33b64
2 changed files with 6 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ echo("<td width=150 class=box-desc>" . $vrf['mplsVpnVrfDescription'] . "</td>");
echo("<td width=100 class=box-desc>" . $vrf['mplsVpnVrfRouteDistinguisher'] . "</td>");
echo('<td class="list-bold">');
foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVrf` = ?", array($device['device_id'], $vrf['vrf_id'])) as $port))
foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVrf` = ?", array($device['device_id'], $vrf['vrf_id'])) as $port)
{
if ($_GET['optb'] == "graphs")
{

View File

@@ -10,12 +10,11 @@ if (!$_GET['opta']) { $_GET['opta'] = "basic"; }
$sep = "";
foreach ($menu_options as $option => $text)
{
echo($sep);
if ($_GET['opta'] == $option) { echo("<span class='pagemenu-selected'>"); }
echo('<a href="device/' . $device['device_id'] . '/routing/vrf/' . $option . ($_GET['optc'] ? '/' . $_GET['optc'] : ''). '/">' . $text
if ($_GET['optb'] == $option) { echo("<span class='pagemenu-selected'>"); }
echo('<a href="device/' . $device['device_id'] . '/routing/vrf/' . $option . '/">' . $text
. '</a>');
if ($_GET['opta'] == $option) { echo("</span>"); }
$sep = " | ";
if ($_GET['optb'] == $option) { echo("</span>"); }
echo(" | ");
}
unset($sep);
@@ -47,8 +46,7 @@ print_optionbar_end();
echo("<div style='margin: 5px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>");
$i = "0";
$vrf_query = mysql_query("select * from vrfs WHERE device_id = '".$device['device_id']."' ORDER BY 'vrf_name'");
while ($vrf = mysql_fetch_assoc($vrf_query))
foreach (dbFetchRows("SELECT * FROM `vrfs` WHERE `device_id` = ? ORDER BY `vrf_name`", array($device['device_id'])) as $vrf)
{
include("includes/print-vrf.inc.php");
$i++;