-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathadd_new_teacher.php
executable file
·95 lines (89 loc) · 4.87 KB
/
add_new_teacher.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
<?php
require_once 'core/init.php';
if(!loggedIn()){
die();
exit();
}
?>
<section class="content-header">
<h1>
Teachers
<small>Add new teacher</small>
</h1>
<ol class="breadcrumb">
<li><a href="home.php"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Teachers</a></li>
<li class="active">Add new teacher</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 Teacher</h3>
</div><!-- /.box-header -->
<!-- form start -->
<form role="form" id="add_new_teacher">
<div class="box-body">
<div class="form-group">
<label for="teacherName">Name of Teacher</label>
<input type="text" class="form-control" id="teacherName" placeholder="Name of teacher" name="name">
</div>
<div class="form-group">
<label for="teacherEmail">Email</label>
<input type="text" class="form-control" id="teacherEmail" placeholder="[email protected]" name="email">
</div>
<div class="form-group">
<label for="teacherPrivilege">Privilege</label>
<select class="form-control" id="teacherPrivilege" name="privilege">
<option value="" selected>Privilege</option>
<option value="director">Director</option>
<option value="dean">Dean</option>
<option value="hod">HOD</option>
<option value="dupc">DUPC</option>
<option value="dppc">DPPC</option>
<option value="teacher">Teacher</option>
</select>
</div>
<div class="form-group">
<label for="teacherDepartment">Department</label>
<select class="form-control" id="teacherDepartment" name="department">
<option value="" selected>Department</option>
<?php
$dep = new Department();
$departments = $dep->getAllDepartment();
while($department = $departments->fetch_object()){
?>
<option value="<?php echo $department->dept_id; ?>" ><?php echo $department->name; ?></option>
<?php
}
?>
</select>
</div>
<div class="form-group">
<label for="teacherMobile">Mobile</label>
<input type="text" class="form-control" id="teacherMobile" placeholder="Mobile Number without +91 or 0" name="mobile" maxlength="10">
</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_teacher.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>