-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.php
executable file
·558 lines (493 loc) · 25.1 KB
/
payment.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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<?php
if(isset($_POST))
{
$bookid= $_POST['bookid'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$gender=$_POST['gender'];
$number=$_POST['number'];
$email=$_POST['email'];
$add1=$_POST['add1'];
$add2=$_POST['add2'];
$city=$_POST['city'];
$state=$_POST['state'];
$pin=$_POST['pin'];
$uid=$_POST['uid'];
$username=$_POST['username'];
$bookname=$_POST['bookname'];
$amount=$_POST['amount'];
$bookname=myUrlEncode($bookname);
$add1=myUrlEncode($add1);
$add2=myUrlEncode($add2);
}
?>
<?php
function myUrlEncode($string) {
$entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
$replacements = array('!', '*', "'", "(", ")", ";", ":", "@", "&", "=", " ", "$", ",", "/", "?", "%", "#", "[", "]");
return str_replace($entities, $replacements, urlencode($string));
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Payment | 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">Payment Process
</h1>
<p class="font-italic text-muted mb-0">Fill all the details regarding cards carefully befor procedding further.
</p>
</header>
<!-- Start Payment Details-->
<div class="px-4 px-lg-0">
<div class="container">
<div class="row">
<div class="col-lg-7 mx-auto">
<div class="bg-white rounded-lg shadow-sm p-5">
<!-- Credit card form tabs -->
<ul role="tablist" class="nav bg-light nav-pills rounded-pill nav-fill mb-3">
<li class="nav-item">
<a data-toggle="pill" href="#nav-tab-card" class="nav-link active rounded-pill">
<i class="fa fa-credit-card"></i> Card Payment
</a>
</li>
<li class="nav-item">
<a data-toggle="pill" href="#nav-tab-paypal" class="nav-link rounded-pill">
<i class="fab fa-paypal"></i> Paypal
</a>
</li>
<li class="nav-item">
<a data-toggle="pill" href="#nav-tab-bank" class="nav-link rounded-pill">
<i class="fas fa-university"></i> Bank Transfer
</a>
</li>
</ul>
<!-- End -->
<!-- Credit card form content -->
<div class="tab-content">
<!-- credit card info-->
<div id="nav-tab-card" class="tab-pane fade show active">
<form role="form" action="orderplaced.php" method="post">
<div class="form-group input-group mb-4 border rounded-pill p-2">
<input type="text" name="username" placeholder="Full Name (As On Card)" required class="form-control border-0">
</div>
<div class="form-group">
<div class="input-group input-group mb-4 border rounded-pill p-2">
<input minlength="16" size="10" maxlength="16" type="text" name="cardNumber" placeholder="Your Card Number" class="form-control border-0" required>
<div class="input-group-append">
<span class="input-group-text text-muted">
<i class="fab fa-cc-visa mx-1"></i>
<i class="fab fa-cc-amex mx-1"></i>
<i class="fab fa-cc-mastercard mx-1"></i>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="form-group">
<div class="input-group input-group mb-4 border rounded-pill p-2">
<input minlength="2" size="10" maxlength="2" type="text" placeholder="MM" name="" class="form-control border-0" required>
<input minlength="2" size="10" maxlength="2" type="text" placeholder="YY" name="" class="form-control border-0" required>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="form-group input-group mb-4 border rounded-pill p-2">
<input minlength="3" size="10" maxlength="3" type="text" placeholder="CVV"required class="form-control border-0">
</div>
</div>
</div>
<input type="hidden" name="firstname" value=<?php echo $firstname ?>>
<input type="hidden" name="lastname" value=<?php echo $lastname?>>
<input type="hidden" name="bookid" value=<?php echo $bookid ?>>
<input type="hidden" name="gender" value=<?php echo $gender ?>>
<input type="hidden" name="number" value=<?php echo $number ?>>
<input type="hidden" name="email" value=<?php echo $email ?>>
<input type="hidden" name="add1" value=<?php echo $add1 ?>>
<input type="hidden" name="add2" value=<?php echo $add2 ?>>
<input type="hidden" name="city" value=<?php echo $city ?>>
<input type="hidden" name="state" value=<?php echo $state ?>>
<input type="hidden" name="pin" value=<?php echo $pin?>>
<input type="hidden" name="bookname" value=<?php echo $bookname?>>
<input type="hidden" name="amount" value=<?php echo $amount?>>
<input type="hidden" name="username" value=<?php echo $username?>>
<input type="hidden" name="uid" value=<?php echo $uid?>>
<button type="submit" class="subscribe btn btn-primary btn-block rounded-pill shadow-sm"> Confirm </button>
</form>
</div>
<!-- End -->
<!-- Paypal info -->
<div id="nav-tab-paypal" class="tab-pane fade">
<p>Paypal is easiest way to pay online</p>
<p>
<button type="button" class="btn btn-primary rounded-pill"><i class="fab fa-paypal mr-2"></i> Log into my Paypal</button>
</p>
<p class="text-muted"><center>PayPal Holdings Inc trading as PayPal, is an American company operating a worldwide online payments system that supports online money transfers and serves as an electronic alternative to traditional paper methods like checks and money orders.</center>
</p>
</div>
<!-- End -->
<!-- bank transfer info -->
<div id="nav-tab-bank" class="tab-pane fade">
<h6>Bank account details</h6>
<p class="text-muted">The World Bank is an international financial institution that provides loans and grants to the governments of poorer countries for the purpose of pursuing capital projects.
</p>
<dl>
<dt>Bank</dt>
<dd> THE WORLD BANK</dd>
</dl>
<dl>
<dt>Account number</dt>
<dd>7775877975</dd>
</dl>
<dl>
<dt>IBAN</dt>
<dd>CZ7775877975656</dd>
</dl>
</div>
<!-- End -->
</div>
<!-- End -->
</div>
</div>
</div>
</div>
</div>
<!-- End Payment 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>