'); $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'] = $config['time']['day']; $content .= generate_graph_tag($graph_array); $graph_array['from'] = $config['time']['week']; $content .= generate_graph_tag($graph_array); $graph_array['from'] = $config['time']['month']; $content .= generate_graph_tag($graph_array); $graph_array['from'] = $config['time']['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('
'); $ifsep = ""; foreach (dbFetchRows("SELECT * FROM `ports` WHERE device_id = ? AND `deleted` != '1'", array($device['device_id'])) as $data) { $data = ifNameDescr($data); $data = array_merge($data, $device); echo("$ifsep" . generate_port_link($data, makeshortif(strtolower($data['label'])))); $ifsep = ", "; } unset($ifsep); echo("
"); echo(""); } ?>