include_once 'classes/Authentication.php'; include_once 'classes/Database.php'; include_once 'classes/User.php'; $db = Database::getDatabase(); Authentication::sec_session_start(); if (Authentication::login_check($db->getMysqli()) == true && $_SESSION['admin'] == true) { ?> <?php } else { header('Location: access-error.php'); } ?> <?php $userExams = User::getAppointments($_POST['netID']); $mycount = count($userExams); ?> <link rel="stylesheet" type="text/css" href="css/sortable_table.css"> <div class="facultyScheduleExamFormContainer"> <table id="student_exams_container" class="sortable_table"> <tbody> <tr> <th sort_expression="netID">netID</th> <th sort_expression="ClassID">CourseName</th> <th sort_expression="ClassID">CourseNumber</th> <th sort_expression="ExamStartDate">ExamStartDate</th> <th sort_expression="ExamEndDate">ExamEndDate</th> <th sort_expression="ExamDuration">ExamStartTime</th> <th sort_expression="ExamDuration">ExamEndTime</th> <th sort_expression="ExamDuration">ExamDuration</th>
include_once 'classes/Authentication.php'; include_once 'classes/Database.php'; include_once 'classes/User.php'; $db = Database::getDatabase(); Authentication::sec_session_start(); if (Authentication::login_check($db->getMysqli()) == true && $_SESSION['student'] == true) { ?> <?php } else { header('Location: access-error.php'); } ?> <?php $userExams = User::getAppointments($_SESSION['netid']); ?> <link rel="stylesheet" type="text/css" href="css/sortable_table.css"> <div class="facultyScheduleExamFormContainer"> <table id="student_exams_container" class="sortable_table"> <tbody> <tr> <th >Exam Name</th> <th >Exam Duration</th> <th >Seat Number</th> <th >Time Of Appt</th> <th >Date Of Exam</th> </tr> <?php foreach ($userExams as $exam) { ?>