');
# ' . device_traffic_image($device['device_id'], 490, 100, $day, '-300s'));
$graph_array['height'] = "100";
$graph_array['width'] = "490";
$graph_array['to'] = $now;
$graph_array['id'] = $device['device_id'];
$graph_array['type'] = "device_bits";
$graph_array['from'] = $day;
$graph_array['legend'] = "no";
$graph = generate_graph_tag($graph_array);
$content = "
".$device['hostname']." - Device Traffic
";
$content .= "";
$graph_array['legend'] = "yes";
$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 .= "
";
$link = $config['base_url'] . "/graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $day . "/" . $config['now'] . "/";
echo(overlib_link($link, $graph, $content, NULL));
echo(' ');
echo('
|
' . $ports['total'] . ' |
' . $ports['up'] . ' |
' . $ports['down'] . ' |
' . $ports['disabled'] . ' |
');
echo(' ');
$sql = "SELECT * FROM ports WHERE `device_id` = '" . $device['device_id'] . "' AND deleted != '1'";
$query = mysql_query($sql);
$ifsep = "";
while ($data = mysql_fetch_array($query))
{
$data = ifNameDescr($data);
$data = array_merge($data, $device);
echo("$ifsep" . generate_port_link($data, makeshortif(strtolower($data['label']))));
$ifsep = ", ";
}
unset($ifsep);
echo("
");
echo("");
}
?>