['text' => 'Show All', 'anchor' => TRUE, 'url' => generate_url(['page' => 'device', 'device' => $device['device_id'], 'tab' => 'latency'])], 'perf' => ['text' => 'Show Latency', 'anchor' => TRUE, 'url' => generate_url(['page' => 'device', 'device' => $device['device_id'], 'tab' => 'latency'])], ]; */ echo generate_box_open([ 'title' => 'Ports', 'icon' => $config['icon']['port'], 'url' => generate_url([ 'page' => 'device', 'device' => $device['device_id'], 'tab' => 'ports' ]), ]); //'header-controls' => [ 'controls' => $box_controls ] ]); $graph_array['height'] = "100"; $graph_array['width'] = "512"; $graph_array['to'] = get_time(); $graph_array['device'] = $device['device_id']; $graph_array['type'] = "device_bits"; $graph_array['from'] = get_time('day'); $graph_array['legend'] = "no"; $graph_array['style'] = [ 'width: 100%', 'max-width: 593px' ]; // Override default width $graph = generate_graph_tag($graph_array); unset($graph_array['style']); $link_array = $graph_array; $link_array['page'] = "graphs"; unset($link_array['height'], $link_array['width']); $link = generate_url($link_array); $graph_array['width'] = "210"; $overlib_content = generate_overlib_content($graph_array, $device['hostname'] . " - Device Traffic"); echo('
'); echo(overlib_link($link, $graph, $overlib_content)); echo(' | |||
' . $ports['total'] . ' | ' . $ports['up'] . ' | ' . $ports['down'] . ' | ' . $ports['shutdown'] . ' |
'); echo(implode(', ', get_ports_links_sorted($device))); echo(' |