-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdispApp.php
69 lines (58 loc) · 1.54 KB
/
dispApp.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
<?php
include_once("header.php");
$result=mysqli_query($conn,"SELECT aid,aname,app_date,app_time,patient_id FROM appointment where doctor_id = '{$_SESSION["user_id"]}' ORDER BY app_date,app_time");
unset($_SESSION["pid"]);
echo "<table border='1' id = 'customers'>
<tr>
<th>appointment Id</th>
<th>Patient Name</th>
<th>Date</th>
<th>Time</th>
<th>Patient Id</th>
</tr> ";
while($row=mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>".$row['aid']."</td>";
echo "<td>".$row['aname']."</td>";
echo "<td>".$row['app_date']."</td>";
echo "<td>".$row['app_time']."</td>";
echo "<td>".$row['patient_id']."</td>";
echo "</tr>";
}
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(odd){background-color: #ccffff;}
#customers tr:nth-child(even){background-color: #e6ffff;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #003366;
color: white;
}
</style>
</head>
<body>
<h1 align="center">ALL APPOINTMENTS</h1>
<?php echo "</table>";?>
<form action = "index.php">
<input type="submit" name="" value="GO BACK">
</form>
</body>
</html>