improve some graphing stuff. sexypants.

git-svn-id: http://www.observium.org/svn/observer/trunk@1024 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-14 01:38:43 +00:00
parent c127dffa80
commit 8fe2b89c5e
2 changed files with 34 additions and 33 deletions
+28 -2
View File
@@ -1,8 +1,34 @@
<?php
if($ports['total']) {
echo('<div style="background-color: #eeeeee; margin: 5px; padding: 5px;">
' . device_traffic_image($device['device_id'], 490, 100, $day, '-300s'));
echo('<div style="background-color: #eeeeee; margin: 5px; padding: 5px;">');
# ' . device_traffic_image($device['device_id'], 490, 100, $day, '-300s'));
$graph_array['height'] = "100";
$graph_array['width'] = "490";
$graph_array['to'] = $now;
$graph_array['device'] = $device['device_id'];
$graph_array['type'] = "device_bits";
$graph_array['from'] = $day;
$graph = generate_graph_tag($graph_array);
$content = "<div class=list-large>".$device['hostname']." - Device Traffic</div>";
$content .= "<div style=\'width: 850px\'>";
$graph_array['width'] = "340";
$graph_array['from'] = $day;
$content .= generate_graph_tag($graph_array);
$graph_array['from'] = $week;
$content .= generate_graph_tag($graph_array);
$graph_array['from'] = $month;
$content .= generate_graph_tag($graph_array);
$graph_array['from'] = $year;
$content .= generate_graph_tag($graph_array);
$content .= "</div>";
echo(overlib_link("#", $graph, $content, NULL));
echo(' <div style="height: 5px;"></div>');
echo(' <table class="tablehead" cellpadding="2" cellspacing="0" width="100%">