more url fixies, yay for generate_port_url

git-svn-id: http://www.observium.org/svn/observer/trunk@2547 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-22 17:11:00 +00:00
parent ce486c808e
commit 5872ccac1b
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ foreach ($graph_types as $type => $descr)
print_optionbar_end();
if ($vars['view'] == minigraphs)
if ($vars['view'] == 'minigraphs')
{
$timeperiods = array('-1day','-1week','-1month','-1year');
$from = '-1day';
@@ -77,7 +77,7 @@ if ($vars['view'] == minigraphs)
{
echo("<div style='display: block; padding: 3px; margin: 3px; min-width: 183px; max-width:183px; min-height:90px; max-height:90px; text-align: center; float: left; background-color: #e9e9e9;'>
<div style='font-weight: bold;'>".makeshortif($port['ifDescr'])."</div>
<a href='device/".$device['device_id']."/port/".$port['interface_id']."/' onmouseover=\"return overlib('\
<a href=\"" . generate_port_url($port) . "\" onmouseover=\"return overlib('\
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
".$port['ifAlias']." \
<img src=\'graph.php?type=".$graph_type."&amp;id=".$port['interface_id']."&amp;from=".$from."&amp;to=".$now."&amp;width=450&amp;height=150\'>\