mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix vlan page graphs
git-svn-id: http://www.observium.org/svn/observer/trunk@2594 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -12,16 +12,16 @@ foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?
|
|||||||
{
|
{
|
||||||
if ($vars['view'])
|
if ($vars['view'])
|
||||||
{
|
{
|
||||||
$graph_type = $vars['view'];
|
$graph_type = 'port_' . $vars['view'];
|
||||||
|
|
||||||
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: ".$list_colour_b_b.";'>
|
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: ".$list_colour_b_b.";'>
|
||||||
<div style='font-weight: bold;'>".makeshortif($port['ifDescr'])."</div>
|
<div style='font-weight: bold;'>".makeshortif($port['ifDescr'])."</div>
|
||||||
<a href='device/device=".$device['device_id']."/tab=port/port=".$port['interface_id']."/' onmouseover=\"return overlib('\
|
<a href='device/device=".$device['device_id']."/tab=port/port=".$port['interface_id']."/' onmouseover=\"return overlib('\
|
||||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||||
".$port['ifAlias']." \
|
".$port['ifAlias']." \
|
||||||
<img src=\'graph.php?type=$graph_type&if=".$port['interface_id']."&from=-2day&to=".$now."&width=450&height=150\'>\
|
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=450&height=150\'>\
|
||||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||||
"<img src='graph.php?type=$graph_type&if=".$port['interface_id']."&from=-2day&to=".$now."&width=132&height=40&legend=no'>
|
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=132&height=40&legend=no'>
|
||||||
</a>
|
</a>
|
||||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
||||||
</div>");
|
</div>");
|
||||||
|
|||||||
Reference in New Issue
Block a user