'); $i = "1"; echo('Local Port Remote Port Remote Device Protocol '); while($neighbour = mysql_fetch_assoc($query)) { if ($bg_colour == $list_colour_b) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } echo(''); echo(''.generate_port_link($neighbour).'
'.$neighbour['ifAlias'].''); if(is_numeric($neighbour['remote_interface_id']) && $neighbour['remote_interface_id']) { $remote_port = get_port_by_id($neighbour['remote_interface_id']); $remote_device = device_by_id_cache($remote_port['device_id']); echo("".generate_port_link($remote_port)."
".$remote_port['ifAlias'].""); echo("".generate_device_link($remote_device)."
".$remote_device['hardware'].""); } else { echo("".$neighbour['remote_port'].""); echo("".$neighbour['remote_hostname']."
".$neighbour['remote_platform'].""); } echo("".$neighbour['protocol'].""); echo(""); $i++; } echo(""); ?>