-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_cis_m3.php
356 lines (304 loc) · 17.6 KB
/
2_cis_m3.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<?php
ob_start();
session_start();
require_once 'dbconnect.php';
// if session is not set this will redirect to login page
if( !isset($_SESSION['user']) ) {
header("Location: index.php");
exit;
}
// select loggedin users detail
$res=mysql_query("SELECT * FROM users WHERE userId=".$_SESSION['user']);
$userRow=mysql_fetch_array($res);
?>
<html>
<head>
<title>CIS</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="CSS\style.css"></link>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
body {
background: #8c8c8c;
}
.content {
max-width: 1200px;
margin: auto;
background: white;
padding: 10px;
}
a:link, a:visited {
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
div.scrollmenu {
background-color: #333;
overflow: auto;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="w3-panel w3-black w3-container w3-xlarge w3-display-top" style="padding:0">
<div> <p><button onclick="document.getElementById('menu1').style.display='block'" class="w3-button w3-black w3-left">Student Details</button></p></div>
<p><button onclick="document.getElementById('menu2').style.display='block'" class="w3-button w3-black w3-left">Attendance</button></p>
<p><button onclick="document.getElementById('menu3').style.display='block'" class="w3-button w3-black w3-left ">Result</button></p>
<p><button onclick="document.getElementById('menu4').style.display='block'" class="w3-button w3-black w3-right "><a href="logout.php?logout">Logout</a></button></p>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal" onclick="document.getElementById('Add Student Results').style.display='block'">Add Student Results</button></h5>
</div>
<!--search-->
<div class="content">
<div class="container">
<h1>Attendance Details</h1><br>
<div class="scrollmenu">
<table class="table table-bordered">
<thead>
<tr>
<th bgcolor="#006666"><font color="white">Registration No</font></th>
<th bgcolor="#006666"><font color="white">IS11201</font></th>
<th bgcolor="#006666"><font color="white">IS11302</font></th>
<th bgcolor="#006666"><font color="white">IS11203</font></th>
<th bgcolor="#006666"><font color="white">IS11204</font></th>
<th bgcolor="#006666"><font color="white">IS11205</font></th>
<th bgcolor="#006666"><font color="white">IS11206</font></th>
<th bgcolor="#006666"><font color="white">CPE1101</font></th>
<th bgcolor="#006666"><font color="white">GPA</font></th>
</tr>
</thead>
<tbody>
<?php
$host="localhost";
$uname="root";
$pwd="";
$dbname="result";
$conn=mysqli_connect($host,$uname,$pwd,$dbname);
if($conn){
echo "successfully connected";
echo "<br>";
echo "<br>";
}
else
{
echo "Error";
}
$sql ="SELECT * FROM cis_result_2 ";
$search = $conn->query($sql);
while($row = $search->fetch_assoc()) {
echo' <tr>
<td><center><font color="white">'.$row["reg_no"].'</font></center></td>
<td><center><font color="white">'.$row["IS11201"].'</font></center></td>
<td><center><font color="white">'.$row["IS11302"].'</font></center></td>
<td><center><font color="white">'.$row["IS11203"].'</font></center></td>
<td><center><font color="white">'.$row["IS11204"].'</font></center></td>
<td><center><font color="white">'.$row["IS11205"].'</font></center></td>
<td><center><font color="white">'.$row["IS11206"].'</font></center></td>
<td><center><font color="white">'.$row["CPE1101"].'</font></center></td>
<td><center><font color="white">'.$row["gpa"].'</font></center></td>
</tr>';
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Menu Modal for Student Details -->
<div id="menu1" class="w3-modal">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black w3-display-container">
<span onclick="document.getElementById('menu1').style.display='none'" class="w3-button w3-display-topright w3-large">x</span>
<h1><center>Department of Computing & Information Systems</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_cis_m1.php" target="_blank">First Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_cis_m1.php" target="_blank">Second Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_cis_m1.php" target="_blank">Third Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_cis_m1.php" target="_blank">Forth Year Student Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Food Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_fst_m1.php" target="_blank">First Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_fst_m1.php" target="_blank">Second Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_fst_m1.php" target="_blank">Third Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_fst_m1.php" target="_blank">Forth Year Student Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Natural Resouces</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_nr_m1.php" target="_blank">First Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_nr_m1.php" target="_blank">Second Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_nr_m1.php" target="_blank">Third Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_nr_m1.php" target="_blank">Forth Year Student Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Physical Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_pst_m1.php" target="_blank">First Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_pst_m1.php" target="_blank">Second Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_pst_m1.php" target="_blank">Third Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_pst_m1.php" target="_blank">Forth Year Student Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Sport Science & Physical Education</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_spr_m1.php" target="_blank">First Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_spr_m1.php" target="_blank">Second Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_spr_m1.php" target="_blank">Third Year Student Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_spr_m1.php" target="_blank">Forth Year Student Details</a></button></h5>
</div>
</div>
</div>
<!-- Menu Modal for Student Attendance -->
<div id="menu2" class="w3-modal">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black w3-display-container">
<span onclick="document.getElementById('menu2').style.display='none'" class="w3-button w3-display-topright w3-large">x</span>
<h1><center>Department of Computing & Information Systems</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_cis_m2.php" target="_blank">First Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_cis_m2.php" target="_blank">Second Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_cis_m2.php" target="_blank">Third Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_cis_m2.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Food Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_fst_m2.php" target="_blank">First Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_fst_m2.php" target="_blank">Second Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_fst_m2.php" target="_blank">Third Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_fst_m2.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Natural Resouces</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_nr_m2.php" target="_blank">First Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_nr_m2.php" target="_blank">Second Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_nr_m2.php" target="_blank">Third Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_nr_m2.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Physical Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="firstpstm2.php" target="_blank">First Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="secondpstm2.php" target="_blank">Second Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="thirdfpstm2.php" target="_blank">Third Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="forthfpstm2.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Sport Science & Physical Education</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_spr_m2.php" target="_blank">First Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_spr_m2.php" target="_blank">Second Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_spr_m2.php" target="_blank">Third Year Attendance Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_spr_m2.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
</div>
</div>
<!-- Menu Modal for Student Results -->
<div id="menu3" class="w3-modal">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black w3-display-container">
<span onclick="document.getElementById('menu3').style.display='none'" class="w3-button w3-display-topright w3-large">x</span>
<h1><center>Department of Computing & Information Systems</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_cis_m3.php" target="_blank">First Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_cis_m3.php" target="_blank">Second Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_cis_m3.php" target="_blank">Third Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_cis_m3.php" target="_blank">Forth Year Student Result Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Food Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_fst_m3.php" target="_blank">First Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_fst_m3.php" target="_blank">Second Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_fst_m3.php" target="_blank">Third Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_fst_m3.php" target="_blank">Forth Year Student Result Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Natural Resouces</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_nr_m3.php" target="_blank">First Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_nr_m3.php" target="_blank">Second Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_nr_m3.php" target="_blank">Third Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_nr_m3.php" target="_blank">Forth Year Student Result Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Physical Science & Technology</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_pst_m3.php" target="_blank">First Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_pst_m3.php" target="_blank">Second Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_pst_m3.php" target="_blank">Third Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_pst_m3.php" target="_blank">Forth Year Student Result Details</a></button></h5>
</div>
<div class="w3-container w3-black">
<h1><center>Department of Sport Science & Physical Education</center></h1>
</div>
<div class="w3-container">
<h5> <button class="w3-button w3-block w3-teal"><a href="1_spr_m3.php" target="_blank">First Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="2_spr_m3.php" target="_blank">Second Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="3_spr_m3.php" target="_blank">Third Year Student Result Details</a></button></h5>
<h5> <button class="w3-button w3-block w3-teal"><a href="4_spr_m3.php" target="_blank">Forth Year Attendance Details</a></button></h5>
</div>
</div>
</div>
<!--Form Modal -->
<div id="Add Student Results" class="w3-modal">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black">
<span onclick="document.getElementById('Add Student Results').style.display='none'" class="w3-button w3-display-topright w3-large">x</span>
<h1>Add Student Results</h1>
</div>
<div class="w3-container">
<br>
<br>
<br>
<form action="result2.php" target="_blank" method="POST">
<p><b>Registraion No:</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Registration_No" required name="reg_no"></p><br>
<p><b>IS11201</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11201"></p><br>
<p><b>IS11302</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11302"></p><br>
<p><b>IS11203</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11203"></p><br>
<p><b>IS11204</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11204"></p><br>
<p><b>IS11205</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11205"></p><br>
<p><b>IS11206</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="IS11206"></p><br>
<p><b>CPE1101</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="text" required name="CPE1101"></p><br>
<p><b>GPA</b></p><br>
<p><input class="w3-input w3-padding-16 w3-border" type="number" required name="gpa"></p><br>
<p><input type="submit" name="submit" value="SUBMIT"></p><br>
</form>
</div>
</body>
</html>
<?php ob_end_flush(); ?>