'device', 'device' => $device['device_id'], 'tab' => 'vlans'); print_optionbar_start(); echo("VLANs » "); if ($vars['view'] == 'graphs' || $vars['view'] == 'minigraphs') { if (isset($vars['graph'])) { $graph_type = "port_" . $vars['graph']; } else { $graph_type = "port_bits"; } } if (!$vars['view']) { $vars['view'] = "basic"; } $menu_options['basic'] = 'Basic'; #$menu_options['details'] = 'Details'; $sep = ""; foreach ($menu_options as $option => $text) { echo($sep); if ($vars['view'] == $option) { echo(""); } echo(generate_link($text,$link_array,array('view'=>$option))); if ($vars['view'] == $option) { echo(""); } $sep = " | "; } unset($sep); echo(' | Graphs: '); $graph_types = array("bits" => "Bits", "upkts" => "Unicast Packets", "nupkts" => "Non-Unicast Packets", "errors" => "Errors"); foreach ($graph_types as $type => $descr) { echo("$type_sep"); if ($vars['graph'] == $type && $vars['view'] == "graphs") { echo(""); } echo(generate_link($descr,$link_array,array('view'=>'graphs','graph'=>$type))); if ($vars['graph'] == $type && $vars['view'] == "graphs") { echo(""); } /* echo(' ('); if ($vars['graph'] == $type && $vars['type'] == "minigraphs") { echo(""); } echo(generate_link('Mini',$link_array,array('type'=>'minigraphs','graph'=>$type))); if ($vars['graph'] == $type && $vars['type'] == "minigraphs") { echo(""); } echo(')'); */ $type_sep = " | "; } print_optionbar_end(); echo(''); $i = "1"; foreach (dbFetchRows("SELECT * FROM `vlans` WHERE `device_id` = ? ORDER BY 'vlan_vlan'", array($device['device_id'])) as $vlan) { include("includes/print-vlan.inc.php"); $i++; } echo("
"); $pagetitle[] = "VLANs"; ?>