2010-03-14 15:21:55 +00:00
|
|
|
<?php
|
|
|
|
|
2010-04-23 15:33:28 +00:00
|
|
|
$row = 0;
|
|
|
|
|
2010-04-23 13:11:14 +00:00
|
|
|
if($_GET['optc']) { $graph_type = "atmvp_".$_GET['optc']; }
|
|
|
|
if(!$graph_type) { $graph_type = "atmvp_bits"; }
|
2010-03-14 15:21:55 +00:00
|
|
|
|
|
|
|
echo("<table cellspacing=0 cellpadding=5 border=0>");
|
|
|
|
|
|
|
|
$vps = mysql_query("SELECT * FROM juniAtmVp WHERE interface_id = '".$interface['interface_id']."'");
|
|
|
|
while($vp = mysql_fetch_array($vps)) {
|
2010-04-23 15:33:28 +00:00
|
|
|
if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
|
|
|
echo('<tr bgcolor="'.$row_colour.'">');
|
|
|
|
echo('<td><span class=list-bold>'.$row.'. VP'.$vp['vp_id'].' '.$vp['vp_descr'].'</span></td>');
|
2010-03-14 15:21:55 +00:00
|
|
|
echo('</tr>');
|
|
|
|
|
2010-04-23 13:11:14 +00:00
|
|
|
$graph_array['height'] = "100";
|
2010-07-31 22:27:35 +00:00
|
|
|
$graph_array['width'] = "214";
|
2010-03-14 15:21:55 +00:00
|
|
|
$graph_array['to'] = $now;
|
|
|
|
$graph_array['id'] = $vp['juniAtmVp_id'];
|
2010-04-23 13:11:14 +00:00
|
|
|
$graph_array['type'] = $graph_type;
|
2010-03-14 15:21:55 +00:00
|
|
|
|
2010-04-23 13:11:14 +00:00
|
|
|
$periods = array('day', 'week', 'month', 'year');
|
2010-03-14 15:21:55 +00:00
|
|
|
|
2010-04-23 15:33:28 +00:00
|
|
|
echo('<tr bgcolor="'.$row_colour.'"><td>');
|
2010-04-23 13:11:14 +00:00
|
|
|
foreach($periods as $period) {
|
|
|
|
$graph_array['from'] = $$period;
|
|
|
|
$graph_array_zoom = $graph_array; $graph_array_zoom['height'] = "150"; $graph_array_zoom['width'] = "400";
|
|
|
|
echo(overlib_link($_SERVER['REQUEST_URI'], generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL));
|
|
|
|
}
|
|
|
|
echo("</td></tr>");
|
2010-03-14 15:21:55 +00:00
|
|
|
|
2010-04-23 15:33:28 +00:00
|
|
|
$row++;
|
|
|
|
|
2010-03-14 15:21:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo("</table>");
|
|
|
|
|
|
|
|
?>
|