2008-10-28 22:06:00 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-16 18:28:52 +00:00
|
|
|
if (is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
|
2008-10-28 22:06:00 +00:00
|
|
|
|
|
|
|
echo("<tr bgcolor='$bg_colour'>");
|
|
|
|
|
2011-04-28 15:01:36 +00:00
|
|
|
echo("<td width=200 class=list-large><a href='routing/vrf/".$vrf['mplsVpnVrfRouteDistinguisher']."/'>" . $vrf['vrf_name'] . "</a></td>");
|
2009-08-07 11:53:10 +00:00
|
|
|
echo("<td width=150 class=box-desc>" . $vrf['mplsVpnVrfDescription'] . "</td>");
|
|
|
|
echo("<td width=100 class=box-desc>" . $vrf['mplsVpnVrfRouteDistinguisher'] . "</td>");
|
2008-10-28 22:06:00 +00:00
|
|
|
|
2011-04-06 13:54:50 +00:00
|
|
|
echo('<td class="list-bold">');
|
2011-05-13 09:45:05 +00:00
|
|
|
foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVrf` = ?", array($device['device_id'], $vrf['vrf_id'])) as $port)
|
2011-04-06 13:54:50 +00:00
|
|
|
{
|
2011-09-19 08:54:48 +00:00
|
|
|
if ($vars['view'] == "graphs")
|
2011-04-06 13:54:50 +00:00
|
|
|
{
|
2011-09-19 08:54:48 +00:00
|
|
|
$graph_type = "port_" . $vars['graph'];
|
2011-04-06 13:54:50 +00:00
|
|
|
echo("<div style='display: block; padding: 2px; margin: 2px; min-width: 139px; max-width:139px; min-height:85px; max-height:85px; text-align: center; float: left; background-color: #e9e9e9;'>
|
2009-08-07 11:53:10 +00:00
|
|
|
<div style='font-weight: bold;'>".makeshortif($port['ifDescr'])."</div>
|
2011-04-09 16:08:39 +00:00
|
|
|
<a href='device/".$device['device_id']."/port/".$port['interface_id']."/' onmouseover=\"return overlib('\
|
2009-08-07 11:53:10 +00:00
|
|
|
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
|
|
|
".$port['ifAlias']." \
|
2011-04-09 17:02:51 +00:00
|
|
|
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=450&height=150\'>\
|
2009-08-07 11:53:10 +00:00
|
|
|
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
2011-04-09 17:02:51 +00:00
|
|
|
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=132&height=40&legend=no'>
|
2009-08-07 11:53:10 +00:00
|
|
|
</a>
|
|
|
|
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
|
|
|
</div>");
|
|
|
|
} else {
|
2010-08-02 22:09:52 +00:00
|
|
|
echo($vrf['port_sep'] . generate_port_link($port, makeshortif($port['ifDescr'])));
|
2009-08-07 11:53:10 +00:00
|
|
|
$vrf['port_sep'] = ", ";
|
|
|
|
}
|
2008-10-28 22:06:00 +00:00
|
|
|
}
|
2011-04-06 13:54:50 +00:00
|
|
|
|
2008-10-28 22:06:00 +00:00
|
|
|
echo("</td>");
|
|
|
|
echo("</tr>");
|
|
|
|
|
2011-04-09 17:02:51 +00:00
|
|
|
?>
|