forked from aryathulasi/audiometry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
step5.php
469 lines (380 loc) · 20.3 KB
/
step5.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<?php
// connection
include_once( 'connection.php' );
$db = new Database();
$message = "";
//var_dump($_POST);
session_start();
//var_dump($_SESSION);
if( isset( $_GET['value'] ) ) {
// $uid = selectFromTable("uid", " t_register ", " 0 " , $db);
$lor = $_SESSION['t_lor'];
if( $lor == 'l'){
$testid = $_SESSION['t_l_id'];
} else {
$testid = $_SESSION['t_r_id'];
}
$A125Hz = $_GET['value'];
$sql = 'update t_test set 125Hz=:125Hz where testid=:testid';
$params = array(':125Hz'=>$A125Hz,':testid'=>$testid);
// var_dump($params);
$result = $db->execute_query( $sql, $params );
// $_SESSION['uid']= $db->display($stmnt,$params)[0]['uid'];
// header('Location: step6.php');
// $testid = $_SESSION['testid'];
// echo $value = $_GET['value'];
// // exit();
// $A125Hz = "$value";
// $sql = 'select * from t_register where uid = :testid';
// $result = $db->display( $sql, array(':testid' => $testid) );
// if( $result ) {
// $sql = 'update t_test set 125Hz=:125Hz where testid=:testid';
// $params = array(':125Hz'=>$A125Hz,':testid'=>$testid);
// // var_dump($params);
// $result = $db->execute_query_return_id( $sql, $params );
// // $_SESSION['uid']= $db->display($stmnt,$params)[0]['uid'];
// header('Location: step5.php');
// }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Hearing Solution</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Swiper CSS -->
<link rel="stylesheet" href="css/swiper.min.css">
<!-- Styles -->
<link rel="stylesheet" href="style.css">
</head>
<body class="single-page">
<header class="site-header">
<div class="nav-bar">
<div class="container">
<div class="row">
<div class="col-12 d-flex flex-wrap justify-content-between align-items-center">
<div class="site-branding d-flex align-items-center">
<a class="d-block" href="index.php" rel="home"><!--img class="d-block" src="images/logo.png" alt="logo"--></a>
</div><!-- .site-branding -->
<nav class="site-navigation d-flex justify-content-end align-items-center">
<ul class="d-flex flex-column flex-lg-row justify-content-lg-end align-items-center">
<li class="current-menu-item"><a href="index.php">Home</a></li>
<li><a href="index.php">Logout</a></li>
<!--li><a href="news.html">News</a></li-->
<li><a href="about.html">About us</a></li>
<!--li class="call-btn button gradient-bg mt-3 mt-md-0">
<a class="d-flex justify-content-center align-items-center" href="#"><img src="images/emergency-call.png"> +34 586 778 8892</a>
</li-->
</ul>
</nav><!-- .site-navigation -->
<div class="hamburger-menu d-lg-none">
<span></span>
<span></span>
<span></span>
<span></span>
</div><!-- .hamburger-menu -->
</div><!-- .col -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .nav-bar -->
<div class="container">
<div class="row">
<div class="col-12">
<h1> Audiometry</h1>
<h5><i> Enjoy Listening Everyday</i></h5>
<div class="breadcrumbs">
<ul class="d-flex flex-wrap align-items-center p-0 m-0">
<a class="button gradient-bg" href="about_hearing.html">About Hearing</a>
<a class="button gradient-bg" href="hearing loss.html">Hearing Loss</a>
<a class="button gradient-bg" href="hearing_focus.html">Hearing Focus</a>
</ul>
</div><!-- .breadcrumbs -->
</div>
</div>
</div>
<!--img class="header-img" src="images/about-bg.png" alt=""-->
</header><!-- .site-header -->
<!--div class="med-history">
<div class="row align-items-end"-->
<script>alert(values are Successful updated);</script>
<link href="style.css" rel="stylesheet" type="text/css" />
<div class="container">
<div class="row">
<div class="col">
<!--h1> Choose Ear</h1-->
<div text="left">
<!--form name="form1" action="step4.php" method="post">
<table width="585" height="166">
<tr>
<div class="wrapper">
<div class="step">
<div id="step1" >Step1</div>
<div id="step2">Step2</div>
<div class="step2">Step3</div>
<div class="step2" >Step4</div>
<div class="step2">Step5</div>
<div class="step2" >Step6</div>
<div class="step2" >Step7</div>
</div>
</div>
</tr-->
<div class="pbox" style="height:620px;">
<form name="form1" action="step6.php" method="post">
<table width="585" height="298">
<tr>
<td height="50" colspan="2"><div class="btitle">250 HZ</div></td>
</tr>
<tr>
<td width="43">0</td>
<td width="262" height="51">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_0.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="51"><input type="radio" name="outbox" value="10" required onclick="window.location='step6.php?value=10'" id="0"/><label for="0"> Yes</label></td>
</tr>
<tr>
<td width="43">10</td>
<td width="262" height="51">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_10.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="51"><input type="radio" name="outbox" value="20" required onclick="window.location='step6.php?value=20'" id="1" /><label for="1"> Yes</label></td>
</tr>
<tr>
<td width="43">20</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_20.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="30" required onclick="window.location='step6.php?value=30'" id="2" /><label for="2"> Yes</label></td>
</tr>
<tr>
<td width="43">30</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_30.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="40" required onclick="window.location='step6.php?value=40'" id="3" /><label for="3"> Yes</label></td>
</tr>
<tr>
<td width="43">40</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_40.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="50" required onclick="window.location='step6.php?value=50'" id="4"/><label for="4"> Yes</label></td>
</tr>
<tr>
<td width="43">50</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_50.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="60" required onclick="window.location='step6.php?value=60'" id="5"/><label for="5"> Yes</label></td>
</tr>
<tr>
<td width="43">60</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_60.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="70" required onclick="window.location='step6.php?value=70'" id="6"/><label for="6"> Yes</label></td>
</tr>
<tr>
<td width="43">70</td>
<td width="262" height="55">
<audio controls>
<source src="audio250/audiocheck.net_puretone_250_70.mp3" type="audio/mpeg">
</audio>
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="80" required onclick="window.location='step6.php?value=80'" id="7"/><label for="7"> Yes</label></td>
</tr>
<tr>
<td width="43"></td>
<td width="262" height="55">
</td>
<td width="264" height="55"><input type="radio" name="outbox" value="0" required onclick="window.location='step6.php?value=00'" id="9" /><label for="8"> No</td>
</tr>
</table>
</form>
</div>
</div>
<!--/table>
</form-->
</div>
<div class="col">
<div >INSTRUCTIONS
<ul>
<li>Adjust the Full volume to where you can hear comfortably.</li>
<li>Select head set for more accurate values</li>
<li>Please complete all steps</li>
<li>Please don’t adjust it again during this screening.</li>
<li> Click play. Then adjust the volume to where you can hear comfortably.</li>
</ul>
</div>
</div>
</div>
</div>
<!--h2>MedArt History</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris scelerisque, at rutrum nulla dictum. Ut ac ligula sapien. Suspendisse cursus faucibus finibus. Curabitur ut augue finibus, luctus tortor at, ornare erat. Nulla facilisi. Sed est risus, laoreet et quam non, viverra accumsan leo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris scelerisque, at rutrum nulla dictum. Ut ac ligula sapien. Suspendisse cursus faucibus finibus. Curabitur ut augue finibus, luctus tortor at, ornare erat. </p>
<a class="d-inline-block button gradient-bg" href="#">Read More</a>
</div>
<div class="col-12 col-lg-6 mt-5 mt-lg-0">
<img class="responsive" src="images/about.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="faq-stuff">
<div class="container">
<div class="row">
<div class="col-12">
<h2>Faq & Stuff</h2>
</div>
<div class="col-12 col-lg-6 mb-5 mb-lg-0">
<div class="accordion-wrap type-accordion">
<h3 class="entry-title d-flex justify-content-between align-items-center active">Elit mir congue ligula et efficitur pellentesqu<span class="arrow-r"></span></h3>
<div class="entry-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris.</p>
</div>
<h3 class="entry-title d-flex justify-content-between align-items-center">Pulvinar elit mi. Integer congue ligula et efficitur <span class="arrow-r"></span></h3>
<div class="entry-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris.</p>
</div>
<h3 class="entry-title d-flex justify-content-between align-items-center">Pellentesque pulvinar elit mi. Integer congue<span class="arrow-r"></span></h3>
<div class="entry-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris.</p>
</div>
</div>
</div>
<div class="col-12 col-lg-6 mt-5 mt-lg-0">
<div class="row">
<div class="col-12 col-md-6">
<div class="professional-box">
<h2 class="d-flex align-items-center">Professional</h2>
<img src="images/cardiogram-2.png" alt="">
<p>Lorem ipsum dolor sit amet, cons ectetur adipiscing elit. Donec males uada lorem.</p>
</div>
</div>
<div class="col-12 col-md-6">
<div class="quality-box">
<h2 class="d-flex align-items-center">Quality</h2>
<img src="images/hospital.png" alt="">
<p>Lorem ipsum dolor sit amet, cons ectetur adipiscing elit. Donec males uada lorem.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="medical-team">
<div class="container">
<div class="row">
<div class="col-12">
<h2>The Medical Team</h2>
</div>
<div class="col-12 col-md-6 col-lg-3">
<div class="medical-team-wrap">
<img src="images/team-1.jpg" alt="">
<h4>Christinne Smith</h4>
<h5>PHD Surgeon</h5>
</div>
</div>
<div class="col-12 col-md-6 col-lg-3 mt-5 mt-md-0">
<div class="medical-team-wrap">
<img src="images/team-2.jpg" alt="">
<h4>Anna Gustav</h4>
<h5>PHD Surgeon</h5>
</div>
</div>
<div class="col-12 col-md-6 col-lg-3 mt-5 mt-lg-0">
<div class="medical-team-wrap">
<img src="images/team-3.jpg" alt="">
<h4>Phillip Williams</h4>
<h5>PHD Surgeon</h5>
</div>
</div>
<div class="col-12 col-md-6 col-lg-3 mt-5 mt-lg-0">
<div class="medical-team-wrap">
<img src="images/team-4.jpg" alt="">
<h4>Gina James</h4>
<h5>PHD Surgeon</h5>
</div>
</div>
</div>
</div>
</div>
<div class="subscribe-banner">
<div class="container">
<div class="row">
<div class="col-12 col-lg-8 offset-lg-2">
<h2>Subscribe to our newsletter</h2>
<form>
<input type="email" placeholder="E-mail address">
<input class="button gradient-bg" type="submit" value="Subscribe">
</form>
</div>
</div>
</div>
</div-->
<footer class="site-footer">
<div class="footer-widgets">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 col-lg-4">
<div class="foot-about">
<h2><a href="#"><img src="images/logo.png" alt=""></a></h2>
<!--p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada lorem maximus mauris scelerisque, at rutrum nulla dictum. Ut ac ligula sapien.</p>
<p class="copyright"><!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved| Privacy policy <!--i class="fa fa-heart" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a-->
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div><!-- .foot-about -->
</div><!-- .col -->
<div class="col-12 col-md-6 col-lg-4 mt-5 mt-md-0">
<div class="foot-contact">
<!--h2>Contact</h2>
<ul class="p-0 m-0">
<li><span>Addtress:</span>Mitlton Str. 26-27 London UK</li>
<li><span>Phone:</span>+53 345 7953 32453</li>
<li><span>Email:</span>[email protected]</li>
</ul-->
</div>
</div><!-- .col -->
<div class="col-12 col-md-6 col-lg-4 mt-5 mt-md-0">
<div class="foot-links">
<h2>Usefull Links</h2>
<ul class="p-0 m-0">
<li><a href="index.php">HOME</a></li>
<li><a href="about_hearing.html">ABOUT HEARING</a></li>
<li><a href="about.html">ABOUT US</a></li>
<li><a href="hearing_loss.php">HEARING LOSS</a></li>
</ul>
</div><!-- .foot-links -->
</div><!-- .col -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .footer-widgets -->
</footer><!-- .site-footer -->
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.collapsible.min.js'></script>
<script type='text/javascript' src='js/swiper.min.js'></script>
<script type='text/javascript' src='js/jquery.countdown.min.js'></script>
<script type='text/javascript' src='js/circle-progress.min.js'></script>
<script type='text/javascript' src='js/jquery.countTo.min.js'></script>
<script type='text/javascript' src='js/jquery.barfiller.js'></script>
<script type='text/javascript' src='js/custom.js'></script>
</body>
</html>