View City

<<Back to Main Menu

Description:
Displays a list of all the airports served by AerWeb Routes or connecting Ryanair Routes in a particular city.

Accessible by:
Customers and managers

Accessed from:
View Cities
View Airport

Input parameters:
City ID

Output
City details, including country, with link to View Country
List of all the airports in the city served by AerWeb Routes, with Ryanair airports listed seperately. Each links to View Airport
Pseudo Code:
get/create session
if (there is a 'username' param in the session) {
   get parameters from the form
   if (there is a 'City ID' param) {
      get city, route and airport data from the database
      display city data with link to View Country
      display list of airports (with link to View Airport) serviced by AerWeb routes
      display list of airports (with link to View Airport) serviced by Ryanair routes
   }
   else {
      display an error message
   }
}
else {
   error message to say user must be logged in
}