echo 2; } else { echo 1; } ?> "><div class="session-filter remaining">Seats</div></a> <?php } ?> </nav> <div class="enrollment"> <!-- here --> <?php if ($is_changing) { $presentation = get_sessions_by_user($user->usr_id)[$currentSession - 1]; $id = $presentation['pres_id']; ?> <a href="/<?php echo $app_url_path; ?> /itinerary"> <div class="session session-selected"> <div class="tag"><?php echo $presentation['field_name']; ?> </div> <div class="position"><?php echo $presentation['organization']; ?>
require_once "../../shared/model/user_db.php"; require_once "../model/signups_db.php"; require_once "../model/presentations_db.php"; verify_logged_in(); $action = filter_input(INPUT_GET, 'action'); if (isset($action) and $action == "logout") { if (isset($_SESSION['prev_usr_id'])) { $_SESSION['user'] = User::getUserByUsrId($_SESSION['prev_usr_id']); $_SESSION['prev_usr_id'] = NULL; header("Location: ../admin/index.php"); } else { session_destroy(); header("Location: ../index.php"); } } $sessions = get_sessions_by_user($user->usr_id); // // Check if the user has mentors for all of the sessions. // $registration_complete = true; foreach ($sessions as $session) { if (empty($session['mentor_last_name'])) { $registration_complete = false; break; } } $signup_dates = get_signup_dates_by_grade($user->usr_grade_lvl); date_default_timezone_set('America/New_York'); $currentTime = time(); $startTime = strtotime($signup_dates['start']); $endTime = strtotime($signup_dates['end']);