-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocappointmentDisplay.php
135 lines (110 loc) · 3.94 KB
/
docappointmentDisplay.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
include 'connect.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Online Vaccination Portal</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Online Vaccination Portal</h1>
<div class="navbar">
<a href="home.php">Home</a>
<a href="news.php">News</a>
<div class="dropdown">
<button class="dropbtn">Information
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="about.php">About</a>
<a href="vaccination.php">Vaccination Information</a>
<a href="appointment.php">Appointment</a>
<a href = "foreign.php">Foreigner Appointment</a>
<a href = "vacappointment.php">All vaccination details</a>
<a href = "docdetails.php"> Doctor availabilities</a>
<a href = "order.php">Order your vaccine</a>
<a href="center.php">Vaccination Centers</a>
<a href="contact.php">Contact Us</a>
</div>
</div>
<?php
session_start();
if (isset($_SESSION['FIRST_NAME'])) {
echo '<a href="home.php" class="navbar-btn" onclick="return confirmLogout();">Sign Out</a>';
echo '<script>
function confirmLogout() {
var result = confirm("Are you sure you want to sign out?");
if (result) {
return true; // Proceed with the sign out process
} else {
return false; // Cancel the sign out process
}
}
</script>';
} else {
echo '<a href="login.php" class="navbar-btn">Login</a>';
}
?>
</div>
</header>
<h2>All apointments</h2>
<div class="tbl">
<table class="tbl2">
<tr>
<th>Appointmen</th>
<th>Doctor Name</th>
<th>Visiting center</th>
<th>Visitin date</th>
<th>Visiting time</th>
<th>Dosage of Vaccine</th>
<th>Operation</th>
</tr>
<?php
$sql="Select * from `docdetails`";
$result=mysqli_query($con,$sql);
if($result){
while($row=mysqli_fetch_assoc($result)){
$doc_app=$row['doc_app'];
// $app_num=$row['app_num'];
$doc_name=$row['doc_name'];
$vis_center=$row['vis_center'];
$vis_date=$row['vis_date'];
$vis_time=$row['vis_time'];
$vac_avail=$row['vac_avail'];
?>
<tr>
<td> <?php echo $row['doc_app']; ?> </td>
<td> <?php echo $row['doc_name']; ?> </td>
<td> <?php echo $row['vis_center']; ?> </td>
<td> <?php echo $row['vis_date']; ?> </td>
<td> <?php echo $row['vis_time']; ?> </td>
<td> <?php echo $row['vac_avail']; ?> </td>
<td> <?php
echo '<a href="docedit.php?
doceditid='.$doc_app.'"><button style="color:white; background-color:green; width:90px; height:50px; border-radius:8px; cursor: pointer;border: none;font-size: 100%; margin-left:10px; ">Edit</button></a>';
echo '<a href="docremove.php?
docremoveid='.$doc_app.'"><button style="color:white; background-color:red; width:90px; height:50px; border-radius:8px; cursor: pointer;border: none;font-size: 100%; margin-left:10px; ">Remove</button></a>';
?> </td>
</tr>
<?php
}
}
?>
<!-- <tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
<td>Germany</td>
<td>Germany</td>
<td>Germany</td>
<td>Germany</td>
</tr> -->
</table>
</div>
<footer>
<p>© 2023 Online Vaccination Portal</p>
</footer>
</body>
</html>