mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
make widescreen better. made graphs change on devices page to fill widescreen.
fix generic_multi_bits_separated. rrdtool_graph is so complicated! Thanks monrad. git-svn-id: http://www.observium.org/svn/observer/trunk@2537 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
width: 1776px;
|
width: 1776px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -831,7 +831,6 @@ a.interface-upup:hover, a.interface-updown:hover, a.interface-admindown:hover {
|
|||||||
|
|
||||||
.contentstyle {
|
.contentstyle {
|
||||||
border: 1px solid #aaaaaa;
|
border: 1px solid #aaaaaa;
|
||||||
width: 1176px;
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
float: left;
|
float: left;
|
||||||
|
@@ -65,10 +65,11 @@ foreach ($rrd_list as $rrd)
|
|||||||
|
|
||||||
if (!$nototal) { $rrd_options .= " GPRINT:totin".$i.":%6.2lf%s$total_units"; }
|
if (!$nototal) { $rrd_options .= " GPRINT:totin".$i.":%6.2lf%s$total_units"; }
|
||||||
|
|
||||||
$rrd_options .= " 'AREA:outB".$i."_neg#" . $colour_out . ":".$descr_out.":$stack'";
|
$rrd_options .= " 'HRULE:0#" . $colour_out.":".$descr_out."'";
|
||||||
$rrd_options .= " GPRINT:outB".$i.":LAST:%6.2lf%s$units";
|
$rrd_optionsb .= " 'AREA:outB".$i."_neg#" . $colour_out . "::$stack'";
|
||||||
$rrd_options .= " GPRINT:outB".$i.":AVERAGE:%6.2lf%s$units";
|
$rrd_options .= " GPRINT:outB".$i.":LAST:%6.2lf%s$units";
|
||||||
$rrd_options .= " GPRINT:outB".$i.":MAX:%6.2lf%s$units\l";
|
$rrd_options .= " GPRINT:outB".$i.":AVERAGE:%6.2lf%s$units";
|
||||||
|
$rrd_options .= " GPRINT:outB".$i.":MAX:%6.2lf%s$units\l";
|
||||||
|
|
||||||
if (!$nototal) { $rrd_options .= " GPRINT:totout".$i.":%6.2lf%s$total_unit"; }
|
if (!$nototal) { $rrd_options .= " GPRINT:totout".$i.":%6.2lf%s$total_unit"; }
|
||||||
|
|
||||||
|
@@ -247,12 +247,14 @@ if($format == "graph")
|
|||||||
{
|
{
|
||||||
$graph_type = "device_".$subformat;
|
$graph_type = "device_".$subformat;
|
||||||
|
|
||||||
echo("<div style='display: block; padding: 1px; margin: 2px; min-width: 393px; max-width:393px; min-height:170px; max-height:170px; text-align: center; float: left; background-color: #f5f5f5;'>
|
if($_SESSION['widescreen']) { $width=270; } else { $width=315; }
|
||||||
|
|
||||||
|
echo("<div style='display: block; padding: 1px; margin: 2px; min-width: ".($width+78)."px; max-width:".($width+78)."px; min-height:170px; max-height:170px; text-align: center; float: left; background-color: #f5f5f5;'>
|
||||||
<a href='device/device=".$device['device_id']."/' onmouseover=\"return overlib('\
|
<a href='device/device=".$device['device_id']."/' onmouseover=\"return overlib('\
|
||||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$interface['ifDescr']."</div>\
|
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$interface['ifDescr']."</div>\
|
||||||
<img src=\'graph.php?type=$graph_type&id=".$device['device_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=450&height=150&title=yes\'>\
|
<img src=\'graph.php?type=$graph_type&id=".$device['device_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=450&height=150&title=yes\'>\
|
||||||
', 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&id=".$device['device_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=315&height=110&legend=no&title=yes'>
|
"<img src='graph.php?type=$graph_type&id=".$device['device_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=".$width."&height=110&legend=no&title=yes'>
|
||||||
</a>
|
</a>
|
||||||
</div>");
|
</div>");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user