$v) { if ($k != "vlan_vlan") { $vlans_data[$vlan['vlan_vlan']][$k]=$v; } } } $otherports = dbFetchRows('SELECT * FROM `ports_vlans` AS V, `ports` AS P WHERE V.`device_id` = ? AND P.port_id = V.port_id', array($device['device_id'])); foreach ($otherports as $n => $otherport) { if (!$otherport['untagged']) { if ($otherport['ifvlan'] == $otherport['vlan']) { $otherport['untagged'] = 1; } } $vlan_ports[$otherport['vlan']][$otherport['ifIndex']] = $otherport; } ksort($vlan_ports); $i=0; foreach ($vlan_ports as $vlan => $ports) { $bg_colour = \LibreNMS\Config::get('list_colour.odd'); if (!is_integer($i / 2)) { $bg_colour = \LibreNMS\Config::get('list_colour.even'); } echo "