-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexaminer.php
66 lines (61 loc) · 2.43 KB
/
examiner.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Student and Examiner</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
<Body>
<?php include "../php/assignedexaminer.php"; ?>
<div class="container">
<div class="box">
<h4 class="display-4 text-center">Assigned Projects </h4><br>
<?php if (isset($_GET['success'])) { ?>
<div class="alert alert-success" role="alert">
<?php echo $_GET['success']; ?>
</div>
<?php } ?>
<?php if (isset($_GET['error'])) { ?>
<div class="alert alert-danger" role="alert">
<?php echo $_GET['error']; ?>
</div>
<?php } ?>
<?php if (mysqli_num_rows($result)) { ?>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">ProjectID</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
while ($rows = mysqli_fetch_assoc($result)) {
$i++;
?>
<tr>
<th scope="row"><?= $i ?></th>
<td><?php echo $rows['id']; ?></td>
<td>
<a href="../examiner/assigngrade.php?id=<?= $rows['id'] ?>" class="btn btn-secondary">Details</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<div class="link-right">
<a class="btn btn-success float-end mb-5" onclick="location.href='../welcome.php'">LOGOUT</a>
</div>
</div>
</div>
</Body>
</div>
</div>
</div>
</html>