-
Notifications
You must be signed in to change notification settings - Fork 1
/
bookonlinenearby.php
251 lines (195 loc) · 7.62 KB
/
bookonlinenearby.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
<?php include("dbaseconnection.php"); ?>
<?php $lname=$_GET['lab_name'];?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>lifeline.in</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>lifeline.in</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</noscript>
<!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
<style type="text/css">
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url('page-loader2.gif') 50% 50% no-repeat rgb(0,0,0);
}
.wrapper {
padding: 3em 0em 1em;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
</head>
<body class="landing">
<div class="loader"></div>
<!-- Header -->
<header id="header"style="background:#202222;">
<h1 ><a href="index.html"><img src="lifelinelogo2.png" style="padding-top:4px;"height="90" width="250"></img></a></h1>
<nav id="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="faq.html">FAQs</a></li>
<li><a href="about.php">About </a></li>
<li><a href="add.php">Add your Lab</a></li>
<li><a href="lablogin.php">Login</a></li>
</ul>
</nav>
</header>
<!-- Banner -->
<?php
$sql3=mysql_query("Update lablist set likes=likes+1 where labname='$lname'");
$sql8=mysql_query("select address from labbranch where labname='$lname'");
$show=mysql_fetch_row($sql8);
?>
<!-- Two -->
<section id="two" class="wrapper style2 align-center">
<hr /><hr />
<div style="display:none;" id="out"><img src="animatedCircle.gif" /></div>
<div id="return"class="container">
<header>
<h2 style="font-size:40px;">Online Booking Form</h2>
<p >For help : +91-9717-06-5383</p>
</header>
<div class="row uniform 50%">
<div class="6u$ 12u$(xlarge)">
<table style="list-style:none;text-align:center;">
<tr><td style="font-weight:bold;">LAB :</td> <td style="font-weight:bold;"> <span style="font-size:20px;color:green;"><?php echo $lname;?></span></td></tr>
<tr><td style="font-weight:bold;">ADDRESS :</td> <td style="font-weight:bold;"> <span style="font-size:20px;color:green;"><?php echo $show[0];?></span></td></tr>
</table>
</div>
<input type="hidden" name="labname" id="labname" value="<?php echo $lname;?>" />
<input type="hidden" name="time" id="time" value="<?php print date("h:i:s a");?>" />
<input type="hidden" name="date" id="date" value="<?php print date("y-m-d");?>" />
<div class="6u 12u$(xlarge)">
<h3>Enter Your Details</h3>
</div>
<div class="6u 12u$(xlarge)">
<div class="select-wrapper">
<select name="tname" id="tname">
<option value="">- Select Pathology Test -</option>
<?php
$hub=mysql_query("select tname from testnames where labname='$lname'");
while($dat=mysql_fetch_row($hub))
{
echo'<option value="'.$dat[0].'">'.$dat[0].'</option>';
}
?>
</select>
</div>
</div>
<div class="6u 12u$(xsmall)">
<input type="text" name="name" id="name" value="" placeholder="Enter Your Name" required/>
</div>
<div class="6u$ 12u$(xsmall)">
<input type="text" name="phone" id="phone" value="" placeholder="phone number" required/>
</div>
<div class="6u$ 12u$(xlarge)"style="text-align:center;">
<input type="email" name="email" id="email" value="" placeholder=" Your Email Id" required/>
</div>
<div class="6u$ 12u$(xlarge)"style="text-align:center;">
<input type="text" name="address" id="address" value="" placeholder=" Your Address" required/>
</div>
<div class="6u$ 12u$(xlarge)"style="text-align:center;">
<button onclick="book()" id="book"class="button small">BOOK</button>
</div>
<script>
function book(){
$('#return').hide();
$('#out').show();
$.ajax({
type:"post",
url: "bookajaxnearby.php",
data: {name:$("#name").val() ,phone:$("#phone").val(), address:$("#address").val(),tname:$("#tname").val(),labname:$("#labname").val(),time:$("#time").val(),date:$("#date").val(),email:$("#email").val()},
success: function( data ) {
$("#out").hide();
$( "#return" ).html(data);
$('#return').show();
},
async:true
});
}
</script>
</div>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<div class="container">
<div class="row">
<section class="4u 6u(medium) 12u$(small)">
<h3>Introduction!</h3>
<p>We are first of our kind with striking features
which makes this portal more user friendly.
In lifeline we work for the benefit of people.</p>
<ul class="list">
<li>COMPARE PRICES.SAVE TIME. SAVE MONEY!</li>
<li>Get discounted health packages.</li>
<li>Free Home Sample Collection.</li>
<li>Compare & book test in less than five minutes.</li>
</ul>
</section>
<section class="4u 6u$(medium) 12u$(small)">
<h3>Shortcuts</h3>
<ul class="alt">
<li><a href="index.html">Home</a></li>
<li><a href="faq.html">FAQs</a></li>
<li><a href="about.php">About </a></li>
<li><a href="add.php">Add your Lab</a></li>
<li><a href="lablogin.php">Login</a></li>
</ul>
</section>
<section class="4u$ 12u$(medium) 12u$(small)">
<h3>Contact Us</h3>
<ul class="icons">
<li><a href="" class="icon rounded fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="" class="icon rounded fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="" class="icon rounded fa-pinterest"><span class="label">Pinterest</span></a></li>
<li><a href="" class="icon rounded fa-google-plus"><span class="label">Google+</span></a></li>
<li><a href="" class="icon rounded fa-linkedin"><span class="label">LinkedIn</span></a></li>
</ul>
<ul class="tabular">
<li>
<h3>Mail</h3>
<a href="mailto:[email protected]">[email protected]</a>
</li>
<li>
<h3>Phone</h3>
(+91) 9717-06-5383
</li>
</ul>
</section>
</div>
<ul class="copyright">
<li>© lifeline.in. All rights reserved.</li>
</ul>
</div>
</footer>
</body>
</html>