-
Notifications
You must be signed in to change notification settings - Fork 0
/
department.php
160 lines (145 loc) · 5.06 KB
/
department.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
<!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/bootstrap-4/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/filter-table.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="#" class="active">
<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="schedule.php">
<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">Professors</a>
<form class="form-inline">
<input type="text" id="myInput" class="form-control mr-sm-2" onkeyup="myFunction()" placeholder="Search for name..">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
Add Professor
</button>
</form>
<!-- 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 Professor</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div class="modal-body justify-content-center">
<form id="modal">
<div class="row">
<div class="form-group col-md-6">
<label>First Name</label>
<input type="text" id="inputfName" placeholder="John" name="inputfName" class="form-control required-error">
</div>
<div class="form-group col-md-6">
<label>Last Name</label>
<input type="text" id="inputlName" name="inputlName" placeholder="Doe" class="form-control required-error">
</div>
</div>
<div class="form-group">
<label>Department</label>
<input type="text" id="inputDept" name="inputDept" class="form-control required-error">
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" id="btnAddProf" 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-warning card-header-tabs">
<h4 class="card-title">Professor List</h4>
<p class="card-category">Total Professor</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>
<?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-prof.js"></script>
</body>
</html>