forked from aryathulasi/audiometry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
step2.php
422 lines (303 loc) · 16 KB
/
step2.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
<?php
// connection
include_once( 'connection.php' );
$db = new Database();
$message = "";
//var_dump($_POST);
session_start();
//var_dump($_SESSION);
if( isset( $_POST['next'] ) ) {
// var_dump($_POST);
// $uid = selectFromTable("uid", " t_register ", " 0 " , $db);
$uid = $_SESSION['uid'];
$outbox = $_POST['outbox'];
$go = true;
if( isset($_SESSION['t_l_id']) ) {
if( ! is_null( $_SESSION['t_l_id'] ) ) {
$go = false;
}
}
if( !$go ) {
$sql = 'update t_test set outbox=:outbox where testid=:testid';
$params = array(':outbox'=> $outbox,':testid'=> $_SESSION['t_l_id']);
$result = $db->execute_query( $sql, $params );
}
$go = true;
if( isset($_SESSION['t_r_id']) ) {
if( ! is_null( $_SESSION['t_r_id'] ) ) {
$go = false;
}
}
if(! $go ){
$sql = 'update t_test set outbox=:outbox where testid=:testid';
$params = array(':outbox'=> $outbox,':testid'=> $_SESSION['t_r_id']);
$result = $db->execute_query( $sql, $params );
}
header('Location: step3.php');
// $testid = $_SESSION['testid'];
// var_dump($testid);
// var_dump($db->display($stmnt,$params)[0]['testid']) ;
// $sql = 'select * from t_register where uid = :testid';
// $result = $db->display( $sql, array(':testid' => $uid) );
// if(! $result ) {
// $date=Date('y-m-d'); echo"123";
// $sql = 'insert into t_test( uid, outbox ,date)values(:uid,:outbox ,:date)';
// $params = array(':uid'=>$uid,':outbox'=>$outbox,':date'=>$date);
// var_dump($params);
// $result = $db->execute_query_return_id( $sql, $params );
// // $_SESSION['uid']= $db->display($stmnt,$params)[0]['uid'];
// header('Location: step2.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>
<div class="container" >
<div class="row">
<!--h1> Select Your Outbox</h1-->
<div class="col">
<div text="left">
<form name="form1" action="" method="post">
<table width="585" height="166">
<tr>
<td width="597" height="50"><div class="btitle">SELECT YOUR OUTBOX</div></td>
</tr>
<tr>
<td height="53"><input type="radio" name="outbox" value="Speaker" required /> Speaker</td>
</tr>
<tr>
<td height="52"><input type="radio" name="outbox" value="Headphone" required /> Headphone</td>
</tr>
<tr>
<td height="52"><input type="submit" name="next" value="NEXT >>" class="button gradient-bg"/> </td>
</tr>
</table>
</form>
</div>
</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>