mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -25,10 +25,10 @@ if ($port['ifInErrors_delta'] > 0 || $port['ifOutErrors_delta'] > 0)
|
|||||||
|
|
||||||
if (dbFetchCell("SELECT COUNT(*) FROM `mac_accounting` WHERE `interface_id` = ?", array($port['interface_id'])))
|
if (dbFetchCell("SELECT COUNT(*) FROM `mac_accounting` WHERE `interface_id` = ?", array($port['interface_id'])))
|
||||||
{
|
{
|
||||||
$mac = "<a href='device/".$port['device_id']."/port/".$port['interface_id']."/macaccounting/'><img src='/images/16/chart_curve.png' align='absmiddle'></a>";
|
$mac = "<a href='" . generate_port_url($port, array('view' => 'macaccounting')) . "'><img src='/images/16/chart_curve.png' align='absmiddle'></a>";
|
||||||
} else { $mac = ""; }
|
} else { $mac = ""; }
|
||||||
|
|
||||||
echo("<tr style=\"background-color: $row_colour;\" valign=top onmouseover=\"this.style.backgroundColor='$list_highlight';\" onmouseout=\"this.style.backgroundColor='$row_colour';\" onclick=\"location.href='device/".$device['device_id']."/port/".$port['interface_id']."/'\" style='cursor: pointer;'>
|
echo("<tr style=\"background-color: $row_colour;\" valign=top onmouseover=\"this.style.backgroundColor='$list_highlight';\" onmouseout=\"this.style.backgroundColor='$row_colour';\" onclick=\"location.href='" . generate_port_url($port) . "/'\" style='cursor: pointer;'>
|
||||||
<td valign=top width=350>");
|
<td valign=top width=350>");
|
||||||
echo(" <span class=list-large>
|
echo(" <span class=list-large>
|
||||||
" . generate_port_link($port, $port['ifIndex'] . ". ".$port['label']) . " $error_img $mac
|
" . generate_port_link($port, $port['ifIndex'] . ". ".$port['label']) . " $error_img $mac
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ foreach ($graph_types as $type => $descr)
|
|||||||
|
|
||||||
print_optionbar_end();
|
print_optionbar_end();
|
||||||
|
|
||||||
if ($vars['view'] == minigraphs)
|
if ($vars['view'] == 'minigraphs')
|
||||||
{
|
{
|
||||||
$timeperiods = array('-1day','-1week','-1month','-1year');
|
$timeperiods = array('-1day','-1week','-1month','-1year');
|
||||||
$from = '-1day';
|
$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;'>
|
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>
|
<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>\
|
<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."&id=".$port['interface_id']."&from=".$from."&to=".$now."&width=450&height=150\'>\
|
<img src=\'graph.php?type=".$graph_type."&id=".$port['interface_id']."&from=".$from."&to=".$now."&width=450&height=150\'>\
|
||||||
|
|||||||
Reference in New Issue
Block a user