コード例 #1
0
ファイル: reviews.php プロジェクト: epolixa/cs546
            <div id="reviews" class="container">

                <?php 
include_once 'header.php';
?>

                <!-- 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-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) {