NULL]); } else { $navbar['options_right']['cust']['url'] = generate_url($vars, ['customer' => 'hide']); } $navbar['options_right']['cust']['text'] = 'Customer Graphs'; $navbar['options_right']['cust']['icon'] = $config['icon']['graphs']; if (get_var_true($vars['aggregate'], 'show')) { $navbar['options_right']['aggregate']['class'] = 'active'; $navbar['options_right']['aggregate']['url'] = generate_url($vars, ['aggregate' => NULL]); } else { $navbar['options_right']['aggregate']['url'] = generate_url($vars, ['aggregate' => 'show']); } $navbar['options_right']['aggregate']['text'] = 'Aggregate'; $navbar['options_right']['aggregate']['icon'] = $config['icon']['graphs']; print_navbar($navbar); unset($navbar); $where = generate_where_clause("`port_descr_type` = 'cust'", $cache['where']['ports_permitted']); /// Generate customer aggregate graph if (get_var_true($vars['aggregate'], 'show')) { $port_list = implode(',', dbFetchColumn('SELECT `port_id` FROM `ports` ' . $where)); echo generate_box_open(['title' => 'Total Customer Traffic']); if ($port_list) { $graph_array['type'] = 'multi-port_bits_separate'; $graph_array['to'] = get_time(); $graph_array['legend'] = 'no'; $graph_array['id'] = $port_list; print_graph_row($graph_array); } echo generate_box_close(); } echo generate_box_open(); ?>
Customer | Device | Interface | Speed | Circuit | Notes | |
---|---|---|---|---|---|---|
' . escape_html($customer_name) . ' | ' . generate_device_link($device) . ' | ' . generate_port_link_short($port) . ' | ' . $port['port_descr_speed'] . ' | ' . $port['port_descr_circuit'] . ' | ' . escape_html($port['port_descr_notes']) . ' | |
'); $graph_array['type'] = "customer_bits"; $graph_array['to'] = get_time(); $graph_array['id'] = '"' . escape_html($port['port_descr_descr']) . '"'; // use double quotes for prevent split var by commas print_graph_row($graph_array); echo(" |