-
Notifications
You must be signed in to change notification settings - Fork 6
/
certificate.php
173 lines (127 loc) · 4.12 KB
/
certificate.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php error_reporting(0); ?>
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>SLOCV Unit</title>
<link rel="icon" type="image/png" href="228-2285847_emblem-of-sri-lanka-national-emblem-of-sri.png">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<body>
<?php
session_start();
include "DBconnection.php";
if(!isset($_SESSION['email']))
{
header("location:loginindex.php");
}
else
{
$id = $_SESSION['id'];
$email = $_SESSION['email'];
$result = mysqli_query($conn,"SELECT * FROM patients WHERE id='" . $id."'");
$row = mysqli_fetch_array($result);
if($row >0)
{
$name=$row['name'];
$password =$row['password'];
$city =$row['city'];
$vaccinename =$row['vaccinename'];
$email =$row['patientEmail'];
$nic =$row['nic'];
}
$result = mysqli_query($conn,"SELECT * FROM first_vaccine_requests WHERE patientID='" . $id."'");
$row = mysqli_fetch_array($result);
if($row >0)
{
$FL = $row['FvaccineLocation'];
$FD = $row['FvaccineTime'];
$status1 = $row['status'];
}
$result = mysqli_query($conn,"SELECT * FROM second_vaccine_requests WHERE patientID='" . $id."'");
$row = mysqli_fetch_array($result);
if($row >0)
{
$SD = $row['SvaccineTime'];
$SL = $row['SvaccineLocation'];
$status2 = $row['status'];
}
}
?>
<div class="printable">
<div class="topnav" style=" margin-top: -20px " >
<a style="padding-top:0px; padding-bottom: 0px"><img height="60px" src="228-2285847_emblem-of-sri-lanka-national-emblem-of-sri.png"></a>
<h2 style="font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, 'sans-serif'">SRI LANKAN ONLINE COVID VACCINATION</h2>
</div>
<div align="center" style="padding: 30px; " >
<h1 align="center" >Certification Of Covid Vaccine</h1>
<table class="table table-hover table-primary" align="center" style="margin-top: -100px; color: black; font-size: 14px; border:10px ">
<thead>
<tr>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Name</th>
<th scope="row"><?php echo $name;?></th>
</tr>
<tr class="table-primary">
<th scope="row">Email</th>
<td ><?php echo $email; ?></td>
<br>
</tr>
<tr class="table-primary">
<th scope="row">City</th>
<td ><?php echo $city; ?> </td>
<br>
</tr>
<tr class="table-primary">
<th scope="row">National Identity Card Number</th>
<td ><?php echo $nic; ?> </td>
</tr>
<tr>
<th scope="row">Vaccine Name</th>
<td><?php echo $vaccinename ?></td>
</tr>
<tr>
<th scope="row">First Vaccine Location</th>
<td><?php echo $FL; ?></td>
</tr>
<tr class="table-primary">
<th scope="row">First Vaccine Date</th>
<td><?php echo $FD; ?></td>
</tr>
<tr>
<th scope="row">Second Vaccine Location</th>
<td ><?php echo $SL; ?></td>
<br>
</tr>
<tr class="table-primary">
<th scope="row">Second Vaccine Date</th>
<td ><?php echo $SD; ?></td>
<br>
</tr>
<tr class="table-primary">
<th scope="row">First Vaccine Status</th>
<td ><?php echo $status1; ?></td>
<br>
</tr>
<tr class="table-primary">
<th scope="row">Second Vaccine Status</th>
<td ><?php echo $status2; ?></td>
<br>
</tr>
</tbody>
</table>
<h3 align="center" >Here by, We certify the above details are correct and We confirm it - Ministry of Health, Sri Lanka Government. </h3>
<h5 align="center" >DR. Ajith Jayawardene (MBBS,Phil,JKAF) </h5>
</div>
</div>
<div align="center"><button onClick="window.print();" class="btn btn-info">Certificate</button></div>
<script src="js/slider.js"></script>
</body>
</html>