-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
quarantine_wardsu.php
209 lines (171 loc) · 6.09 KB
/
quarantine_wardsu.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<?php include("funs.php"); ?>
<html>
<head>
<title>Clinitical</title>
<link rel = "icon" href =
"images/logo.png"
type = "image/x-icon">
<meta charset="UTF-8">
<meta name="description" content="Clinitical.com provides detailed information about #Covid-19">
<meta name="keywords" content="coronavirus, healthcare, Covid-19">
<meta name="author" content="Abdullah Sheikh">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/quarantine_ward_css.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<!----Navigation ---->
<section id="nav-bar">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#"><img src="images/logo.png">Clinitical.com</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 ml-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="isolation_wardsu.php">Isolation Wards</a>
</li>
<li class="nav-item">
<a class="nav-link" href="quarantine_wardsu.php">Quarantine Wards</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.php">Login</a>
</li>
</ul>
</div>
</nav>
</section>
<!-- Main Heading -->
<section id="heading">
<div class ="container">
<h1>Quarantine wards</h1>
</div>
</section>
<!-- End Main Heading -->
<!-- General Info -->
<section id="generalinfo">
<h1>Overview</h1>
<div class ="container">
<div class="row generalinfo">
<div class="col-md-4 text-center">
<div class="icon1">
<img src="images/gif/dialcall_gif.gif" >
<!-- <i class="fa fa-h-square" ></i> -->
</div>
<h3> Dial 1166</h3>
<h5>Health helpline</h5>
</div>
<div class="col-md-4 text-center">
<img src="images/gif/hospital.gif" >
<h3>Total Quarantine Wards</h3>
<h6>total Wards:<?php get_quaratine_count (); ?></h6>
<h5></h5>
</div>
<div class="col-md-4 text-center">
<img src="images/gif/bed_gif.gif" >
<h3>quarantined Patients</h3>
<h6>total :<?php quarantine_count (); ?></h6>
<h4></h4>
</div>
</div>
</section>
<!-- End General Info -->
<!-- Map -->
<!-- Patients record section -->
<section id="viewpatients" style="margin-top:50px;margin-bottom:40px;">
<div class ="container">
<div class "card-body" style="background:#202124;color:#fff; margin:8px;padding:8px;">
<div class="row">
<div class="col-md-6">
<h2>Patient Record</h2>
</div>
<div class="col-md-6">
<form class="form-group" action="search_patients.php" method="post">
<div class="row">
<div class="col-md-8">
<input type="text" name="search_id" class="form-control">
</div>
<div class="col-md-4">
<input type="submit" name="patient_search" class="btn btn-primary" value="Search">
</div>
</div>
</form>
</div>
<hr/>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover table-dark">
<thead>
<tr>
<th scope="col">Patient ID</th>
<th scope="col">Name</th>
<th scope="col">Age</th>
<th scope="col">Phone</th>
<th scope="col">Email</th>
<th scope="col">City</th>
<th scope="col">Status</th>
<!-- <td> "?> <button type="button" class="btn btn-success btn-rounded" onclick="location.href='updatepatient.php?id= $ids'">Update</button> "</td>-->
</tr>
</thead>
<tbody>
<?php get_patients_details (); ?>
</tbody>
</table>
</div>
</div>
</section>
<!-- Patients records section ends-->
<section id="showMap" >
<div class="ah1">
<h1 style="font-size:80px;">Maptical Data</h1>
</div>
<?php require_once "mapQuarantine.php"; ?>
</section>
<!------------footer-------------->
<section id="footer">
<div class ="container text-center">
<p>© Copyright 2020 All Rights Reserved - Clinitical.com </p>
</div>
</section>
</body>
</html>
<?php
function get_patients_details ()
{
$con=mysqli_connect("localhost","root","asd32145","Covid_19_dbms");
$quary="select *from patients where patient_status='Qurantine';";
$result=mysqli_query($con,$quary);
while($row=mysqli_fetch_array($result))
{
$id=$row['patient_id'];
$fname=$row['patient_name'];
$age=$row['patient_age'];
$phone=$row['patient_phone'];
$email=$row['patient_email'];
$city=$row['patient_city'];
$status=$row['patient_status'];
$ids='100011';
echo"
<tr>
<td>$id</td>
<td>$fname</td>
<td>$age</td>
<td>$phone</td>
<td>$email</td>
<td>$city</td>
<td>$status</td>
</tr>";
}
}
?>