'); echo(' Vlan ' . $vlan['vlan_vlan'] . ''); echo('' . $vlan['vlan_name'] . ''); echo(''); $vlan_ports = []; $otherports = dbFetchRows("SELECT * FROM `ports_vlans` AS V, `ports` as P WHERE V.`device_id` = ? AND V.`vlan` = ? AND P.port_id = V.port_id", [$device['device_id'], $vlan['vlan_vlan']]); foreach ($otherports as $otherport) { $vlan_ports[$otherport['ifIndex']] = $otherport; } $otherports = dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?", [$device['device_id'], $vlan['vlan_vlan']]); foreach ($otherports as $otherport) { $vlan_ports[$otherport['ifIndex']] = array_merge($otherport, ['untagged' => '1']); } ksort($vlan_ports); foreach ($vlan_ports as $port) { humanize_port($port); if ($vars['view'] === "graphs") { print_port_minigraph($port, $graph_type, 'twoday'); } else { echo($vlan['port_sep'] . generate_port_link_short($port)); $vlan['port_sep'] = ", "; if ($port['untagged']) { echo("(U)"); } } } echo(''); // EOF