'); # ' . 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 = "
".$device['hostname']." - Device Traffic
"; $content .= "
"; $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 .= "
"; echo(overlib_link($_SERVER['REQUEST_URI'], $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['hostname'] = $device['hostname']; echo("$ifsep" . generateiflink($data, makeshortif(strtolower($data['label'])))); $ifsep = ", "; } unset($ifsep); echo("
"); echo(""); } ?>