-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathadd_new_department.php
executable file
·65 lines (61 loc) · 3.15 KB
/
add_new_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
<?php
require_once 'core/init.php';
if(!loggedIn()){
Redirect::to('logout.php');
}
else if(loggedIn() && (privilege()==='teacher' || privilege()==='dppc' || privilege()==='dupc' || privilege()==NULL)){
Session::destroy();
Redirect::to('includes/errors/unauthorized.php');
}
?>
<section class="content-header">
<h1>
Departments
<small>Create new department</small>
</h1>
<ol class="breadcrumb">
<li><a href="home.php"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Departments</a></li>
<li class="active">Create new department</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="col-md-6">
<div id="update">
</div>
<div class="box box-default">
<div class="box-header">
<h3 class="box-title">Add New Department</h3>
</div><!-- /.box-header -->
<!-- form start -->
<form role="form" id="add_new_department">
<div class="box-body">
<div class="form-group">
<label for="depName">Department Name</label>
<input type="text" class="form-control" id="depName" placeholder="Name of department" name="name">
</div>
<div class="form-group">
<label for="depID">Department ID</label>
<input type="text" class="form-control" id="depID" placeholder="Department ID" name="id">
</div>
</div><!-- /.box-body -->
<div class="box-footer">
<button type="submit" class="btn btn-primary" name='submit'>Submit</button>
</div>
</form>
</div>
</div>
</section>
<!-- jQuery 2.0.2 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!-- AJAX FORM -->
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/add_new_department.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<!-- DATA TABES SCRIPT -->
<script src="js/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="js/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
<!-- AdminLTE App -->
<script src="js/AdminLTE/app.js" type="text/javascript"></script>