-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathviewappointmentspat.php
83 lines (79 loc) · 3.16 KB
/
viewappointmentspat.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
<?php
session_start();
include "db_conn.php";
$x=$_SESSION['name'];
$sql = "SELECT * FROM allapoinments WHERE doctor_name='$x' ";
//echo phpinfo();
$result = mysqli_query($conn, $sql);
/*while ($row = $result->fetch_assoc()) {
echo $row['user_name']."<br>";
}*/
?>
<!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">
<link rel="shortcut icon" href="images/logo.ico" />
<title>Doctor List</title>
<link rel="stylesheet" href="viewappointments.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link href='https://fonts.googleapis.com/css?family=Akaya Telivigala' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Akshar' rel='stylesheet'>
</head>
<body>
<div class='background'>
<img src="images/appointmentback.png">
</div>
<div class="header" data-aos='fade-down'>
<div class="headlogo">
<a href="https://sheikh-tafsir.github.io/octo-journey.github.io/"><img src="images/code1.png" height="75" width="200"></a>
</div>
<div class="headbar">
<i class="fa-solid fa-xmark xmark" onclick="settmin()"></i>
<i class="fa fa-bars bars" onclick="settmax()"></i>
</div>
<div class="headmenu">
<a href="#">Appointments</a>
<a href="docupdate.php">Update</a>
<a href="dashdoc.php">Profile</a>
<button class="logout"><a href="logout.php">Logout</a></button>
<i class="fa-solid fa-sun light" onclick="settmode()"></i>
<i class="fa-solid fa-moon dark" onclick="settmode()"></i>
</div>
</div>
<div class="headline">
<h1 class="fir">BOOKED </h1>
<h1 class="sec">APPOINTMENTS</h1>
</div>
<div class="apointtable">
<div class='doctor-box' data-aos='fade-left'>
<p class='heading-1' style='font-weight:bold; color:#ff3c78'>Patient Name</p>
<p class='heading-2' style='font-weight:bold; color:#ff3c78'>Date</p>
<p class='heading-2' style='font-weight:bold; color:#ff3c78'>Time</p>
<p class='heading-2' style='font-weight:bold; color:#ff3c78'>Day</p>
</div>
<?php
while ($row = $result->fetch_assoc()) {
echo "<div class='doctor-box' data-aos='fade-right'>";
echo "<p class='heading-1'>". $row['patient_name'] ."<p/>";
echo "<p class='heading-1'>". $row['date'] ."<p/>";
echo "<p class='heading-1'>". $row['time'] ."<p/>";
echo "<p class='heading-1'>". $row['day'] ."<p/>";
echo "</div>";
}
?>
</div>
<br>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
duration: 1000,
easing: 'ease',
once: true,
anchorPlacement: 'middle-bottom',
});
</script>
</body>
</html>