-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfinal.php
268 lines (213 loc) · 7.75 KB
/
final.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
<?php include("dbaseconnection.php");
$id=$_GET['id'];
$sql=mysql_query("Update testnames set tviews=tviews+1 where id='$id'");
$sql2=mysql_query("Select tname,labname,rate,rating from testnames where id='$id'");
$row=mysql_fetch_row($sql2);
$tname=$row[0];
$lname=$row[1];
$rate=$row[2];
$rating=$row[3];
$sql3=mysql_query("Update lablist set likes=likes+1 where labname='$lname'");
?>
<!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">
#showonmap{background:rgba(153, 153, 225, 0.85);
padding-left:10px;
padding-right:10px;}
#showonmap:hover{background:rgba(153, 153, 225, 0.45);
}
table tbody tr:nth-child(2n + 1) {
background-color: rgba(144, 144, 144, 0.75);
}
#book{background:rgba(153, 153, 225, 0.95);}
#book:hover{background-color: rgba(0, 204, 102, 0.8);}
.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);
}
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}
body { margin: 0; }
div#slider { overflow: hidden; }
div#slider figure img { width: 20%; float: left; }
div#slider figure {
position: relative;
width: 500%;
margin: 0;
left: 0;
text-align: left;
font-size: 0;
animation: 14s slidy infinite;
}
</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 -->
<!-- two -->
<section id="one" class="wrapper style1 align-center">
<div class="container">
<section>
<div class="box alt">
<?php
$ram=mysql_query("select address,phone,id from labbranch where labname='$lname'");
$ar=mysql_fetch_row($ram);
$sql=mysql_query("select labname,logo,link,description,likes,logo2,logo3,logo4,logo5 from lablist where labname='$lname'");
$row=mysql_fetch_row($sql);
$desc=$row[3];
$link=$row[2];
echo'
<div id="slider">
<figure>
<img height="426" class="image fit" src="data:image;base64,'.$row[1].' " alt="" >
<img height="426" class="image fit" src="data:image;base64,'.$row[5].' " alt="" >
<img height="426" class="image fit" src="data:image;base64,'.$row[6].' " alt="" >
<img height="426" class="image fit" src="data:image;base64,'.$row[7].' " alt="" >
<img height="426" class="image fit" src="data:image;base64,'.$row[8].' " >
</figure>
</div>
';?>
</div>
</section>
<header>
<?php echo'<p><span style="font-size:25px;color:white;font-weight:bold;">'.$row[0].'</span></br><a id="showonmap"href="showmap.php?id='.$ar[2].'"class="button small fit">show on map</a></p>';?>
</header>
<div class="table-wrapper">
<table>
<thead>
<tr style="background:rgba(244, 244, 244, 0.95);">
<th colspan="3"style="text-align:center;padding-top:6px;border-bottom:3px dashed ;"><a href="bookonline.php?id=<?php echo $id;?>"id="book"class="button">Book test online!</a></th>
</tr>
<tr style="background:rgba(244, 244, 244, 0.95);">
<th style="text-align:center;">Test Name</th>
<th style="text-align:center;">Rate</th>
<th style="text-align:center;">Views</th>
</tr>
</thead>
<tbody>
<?php
$query=mysql_query("select tname,rate from testnames where id='$id' ");
$r=mysql_fetch_row($query);
echo'<tr><td>'.$r[0].'</td>
<td>Rs '.$r[1].'</td>
<td>'.$row[4].'</td>
</tr >
<tr>
<td colspan="3"<h4><span style="font-size:22px;color:lightgreen;">Address</span></h4>
<blockquote>'.$ar[0].'</br>call at : <span style="color:#33FFFF;">'.$ar[1].'</span> .</blockquote></td>
</tr>
<tr>
<td colspan="3"<h4><span style="font-size:17px;color:lightgreen;">Lab Description</span></h4>
<blockquote>'.$desc.'</blockquote></td>
</tr>';
?>
</tbody>
</table>
</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>