-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewCourseOutline.php
136 lines (105 loc) · 4.28 KB
/
viewCourseOutline.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
136
<?php
session_start();
include 'connect.php';
?>
<!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/[email protected]/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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="courseOutline.css">
<link rel="stylesheet" href="questionform.css">
<style>
body{
background-image:url('background.png');
background-repeat:no-repeat;
background-attachment:fixed;
background-size:40% 60%;
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">
SPMS 3.0
</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="employee_dashboard.php" target="_self">Dashboard</a></li>
<li><a href="exam.php" target="_self">Exam</a></li>
<li><a href="createCourseOutline.php" target="_self">Create Course Outline</a></li>
<li><a href="viewCourseOutline.php" target="_self">View Course Outline</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;">
<select style="width:200px;margin-left:0px;" name="courseID" class="select">
<option disabled selected>Course</option>
<option value="CSC101">CSC101</option>
<option value="CSC303">CSC303</option>
<option value="MIS430">MIS430</option>
<option value="ENG101">ENG101</option>
</select>
<select style="width:200px;margin-left: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>
</select>
<select style="width:200px;margin-left: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:200px;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>
<div style="display:flex;justify-content:space-evenly;margin-top:15px;">
<input style="margin-left:0px;width:200px;" type="submit" value="Submit" name="submit" class="select">
</div>
</form>
<?php
include 'connect.php';
if(isset($_POST['submit'])){
$sectionNum=$_POST['sectionNum'];
$courseID=$_POST['courseID'];
$semester=$_POST['semester'];
$year=$_POST['year'];
//Getting section ID from database
$result=mysqli_query($con,"SELECT sec.sectionID AS sectionID
FROM section_t AS sec
WHERE sec.sectionNum='$sectionNum' AND sec.courseID='$courseID'
AND sec.semester='$semester' AND sec.year='$year'");
$row=mysqli_fetch_assoc($result);
$_SESSION['sectionID']=$row['sectionID'];
header('location:createpdf.php');
}?>
</body>
</html>