-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
executable file
·467 lines (432 loc) · 18.9 KB
/
single.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
<?php
$username=$_GET['username'];
$bookid=$_GET['bookid'];
$con=mysqli_connect("localhost","root","","shop");
$fetchUID="select * from book where book_id='$bookid'";
$res=$con->query($fetchUID);
if($res->num_rows>0)
{
while($row=$res->fetch_assoc())
{
$bname=$row["book_name"];
$bookdesc=$row["book_desc"];
$bookprice=$row["book_price"];
$img=$row['book_img'];
$count=$row['book_count'];
$isbn=$row['book_isbn'];
$publication=$row['book_publ'];
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Description | Book Planet</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="dashboard/vendor/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome CSS-->
<link rel="stylesheet" href="dashboard/vendor/font-awesome/css/font-awesome.min.css">
<!-- Google fonts - Poppins-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,600">
<!-- Lightbox-->
<link rel="stylesheet" href="dashboard/vendor/lightbox2/css/lightbox.css">
<!-- Custom font icons-->
<link rel="stylesheet" href="dashboard/css/fontastic.css">
<!-- theme stylesheet-->
<link rel="stylesheet" href="dashboard/css/style.default.css" id="theme-stylesheet">
<!-- Custom stylesheet - for your changes-->
<link rel="stylesheet" href="dashboard/css/custom.css">
<!-- Favicon-->
<link rel="shortcut icon" href="dashboard/img/favicon.png">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" >
<link rel="stylesheet" href="css/fontawesome-all.css">
<!-- Tweaks for older IEs--><!--[if lt IE 9]>
<script src="dashboard/https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="dashboard/https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<body>
<!-- navbar-->
<header class="header">
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container"><a href="bookplanet.php" class="navbar-brand"><img src="images/logo-bookplanet.png" alt="" class="img-fluid"></a>
<button type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler navbar-toggler-right">Menu<i class="fa fa-bars ml-2"></i></button>
<div id="navbarSupportedContent" class="collapse navbar-collapse">
<ul class="navbar-nav ml-auto">
<!-- Link-->
<li class="nav-item" > <a href="index.html" class="nav-link active" style="color:#e7475e!important;"><i class="fas fa-sign-in-alt mr-2">
</i>Welcome,
<?php echo $username ?></a></li>
</ul><a href="contact.php" class="btn btn-primary navbar-btn ml-0 ml-lg-3">Contact </a>
</ul><a href="index.php" class="btn btn-primary navbar-btn ml-0 ml-lg-3">Logout </a>
</div>
</div>
</nav>
</header>
<!-- Hero Section-->
<section class="hero">
<div class="container mb-5">
<div class="row align-items-center">
<div class="col-lg-5">
<h1 class="hero-heading mb-0">Online Book <br> Store</h1>
<div class="row">
<div class="col-lg-10">
<p class="lead text-muted mt-4 mb-4">Shop books online and get it delivered across the planet. No hidden charges.</p>
</div>
</div>
</div>
<div class="col-lg-7"><img src="images/bp-globe.png" alt="..." class="hero-image img-fluid d-none d-lg-block"></div>
</div>
</div>
</section>
<!-- bOOKS list -->
<!-- top Products -->
<div class="ads-grid py-sm-5 py-4" style="margin-top:-6%">
<div class="container py-5">
<!-- For Demo Purpose-->
<header class="text-center mb-5">
<h1 class="display-4 font-weight-bold">Book Detail
</h1>
<p class="font-italic text-muted mb-0">Find complete detail about the <?php echo $bname ?> by <?php echo $publication ?> .
</p>
</header>
<!-- Start Book Details-->
<div class="container">
<div class="card">
<div class="row">
<aside class="col-sm-5 border-right">
<article class="gallery-wrap">
<div class="img-big-wrap">
<div> <img src='<?php echo $img?>' style="height: 700px;margin-top:35px;max-width: 445px;width:auto;"></div>
</div>
<!-- slider-nav.// -->
</article>
<!-- gallery-wrap .end// -->
</aside>
<aside class="col-sm-7">
<article class="card-body p-5">
<h3 class="title mb-3"><?php echo $bname ?></h3>
<p class="price-detail-wrap">
<span class="price h3 text-warning">
<span class="currency">INR ₹</span><span class="num"><?php echo $bookprice ?></span>
</span>
<span>.00</span>
</p>
<!-- price-detail-wrap .// -->
<dl class="item-property">
<dt>Description</dt>
<dd>
<p><?php echo $bookdesc ?>
</p>
</dd>
</dl>
<dl class="param param-feature">
<dt>ISBN#</dt>
<dd><?php echo $isbn ?></dd>
</dl>
<!-- item-property-hor .// -->
<dl class="param param-feature">
<dt>Publication</dt>
<dd><?php echo $publication ?></dd>
</dl>
<!-- item-property-hor .// -->
<hr>
<div class="row">
<div class="col-sm-5">
<dl class="param param-inline">
<dt>In Stock: </dt>
<dd>
<p><?php echo $count ?></p>
</dd>
</dl>
<!-- item-property .// -->
</div>
<!-- col.// -->
</div>
<!-- row.// -->
</article>
<!-- card-body.// -->
</aside>
<!-- col.// -->
</div>
<!-- row.// -->
</div>
<!-- card.// -->
</div>
<!--container.//-->
<!-- End Book Details-->
</div>
</div>
<!-- CLients Section-->
<section class="bg-gray">
<div class="container"> <!-- //top products -->
<!-- middle section -->
<div class="join-w3l1">
<div class="container py-xl-4 py-lg-2">
<!-- Third Row [Profiles]-->
<h2 class="font-weight-bold mb-2">Famous Quotes
</h2>
<p class="font-italic text-muted mb-4">Some of the famous quotes of novelist, writer eassyist and renowned persons.
</p>
<div class="row pb-5 mb-4">
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-0">
<div class="bg-primary px-5 py-4 text-center card-img-top">
<img src="images/amour.png" alt="..." width="100" class="rounded-circle mb-2 img-thumbnail d-block mx-auto">
<h5 class="text-white mb-0">– Louis L’Amour
</h5>
<p class="small text-white mb-0">Novelist
</div>
<div class="p-4 d-flex justify-content-center">
<p>“Once you have read a book you care about, some part of it is always with you.”</p>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-0">
<div class="bg-success px-5 py-4 text-center card-img-top">
<img src="images/emerson.png" alt="..." width="100" class="rounded-circle mb-2 img-thumbnail d-block mx-auto">
<h5 class="text-white mb-0">– R.W Emerson
</h5>
<p class="small text-white mb-0">Essayist
</p>
</div>
<div class="p-4 d-flex justify-content-center">
<p>“If we encounter a man of rare intellect, we should ask him what books he reads.”</p>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-0">
<div class="bg-info px-5 py-4 text-center card-img-top">
<img src="images/mark.png" alt="..." width="100" class="rounded-circle mb-2 img-thumbnail d-block mx-auto">
<h5 class="text-white mb-0">– Mark Twain
</h5>
<p class="small text-white mb-0">Writer
</p>
</div>
<div class="p-4 d-flex justify-content-center">
<p>“The man who does not read good books is no better than the man who can’t.”</p>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-0">
<div class="bg-warning px-5 py-4 text-center card-img-top">
<img src="images/rourke.png" alt="..." width="100" class="rounded-circle mb-2 img-thumbnail d-block mx-auto">
<h5 class="text-white mb-0">– P.J. O’Rourke
</h5>
<p class="small text-white mb-0">Journalist
</p>
</div>
<div class="p-4 d-flex justify-content-center">
<p class="bold">“Always read something that will make you look good if you die in the middle of it.”</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- middle section -->
</div>
</section>
<!-- Integrations Section-->
<section>
<div class="container py-5">
<h2 class="font-weight-bold mb-2">Book Planet
</h2>
<p class="font-italic text-muted mb-4">“Sometimes, you read a book and it fills you with this weird evangelical zeal, and you become convinced that the shattered world will never be put back together unless and until all living humans read the book.”</p>
<div class="row pb-5">
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-5">
<i class="fa fa-dolly fa-4x mb-3 text-primary">
</i>
<h5>Free Shipping
</h5>
<p class="small pb-3 pt-1 text-muted font-italic">Enjoy free shipping on 90% of our online books across India.
</p>
<div class="progress rounded-pill">
<div role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 90%;" class="progress-bar rounded-pill">
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card -->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-5">
<i class="fa fa-thumbs-up fa-4x mb-3 text-success">
</i>
<h5>Trusted
</h5>
<p class="small pt-1 pb-3 text-muted font-italic">India's most trusted online book store from last 18 years.
</p>
<div class="progress rounded-pill">
<div role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 100%;" class="progress-bar bg-success rounded-pill">
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<!-- Card -->
<div class="card rounded shadow-sm border-0">
<div class="card-body p-5">
<i class="fa fa-shipping-fast fa-4x mb-3 text-info">
</i>
<h5>Fast Delivery
</h5>
<p class="small pb-3 pt-1 text-muted font-italic">Enjoy 2 day delivery option on 80% of our books across India.
</p>
<div class="progress rounded-pill">
<div role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 80%;" class="progress-bar bg-info rounded-pill">
</div>
</div>
</div>
</div>
</div>
<!-- Card -->
<div class="col-lg-3 col-md-6 mb-4 mb-lg-0">
<div class="card rounded shadow-sm border-0">
<div class="card-body p-5">
<i class="fa fa-shield-alt fa-4x mb-3 text-warning">
</i>
<h5>Secured
</h5>
<p class="small pb-3 pt-1 text-muted font-italic">All the transactions on our server are highly secured.
</p>
<div class="progress rounded-pill">
<div role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;" class="progress-bar bg-warning rounded-pill">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Divider Section-->
<section class="bg-primary text-white">
<div style="margin-left:125px;">
<!-- footer categories -->
<div class="col-md-12 col-sm-12 footer-grids ">
<h3 class="text-white font-weight-bold mb-3" style="margin-left:40px;">Get In Touch With Us.
</h3>
<ul style="list-style-type: none;">
<li class="mb-3">
<i class="fas fa-map-marker">
</i> Location: Sir M. Visvesvaraya Institute Of Technology, Bangalore
<i class="fas fa-mobile">
</i> Contact: 9982 xxx xxxx
<i class="fas fa-phone">
</i> Phone: 0746 xx xxxx
<i class="fas fa-envelope-open">
</i>
<a style="color:white!important;"href="mailto:[email protected]"> Email: [email protected]
</a>
</li>
</ul>
</div>
<!-- //social icons -->
</div>
</section>
<!-- How it works section-->
<section>
<div class="container">
<div class="text-center">
<h2 class="mb-4">Payment Methods</h2>
<div class="row">
<div class="col-lg-9 mx-auto">
<div class="row bg-white p-0 h-100">
<!-- lg circle buttons-->
<div class="col"><img src="images/pay1.png" alt=""></div>
<div class="col"><img src="images/pay2.png" alt=""></div>
<div class="col"><img src="images/pay3.png" alt=""></div>
<div class="col"><img src="images/pay4.png" alt=""></div>
<div class="col"><img src="images/pay5.png" alt=""></div>
<div class="col"><img src="images/pay6.png" alt=""></div>
<div class="col"><img src="images/pay7.png" alt=""></div>
<div class="col"><img src="images/pay8.png" alt=""></div>
<div class="col"><img src="images/pay9.png" alt=""></div>
</div>
</div>
</div>
</div>
</section>
<footer class="main-footer">
<div class="container">
<div class="row">
<div class="col-lg-2 mb-5 mb-lg-0">
<!-- <div class="footer-logo"><img src="images/bp-globe.png" alt="..." class="img-fluid"></div> -->
</div>
<div class="col-lg-3 mb-5 mb-lg-0">
<h5 class="footer-heading">Site pages</h5>
<ul class="list-unstyled">
<li> <a href="bookplanet.php" class="footer-link">Home</a></li>
<li> <a href="contact.php" class="footer-link">Contact</a></li>
<li> <a href="index.php" class="footer-link">Logout</a></li>
</ul>
</div>
<div class="col-lg-3 mb-5 mb-lg-0">
<h5 class="footer-heading">Section</h5>
<ul class="list-unstyled">
<li> <a href="#poetry" class="footer-link">Poetry</a></li>
<li> <a href="#thriller" class="footer-link">Thriller</a></li>
<li> <a href="#history" class="footer-link">History</a></li>
<li> <a href="#shortstory" class="footer-link">Short Story</a></li>
</ul>
</div>
<div class="col-lg-3">
<h5 class="footer-heading">Social</h5>
<ul class="list-unstyled">
<li> <a class="footer-link">Facebook</a></li>
<li> <a class="footer-link">Twitter</a></li>
<li> <a class="footer-link">Instagram</a></li>
</ul>
</div>
</div>
</div>
<div class="copyrights">
<div class="container">
<div class="row">
<div class="col-lg-6 text-center text-lg-left">
<p class="copyrights-text mb-3 mb-lg-0">© Book Planet <span id="year"></span>. All rights reserved. </p>
<!-- If you want to remove the backlink, please purchase a license for this template @ https://bootstrapious.com/attribution-free-license. Big thanks!-->
</div>
<div class="col-lg-6 text-center text-lg-right">
<ul class="list-inline social mb-0">
<li class="list-inline-item"><a href="#" class="social-link"><i class="fab fa-facebook"></i></a><a href="#" class="social-link"><i class="fab fa-twitter"></i></a><a href="#" class="social-link"><i class="fab fa-instagram"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
<!-- JavaScript files-->
<script src="dashboard/vendor/jquery/jquery.min.js"></script>
<script src="dashboard/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="dashboard/vendor/jquery.cookie/jquery.cookie.js"> </script>
<script src="dashboard/vendor/lightbox2/js/lightbox.js"></script>
<script src="dashboard/js/front.js"></script>
<script>document.getElementById("year").innerHTML = new Date().getFullYear();</script>
</body>
</html>