-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewExam.php
135 lines (104 loc) · 4.56 KB
/
viewExam.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<title>Employee Dashboard</title>
<!--Google Font-->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="questionform.css">
<style>
body{
background-image:url('background.png');
background-repeat:no-repeat;
background-attachment:fixed;
background-size:100%;
background-position:center;
background-color:#155977;
}
</style>
</head>
<body>
<div class="nav">
<input type="checkbox" id="nav-check">
<div class="nav-header">
<div class="nav-title">
<a href="employee_dashboard.php" target="_self" style= "color: white" > SPMS 4.0</a>
</div>
</div>
<div class="nav-btn">
<label for="nav-check">
<span></span>
<span></span>
<span></span>
</label>
</div>
<div class="nav-links">
<ul>
<li><a href="addExam.php" target="_self">Add Exam</a></li>
<li><a href="viewExam.php" target="_self">View Exam</a></li>
<li><a href="logout.php" target="_self">Logout</a></li>
</ul>
</div>
</div>
<form method="post">
<div style="display:flex;justify-content:space-evenly;margin-top:15px;">
<input type="text" style="background-color:#6698FF;height:36px;cursor: pointer;border-radius: 5px;
font-size: 14px;letter-spacing:2px;font-weight: bold;text-transform: uppercase;border: none;
outline:none;text-align:center;color:white;width:250px;margin-top:0px;"
placeholder="Exam Name" name="examName"/>
<select style="width:250px;margin-left:0px;margin-top:0px;" name="courseID" class="select">
<option disabled selected>Course</option>
<option value="CSC101">CSC101</option>
<option value="EEE131">EEE131</option>
<option value="ENG101">ENG101</option>
</select>
<select style="width:250px;margin-left:0px;margin-top:0px;" name="sectionNum" class="select">
<option disabled selected>Section</option>
<option value="1">section-1</option>
<option value="2">section-2</option>
<option value="3">section-3</option>
<option value="4">section-4</option>
</select>
</div> <!-- div row-1 ends here -->
<!-- div row-2 starts here -->
<div style="display:flex;justify-content:space-evenly;margin-top:15px;">
<input type="text" style="background-color:#6698FF;height:36px;cursor: pointer;border-radius: 5px;
font-size: 14px;letter-spacing:2px;font-weight: bold;text-transform: uppercase;border: none;
outline:none;text-align:center;color:white;width:250px;margin-top:0px;"
placeholder="Student ID" name="studentID"/>
<select style="width:250px;margin-left:0px;margin-top:0px;" name="semester" class="select">
<option disabled selected>Semester</option>
<option value="spring">spring</option>
<option value="summer">summer</option>
<option value="autumn">autumn</option>
</select>
<select style="width:250px;margin-top:0px;margin-left:0px;" name="year" class="select">
<option disabled selected>year</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
</select>
</div>
<input type="submit" style="margin-top:20px;" name="submit" value="Submit" class="submitButton">
</form>
<?php
if(isset($_POST['submit'])){
$_SESSION['examName']=$_POST['examName'];
$_SESSION['courseID']=$_POST['courseID'];
$_SESSION['sectionNum']=$_POST['sectionNum'];
$_SESSION['studentID']=$_POST['studentID'];
$_SESSION['semester']=$_POST['semester'];
$_SESSION['year']=$_POST['year'];
header('location:submitAnswerScript.php');
}
?>
</body>
</html>