if ($month != $start_month) { $start_month = $month; ?> <div class="month"> <p> <?php echo $month . ' ' . $year; ?> </p> <div id="rule"></div> </div><?php } echo getEventHtml($event, true, false); if (isset($_SESSION["user_id"])) { // if the user is already signed up for this event, tell them that $user_events = user_events($_SESSION["user_id"]); if (in_array($event["event_id"], $user_events)) { ?> <p>Registered</p><?php } } } ?> </ul> <div class="pagination"> <?php include ROOT_PATH . "inc/partial-list-navigation.html.php"; ?> </div> </main>
meta_includes(); ?> </head> <body> <header> <?php login_header(); ?> <h1>My Events</h1> </header> <div class="left_float"> <h2> Events Created </h2> <br> <?php print_events(user_events(), false, ""); ?> </div> <div class="right_float" > <h2> Participating In </h2> <br> <?php print_events(registered_events(), false, ""); ?> </div> </body> </html>