-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreport.php
119 lines (105 loc) · 4.55 KB
/
report.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
<?php
$id = $_GET['id']; // primary key for the donor in the database
require_once 'DBConnect.php';
$db = new DBConnect();
$db->authLogin();
// Search by Id
$flag = $db->getReportById($id);
$title = "Report";
include 'layout/header1.php';
?>
</style>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<img class="img-fluid " src="assets/IVAC logo.png" width="80px">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="register.php">Register a Person</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="details-1.php">Get Vaccination Report</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Log Out</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container" style="margin-bottom:50px">
<div class="container report-box" id="printableArea" style="margin-top:5%; border: 1px solid transparent; padding: 20px; border-radius: 10px; box-shadow:0px 1px 10px rgba(0,0,0,.5)">
<img class="img-fluid" src="assets/FreeVaccineLogo.png" width="80px" >
<h4 style="text-align:center">Vaccination Report</h4>
<hr>
<div class="container">
<table class="table table-condensed">
<tr>
<td><label><b>ID :</b></label></td>
<td>COV<?= $flag[0]['ID'];?></td>
</tr>
<tr>
<td><label><b>Name :</b></label></td>
<td><?= $flag[0]['fname']." ".$flag[0]['mname']." ".$flag[0]['lname']; ?></td>
</tr>
<tr>
<td><label><b>Gender :</b></label></td>
<td><?= $flag[0]['sex']; ?></td>
</tr>
<tr>
<td><label><b>Email :</b></label></td>
<td><?= $flag[0]['email']; ?></td>
</tr>
<tr>
<td><label><b>Mobile :</b></label></td>
<td><?= $flag[0]['mobile']; ?></td>
</tr>
<tr>
<td><label><b>D.O.B :</b></label></td>
<td><?= $flag[0]['dob']; ?></td>
</tr>
<tr>
<td><label><b>Vaccination Date :</b></label></td>
<td><?= $flag[0]['dov']; ?></td>
</tr>
<tr>
<td><label><b>Blood Group :</b></label></td>
<td><?= $flag[0]['bg']; ?></td>
</tr>
<tr>
<td><label><b>Address :</b></label></td>
<td><?= $flag[0]['haddress']; ?></td>
</tr>
<tr>
<td><label><b>City :</b></label></td>
<td><?= $flag[0]['city']; ?></td>
</tr>
<tr>
<td><label><b>State :</b></label></td>
<td><?= $flag[0]['hstate']; ?></td>
</tr>
<tr>
<td><label><b>Pincode :</b></label></td>
<td><?= $flag[0]['pincode']; ?></td>
</tr>
</table></div>
</div>
<div class="container" style="width:100%; margin-top: 15px">
<input type="button" class="btn-primary btn" style="float:right; padding: 5px 40px; font-size:1.2em" onclick="printDiv('printableArea')" value="Print" />
</div>
</div>
<script>
function printDiv(printableArea) {
var printContents = document.getElementById(printableArea).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>
<?php
include 'layout/footer1.php'
?>