-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewtests.php
31 lines (28 loc) · 845 Bytes
/
viewtests.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
<?php
$title = "View Tests";
require_once './includes/header.php';
require_once './db/conn.php';
require_once './includes/admin_check.php';
$results = $crud->getAllTests();
?>
<table class="table">
<tr>
<th>Course</th>
<th>Max Marks</th>
<th>Date</th>
<th>Actions</th>
</tr>
<?php while ($r = $results->fetch(PDO::FETCH_ASSOC)) { ?>
<tr>
<td><?php echo $r['name'] ?></td>
<td><?php echo $r['max_marks'] ?></td>
<td><?php echo $r['dateoftest'] ?></td>
<td>
<a href="viewt.php?tid=<?php echo $r['test_id'] ?>" class="btn btn-primary">View</a>
</td>
</tr>
<?php }?>
</table>
<?php
require './includes/footer.php'
?>