-
Notifications
You must be signed in to change notification settings - Fork 0
/
ct_marks.php
executable file
·195 lines (189 loc) · 4.65 KB
/
ct_marks.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
<?php
include "admin_header.php";
?>
<link rel="stylesheet" href="assets/css/ctmarks.css">
<div class="container-fluid">
<div class="row">
<!--------------upload ct result------------->
<div class="col-12 col-md-3" style="border-right: 2px solid gray;">
<form class="form-container" style="border-bottom: 2px solid gray;">
<div class="form-group">
<label for="exampleFormControlFile1">upload CT result:</label>
<input type="file" class="form-control-file" id="exampleFormControlFile1">
</div>
<div class="form-group">
<input class="form-control" type="submit" name="submit" value="submit">
</div>
</form>
<!--------------filter------------->
<form action="" class="form-container" >
<div class="form-group">
<label>branch:</label>
<?php
// Fetch all the branch data
$query = "SELECT * FROM branch ORDER BY branch_name ASC";
$result = $db->query($query);
?>
<select class="custom-select mr-sm-2" id="inlineFormCustomSelect">
<option value="" selected disabled hidden>Select branch</option>
<?php
if($result->num_rows > 0){
while($row = $result->fetch_assoc()){
echo '<option value="'.$row['branch_id'].'">'.$row['branch_name'].'</option>';
}
}else{
echo '<option value="">branch not available</option>';
}
?>
</select>
</div>
<div class="form-group">
<label>semester:</label>
<select class="custom-select mr-sm-2" id="inlineFormCustomSelect">
<option selected disabled hidden>select semester</option>
<option value="1" >1st</option>
<option value="2" >2nd</option>
<option value="3" >3rd</option>
<option value="4" >4th</option>
<option value="5" >5th</option>
<option value="6" >6th</option>
<option value="7" >7th</option>
<option value="8" >8th</option>
</select>
</div>
<div class="form-group">
<input class="form-control" type="submit" name="submit" value="submit" >
</div>
</form>
</div>
<!--------------------------------table---------------------------->
<div class="col-12 col-md-9 table-responsive" >
<table class="table table-bordered">
<thead class="thead-dark">
<tr>
<th scope="col">Name</th>
<th scope="col">Subject</th>
<th scope="col">CT 1</th>
<th scope="col">CT 2</th>
<th scope="col">Edit</th>
<th scope="col">Delete</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>edit</td>
<td>dlt</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>