-
Notifications
You must be signed in to change notification settings - Fork 5
/
st_result.php
49 lines (43 loc) · 1.27 KB
/
st_result.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
<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<table class="tab_one" style="text-align:center;">
<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Add Result</th>
<th style="text-align:center;">view Result</th>
</tr>
<?php
$i=0;
$alluser = $user->get_all_student();
while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td><a href="add_result.php?ar=<?php echo $rows['st_id']; ?>&vn=<?php echo $rows['name'];?>">Add Result</a></td>
<td><a href="view_result.php?vr=<?php echo $rows['st_id']; ?>&vn=<?php echo $rows['name'];?>">View Result</a></td>
</tr>
<?php } ?>
</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>