-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_app1.php
54 lines (44 loc) · 1.39 KB
/
view_app1.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
<?php
include_once('lib/header.php'); require('functions/alert.php'); require('functions/users.php'); require('functions/appointments.php');
?>
</head>
<body>
<section>
<?php
include_once('lib/menu.php');
?>
<div class="container">
<div id="table">
<?php
$rows = get_appointments($_SESSION['department']);
if ($rows) {
?>
<table class="table table-bordered">
<caption>
<?php echo get_details("department"); ?> Department Appointments</caption>
<thead class="thead-dark ">
<tr>
<th scope="col">No</th>
<th scope="col">Patient Name</th>
<th scope="col">Nature of Apointment</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Department</th>
<th scope="col">Initial Complaint</th>
</tr>
</thead>
<tbody>
<?php echo $rows; ?>
</tbody>
</table>
<?php } else { ?>
<p>You have no pending appointments</p>
<?php } ?>
</div>
</section>
</div>
<?php
include_once('lib/footer.php');
?>
</body>
</html>