-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_class.php
108 lines (94 loc) · 5.57 KB
/
add_class.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
<?php include'header.php'; ?>
<div class="pcoded-content">
<div class="pcoded-inner-content">
<div class="main-body">
<div class="page-wrapper">
<div class="page-header">
<div class="row align-items-end">
<div class="col-lg-8">
<div class="page-header-title">
<div class="d-inline">
<h4>Add Class</h4>
<span>Fill below form to add a Class</span>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="page-header-breadcrumb">
<ul class="breadcrumb-title">
<li class="breadcrumb-item">
<a href="index.html"> <i class="feather icon-home"></i> </a>
</li>
<li class="breadcrumb-item"><a href="#!">Class</a>
</li>
<li class="breadcrumb-item"><a href="#!">Add Class</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page-body">
<div class="row">
<div class="col-lg-12 col-xl-12">
<div class="card">
<div class="card-header">
<h5>Add a class</h5>
</div>
<div class="card-block">
<form action="actions/add_class_p.php" method="POST">
<div class="form-group row">
<label for="" class="col-sm-2 col-form-label">Select Department</label>
<div class="col-sm-10 m-b-5">
<select name="dept" id="" class="form-control" required>
<?php
$sql= mysqli_query($db, "select * from department order by department_name asc");
while($dept= $sql -> fetch_assoc()){
?>
<option value="<?php echo $dept['department_id']; ?>">
<?php echo $dept['department_name']?>
</option>
<?php } ?>
</select>
</div>
<label for="" class="col-sm-2 col-form-label">Select Level</label>
<div class="col-sm-10 m-b-5">
<select name="level" id="" class="form-control" required>
<?php
$sql= mysqli_query($db, "select * from level");
while($level= $sql -> fetch_assoc()){
?>
<option value="<?php echo $level['level_id']; ?>">
<?php echo $level['level_name']?>
</option>
<?php } ?>
</select>
</div>
<label for="" class="col-sm-2 col-form-label">Input Size of the
class</label>
<div class="col-sm-10 m-b-5">
<input type="number" class="form-control"
placeholder="Size of the class" name="size" required>
</div>
</div>
<div class="card-footer">
<div class="row">
<div class="col-sm-12 text-right">
<button type="submit" class="btn btn-primary m-r-10">Submit
Details</button>
<button type="submit" class="btn btn-default">Reset</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include'footer.php'; ?>