include_once 'nav-airport.php'; ?> </div> <div class="content-right"> <?php if (!$airport->exists()) { Common::error("Error: Airport could not be found!"); } ?> <section class="airport-reviews"> <?php $data = new reviewsFormation(); $exisitng = true; $reviewsEntries = $data->joinTables(); echo '<h2>Reviews for ' . $airport->name() . '</h2><br>'; if (isset($_SESSION["username"])) { echo '<p><a href="title_content_uploader.php"><span style="font-weight:bold">Submit a new Review for ' . $airport->name() . '</span></a></p><br>'; echo '<p><a href="protected_page.php"><span style="font-weight:bold">Go to My Reviews</span></a></p><br>'; } if (count($reviewsEntries) != 0) { foreach ($reviewsEntries as $blog) { $airportName = $blog["AirportID"]; if ($airportName == 1) { $airportName = "JFK International Airport"; } if ($airportName == 2) { $airportName = "San Francisco International Airport"; } if ($airportName == 3) { $airportName = "Houston George Bush Intercontinental Airport";
<!-- page content --> <div class="content-wrap"> <div class="content-left"> <?php include_once 'nav-airport.php'; ?> </div> <div class="content-right"> <?php if (!$airport->exists()) { Common::error("Error: Airport could not be found!"); } ?> <section class="airport-flights"> <h2>Flights of <?php echo $airport->name(); ?> International Airport</h2> <br> <br> <h3>Departures</h3> <table> <tr> <th>Flight Number</th> <th>Origin</th> <th>Destination</th> <th>Airline</th> <th>Departure Time</th> <th>Arrival Time</th> <th>Status</th>
<!-- page content --> <div class="content-wrap"> <div class="content-left"> <?php include_once 'nav-airport.php'; ?> </div> <div class="content-right"> <?php if (!$airport->exists()) { Common::error("Error: Airport could not be found!"); } ?> <section class="airport-rentals"> <h2><?php echo $airport->name(); ?> International Airport Car Rentals</h2> <br> <table> <tr> <th>Company</th> <th>Brand</th> <th>Price</th> <th>Quantity</th> <th>Rank</th> </tr> <?php require_once 'data.php'; $data = new reviewsFormation(); $rentals = $data->getRentals($airportID);
<div class="content-wrap"> <div class="content-left"> <?php include_once 'nav-airport.php'; ?> </div> <div class="content-right"> <?php if (!$airport->exists()) { Common::error("Error: Airport could not be found!"); } ?> <section class="airport-shopping"> <h2>Shops of <?php echo $airport->name(); ?> International Airport</h2> <br> <table> <tr> <th>Name</th> <th>Pre/Post Security</th> <th>Location</th> <th>Terminal</th> </tr> <?php $shops = Common::selectShops("airport", "=", $airport->name()); if ($shops && count($shops) > 0) { foreach ($shops as $shop) { echo "<tr>";