-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
372 lines (312 loc) · 13.3 KB
/
index.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html>
<head>
<title></title>
<?php include 'links/links.php'; ?>
<?php include 'css/style.php'; ?>
</head>
<body>
<nav class="navbar navbar-expand-lg nav_style navbar-light p-3 bg-light color-white">
<a class="navbar-brand pl-5" href="#">Co<span> <img src="image/m3.png" width ="70" height="50"></span>vid Tracker</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto pr-5">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#aboutid">About </a>
</li>
<li class="nav-item">
<a class="nav-link" href="#sympid">Symptoms</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#preventid">Prevention</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contactid">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="main_header">
<div class="row w-100 h-100"> <!-- to adjust scroll menu -->
<div class="col-lg-5 col-md-5 col-12 order-lg-1 order-2">
<div class="leftside w-100 h-100 d-flex justify-content-center align-items-center">
<img src="image/eksath.png" width="400" height= "400" >
</div>
</div>
<div class="col-lg-7 col-md-7 col-12 order-lg-2 order-1">
<div class="rightside w-100 h-100 d-flex justify-content-center align-items-center"> <!-- to equally align item in center in = parts-->
<h1>Let's stay Safe & Fight Together <br> Against Co<span class="corona_rot" > <img src="image/corona.png" width= "110 " height="110"> </span>rona Virus</h1>
</div>
</div>
</div>
</div>
<!-- Corona Tracker ------>
<section class="corona_update">
<div class = "mb-3 col-12">
<h3 class="text-center">Covid-19 Update</h3>
</div>
<div class="d-flex justify-content-around align-items-center count_style "> <!-- to align all valuw with equal space -->
<div>
<h1 class="count"> 24234536</h1>
<p> Passenger Scan at Airport</p>
</div>
<div>
<h1 class="count"> 43545</h1>
<p>Active Covid-19 Cases*</p>
</div>
<div>
<h1 class="count"> 543545</h1>
<p> Cured/Discharged Cases</p>
</div>
<div>
<h1 class="count"> 12222</h1>
<p> Death </p>
</div>
</div>
</section>
<div class="container-fluid sub_section pt-5 pb-5 " id="aboutid">
<div class="section_header text-center mb-5 mt-4">
<h3 > About Covid-19 </h3>
</div>
<div class ="row pt-4 "> <!-- to put some gap between about section and image -->
<div class="col-lg-5 col-md-6 col-12"> <!--- to put some margin from left ---->
<img src="image/coro.jpg" class="img-fluid">
</div>
<div class="col-lg-7 col-md-7 col-12">
<h2>What is Corona Virus ?</h2>
<p>Corona Virus is a infectious disease caused by the most recently discovered corona.</p>
<p>This virus is spreading at a huge rate in various country which need to be bring in light by us .</p>
</div>
</div>
</div>
<div class="container-fluid pt-5 pb-5 " id="sympid">
<div class="section_header text-center mb-3 mt-4">
<h3 >Covid Symptoms </h3>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-12 ">
<figure class="text-center">
<img src="image/cough.png" class="image-fluid" width="120" height="120">
<figcaption> Cough</figcaption>
</figure>
</div>
<div class="col-lg-4 col-md-4 col-12 d-flex justify-content-center ">
<figure class="text-center">
<img src="image/fever.jpg" class="image-fluid" width="120" height="120">
<figcaption> Fever</figcaption>
</figure>
</div>
<div class="col-lg-4 col-md-4 col-12 d-flex justify-content-center ">
<figure class="text-center">
<img src="image/sneez.png" class="image-fluid" width="120" height="120">
<figcaption> Sneezing</figcaption>
</figure>
</div>
<div class="col-lg-4 col-md-4 col-12 d-flex justify-content-center ">
<figure class="text-center">
<img src="image/sneez.png" class="image-fluid" width="120" height="120">
<figcaption> Sneezing</figcaption>
</figure>
</div>
<div class="col-lg-4 col-md-4 col-12 d-flex justify-content-center ">
<figure class="text-center">
<img src="image/sneez.png" class="image-fluid" width="120" height="120">
<figcaption> Sneezing</figcaption>
</figure>
</div>
<div class="col-lg-4 col-md-4 col-12 d-flex justify-content-center ">
<figure class="text-center">
<img src="image/sneez.png" class="image-fluid" width="120" height="120">
<figcaption> Sneezing</figcaption>
</figure>
</div>
</div>
</div>
</div>
<div class="container-fluid sub_section pt-5 pb-5 " id="preventid">
<div class="section_header text-center mb-5 mt-4">
<h3 >Prevention - 6 Thing to keep in Mind </h3>
</div>
<div class="container">
<div class="row pt-3">
<div class="col-lg-4 col-md-4 col-12 mt-5">
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<figure class="text-center">
<img src="image/handwash.png" class="img-fluid" width="90" height="90">
</figure>
</div>
<div class="col-lg-8 col-md-8 col-12">
<p>Wash your hand 20 second on regular basis with soap or water to keep virus away.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12 mt-5">
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<figure class="text-center">
<img src="image/home.jpeg" class="img-fluid" width="90" height="90">
</figure>
</div>
<div class="col-lg-8 col-md-8 col-12">
<p>Wash your hand 20 second on regular basis with soap or water to keep virus away.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12 mt-5">
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<figure class="text-center">
<img src="image/mask1.png" class="img-fluid" width="90" height="90">
</figure>
</div>
<div class="col-lg-8 col-md-8 col-12">
<p>Wash your hand 20 second on regular basis with soap or water to keep virus away.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12 mt-5">
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<figure class="text-center">
<img src="image/tv.jpeg" class="img-fluid" width="90" height="90">
</figure>
</div>
<div class="col-lg-8 col-md-8 col-12">
<p>Wash your hand 20 second on regular basis with soap or water to keep virus away.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12 mt-5">
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<figure class="text-center">
<img src="image/fever.jpg" class="img-fluid" width="90" height="90">
</figure>
</div>
<div class="col-lg-8 col-md-8 col-12">
<p>Wash your hand 20 second on regular basis with soap or water to keep virus away.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--------------------- Contact Section --------------------->
<div class="container-fluid pt-5 pb-5 " id="contactid">
<div class="section_header text-center mb-5 mt-4">
<h3 >Contact Us- ASAP </h3>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2 col-12">
<form action="" method="POST">
<div class="form-group">
<label >Username</label>
<input type="text" class="form-control" name="username" placeholder="name" required autocomplete="off">
</div>
<div class="form-group">
<label>Email</label>
<input type="email" class="form-control" name="email" placeholder="[email protected]" autocomplete="off" required >
</div>
<div class="form-group">
<label >Mobile Number</label>
<input type="number" class="form-control" name="mobile" placeholder="mobile" required autocomplete="off">
</div>
<div class="form-group">
<label >Select Symptoms </label> <br>
<div class="custom-control custom-checkbox custom-control-inline text-capitalize">
<input type="checkbox" class="custom-control-input" id="customcheckbox1" name="coronasym[ ]" value="cold" >
<label class="custom-control-label" for="customcheckbox1"> Cold</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline text-capitalize">
<input type="checkbox" class="custom-control-input" id="customcheckbox2" name="coronasym[ ]" value="fever" >
<label class="custom-control-label" for="customcheckbox2"> Fever</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline text-capitalize">
<input type="checkbox" class="custom-control-input" id="customcheckbox3" name="coronasym[ ]" value="cold" >
<label class="custom-control-label" for="customcheckbox3"> Difficulty in Breath</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline text-capitalize">
<input type="checkbox" class="custom-control-input" id="customcheckbox4" name="coronasym[ ]" value="tired" >
<label class="custom-control-label" for="customcheckbox4"> Tiredness</label>
</div>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Description</label>
<textarea class="form-control" id="exampleFormControlTextarea1"
rows="3" name="msg"></textarea >
</div>
<button type="submit" class="btn btn-primary" name="submit">Submit</button>
</form>
</div>
</div>
</div>
</div>
<div class="container scrolltop float-right pr-5">
<i class="fa fa-arrow-up" onclick="topFunction()" id="myBtn"> </i>
</div>
<footer class="mt-5">
<div class="footer_style text-white text-center container-fluid">
<p>Copyright by Let's Rule it </p>
</div>
</footer>
<!-- // ********************* top arrow script ***************// -->
<script type="text/javascript">
$('.count').counterUp({
delay:12,
time:3000
})
mybutton = document.getElementById("myBtn");
window.onscroll = function() {scrollFunction()};
function scrollFunction(){
if(document.body.scrollTop > 100 || document.documentElement.scrollTop > 100){
mybutton.style.display = "block";
}else{
mybutton.style.display = "none";
}
}
// When user click on the button , scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // safari
document.documentElement.scrollTop = 0; // opera ,chrome
}
</script>
</body>
</html>
<?php
include 'dbcon.php';
if(isset($_POST[ 'submit' ] ) ){
$username = $_POST[ 'username' ];
$email = $_POST[ 'email'];
$mobile= $_POST[ 'mobile' ];
$symp = $_POST[ 'coronasym' ];
$msg = $_POST[ 'msg' ];
$chk= " " ;
foreach($symp as $chk1) {
$chk .= $chk1. ", " ;
}
$insertquery = "insert into coronacase(username, email , mobile number, symp, message) values('$username' , '$email' , '$mobile' , '$chk' , '$msg' )" ;
$query = mysqli_query($con, $insertquery);
if($query){
?>
<script >
alert("inserted");
</script>
<?php
}else{
?>
<script >
alert(" nor inserted");
</script>
<?php
}
}
?>