-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatient_view_appointment.php
88 lines (70 loc) · 1.66 KB
/
patient_view_appointment.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
<?php
include 'patient_sidebar.php';
include 'connection_link.php';
$Email=$_SESSION['Email'];
$sql = "SELECT * FROM appointment where Email='$Email'";
$result = mysqli_query($conn, $sql);
echo'<h1 class="Dashboard" >Appointment list</h1>';
if ($result->num_rows > 0)
{
echo "<br>";
echo "<table align=center>
<tr>
<th >Appointment Date</th>
<th >Appointment Slot</th>
<th >Status</th>
</tr>";
while($row = $result->fetch_assoc())
{
if($row["Appointment_status"]=="Approved")
{
echo "<tr>
<td >".$row["Appointment_date"]. "</td>
<td >".$row["Appointment_time"]. "</td>
<td class='approve'>".$row["Appointment_status"]. "</td>
</tr>";
}
else
{
echo "<tr>
<td >".$row["Appointment_date"]. "</td>
<td >".$row["Appointment_time"]. "</td>
<td class='not'>".$row["Appointment_status"]. "</td>
</tr>";
}
}
echo "</table>";
}
else
{
echo "0 results";
}
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Oreo</title>
<meta name="description" content="">
<link rel="stylesheet" href="assets/fontawesome/css/all.min.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<style type="text/css">
th
{
background-color: #588c7e;
color: white;
border:1px solid black;
}
.approve
{
color: green;
}
.not
{
color:#DC143C;
}
</style>
</head>