-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.php
221 lines (198 loc) · 7.57 KB
/
schedule.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/dashboard.css">
<link rel="stylesheet" href="assets/bootstrap-4/css/bootstrap.min.css">
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/popper.min.js"></script>
<script type="text/javascript" src="assets/js/filter-table.js"></script>
<script type="text/javascript" src="assets/bootstrap-4/js/bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/b1b0cba1bb.js" crossorigin="anonymous"></script>
<title>Admin</title>
</head>
<body>
<?php
session_start();
if(isset($_SESSION['username'])){
?>
<div class="sidebar-container" id="navItem">
<a href="#" class="navbar-brand">
<img src="assets/image/logo.png" height="200">
</a>
<ul class="sidebar-navigation">
<li>
<a href="admin.php">
<i class="fa fa-dashboard" aria-hidden="true"></i> Dashboard
</a>
</li>
<li>
<a href="department.php">
<i class="fa fa-user-tie" aria-hidden="true"></i> Professors
</a>
</li>
<li>
<a href="student.php">
<i class="fa fa-users" aria-hidden="true"></i> Students
</a>
</li>
<li>
<a href="collectives.php">
<i class="fa fa-files-o" aria-hidden="true"></i> Collectives
</a>
</li>
<li>
<a href="Subjects.php">
<i class="fa fa-list-alt" aria-hidden="true"></i> Subjects
</a>
</li>
<li>
<a href="#" class="active">
<i class="fa fa-calendar" aria-hidden="true"></i> Schedule
</a>
</li>
<li>
<a href="manageAcc.php">
<i class="fa fa-tasks" aria-hidden="true"></i> Manage Accounts
</a>
</li>
<li>
<a href="logout.php">
<i class="fa fa-sign-out" aria-hidden="true"></i> Logout
</a>
</li>
</ul>
</div>
<div class="content">
<div class="content-container">
<nav class="navbar navbar-light bg-light justify-content-between">
<a class="navbar-brand">Schedule</a>
<div class="form-inline">
<input type="text" id="myInput" class="form-control mr-sm-2" onkeyup="myFunction()" placeholder="Search for code..">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
Add Schedule
</button>
</div>
<!-- The Modal -->
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Add Schedule</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div class="modal-body justify-content-center">
<form id="modal" name="name">
<div class="form-group">
<label>Code</label>
<input type="text" id="inputCode" name="inputCode" placeholder="Subject Code" class="form-control border border-secondary required-error">
</div>
<div class="row">
<div class="form-group col-md-6">
<label>Instructor</label>
<input type="text" id="inputInstructor" name="inputInstructor" placeholder="Ex. Matthew Smith" class="form-control border border-secondary required-error">
</div>
<div class="form-group col-md-6">
<label>Day</label>
<select id="inputDay" name="inputDay" class="form-control border border-secondary required-error">
<option></option>
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
<option>Thursday</option>
<option>Friday</option>
<option>Saturday</option>
<option>Sunday</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label>Start Time</label>
<input type="time" id="inputStart" name="inputStart" class="form-control border border-secondary required-error">
</div>
<div class="form-group col-md-6">
<label>End Time</label>
<input type="time" id="inputEnd" name="inputEnd" class="form-control border border-secondary required-error">
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label>Course</label>
<select id="inputCourse" name="inputCourse" class="form-control border border-secondary">
<option selected></option>
<option>BSCS</option>
<option>BSIT</option>
<option>BSEMC</option>
<option>BSIS</option>
</select>
</div>
<div class="form-group col-md-4">
<label>Year</label>
<select id="inputYear" name="inputYear" class="form-control border border-secondary">
<option selected></option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
</div>
<div class="form-group col-md-4">
<label>Section</label>
<select id="inputSection" name="inputSection" class="form-control border border-secondary">
<option selected></option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
</select>
</div>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" id="btnAddSched" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card border-light mb-3">
<div class="card-header card-header-info card-header-tabs">
<h4 class="card-title">Schedule List</h4>
<p class="card-category">1st Semester A.Y 2021-2022</p>
<p class="card-category"></p>
</div>
<div class="card-body table-responsive">
<table id="table-container" class="table table-hover">
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
}
else
{
header("location:index.php");
}
?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="assets/js/script-sched.js"></script>
</body>
</html>