-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.php
683 lines (605 loc) · 26.1 KB
/
checkout.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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
<?php
session_start();
require_once('config.php');
include("function.php");
include('API/API.php');
?>
<?php
if(!isset($_SESSION['user_id'])){
header("Location: index.php");
} else {
$queryuser="select first_name,last_name,email,phone_number from user where user_id='".$_SESSION['user_id']."'";
$hqueryuser=mysqli_query($con,$queryuser) or die(mysqli_error($con));
$userinfo=mysqli_fetch_assoc($hqueryuser);
$querysubtotal="SELECT if(sum(harga_jual*jumlah_barang) is null,0,sum(harga_jual*jumlah_barang)) as 'total_harga',tp.id_transaksi_penjualan as 'idtp'
from barang_penjualan bp,product_warna pw, product p,`user` u,transaksi_penjualan tp
where bp.product_warna_id=pw.product_warna_id and pw.product_id=p.product_id
and tp.id_transaksi_penjualan=bp.id_transaksi_penjualan and tp.user_id=u.user_id and bp.status=0 and tp.user_id=".$_SESSION['user_id']." group by `idtp`;";
$hqueryuser=mysqli_query($con,$querysubtotal) or die(mysqli_error($con));
$subtotal=mysqli_fetch_assoc($hqueryuser);
$idtp=$subtotal['idtp']
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
<title>Toko JamQ Checkout Form</title>
<!-- Bootstrap core CSS -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/FONTAWESOME/css/all.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<link href="assets/css/indexcontent.css" rel="stylesheet">
<link href="assets/css/itemcard.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="assets/css/simple-sidebar.css" rel="stylesheet">
<link href="assets/css/shop-homepage.css" rel="stylesheet">
<link href="assets/css/headerfooter.css" rel="stylesheet">
<link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/checkout/">
<!-- Custom styles for this template -->
<link href="form-validation.css" rel="stylesheet">
</head>
<body>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading"> <img src="assets/img/q hitam.png"> </div>
<div class="list-group list-group-flush">
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Products</a>-->
<button class="dropdown-btn list-group-item list-group-item-action bg-light"
style="background-color: transparent; border: 0;">
<a href="product.php">Products</a>
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<ul class="link-list">
<li><a href="pioneer.php">Pioneer</a></li><br>
<li><a href="estiloren.php">Esti Loren</a></li><br>
<li><a href="asako.php">Asako</a></li><br>
<li><a href="pagol.php">Pagol</a></li><br>
<li><a href="edison.php">Edison</a></li><br>
</ul>
</div>
<a href="privacy policy.php" class="list-group-item list-group-item-action bg-light">Privacy Policy</a>
<a href="tnc.php" class="list-group-item list-group-item-action bg-light">Terms and Condition</a>
<a href="faq.php" class="list-group-item list-group-item-action bg-light">FAQ</a>
<a href="contact.php" class="list-group-item list-group-item-action bg-light">Contact Us</a>
</div>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<nav class="navbar navbar-expand-lg navbar-light border-bottom">
<!--button sidebar-->
<button class="btn btn-primary" id="menu-toggle"
style="background-color: transparent; color: white; border: none; font-size: 150%;">
<i class="fas fa-bars"></i></button>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!--logo-->
<a href="index.php" class="col-md-3"><img src="assets/img/logo.png" style="width: 100%;"></a>
<!--SEARCH BAR-->
<!-- Load icon library -->
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">-->
<!-- The form 2-->
<form class="example col-md-6" action="product.php" method="GET">
<input type="text" placeholder="Search.." name="search">
<button type="submit"><i class="fa fa-search" style="font-size: 130%;"></i></button>
</form>
<!--SEARCH BAR-->
<!--header-->
<div class="collapse navbar-collapse" id="navbarSupportedContent" style="flex-grow: 0;">
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item">
<a class="nav-link" href="cart.php" style="color: white; font-size: 150%;"><i
class="fas fa-shopping-cart"></i></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" style="color: white;font-size: 150%;">
<i class="fas fa-user"></i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"
style="text-align: center;">
<?php
isloggedin($con);
?>
</div>
</li>
</ul>
</div>
</nav>
<!-- CHECKOUT COY -->
<main id="main" role="main">
<section id="checkout-container">
<div class="container">
<h1> Toko JamQ Checkout Form </h1>
<div class="row py-2">
<div class="col-md-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text-muted">Your cart</span>
</h4>
<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between lh-condensed">
<div>
<h6 class="my-0">Subtotal</h6>
</div>
<span class="text-muted" id='subtot' value='<?php echo $subtotal['total_harga']; ?>'>Rp. <?php echo $subtotal['total_harga']; ?></span>
</li>
<li class="list-group-item d-flex justify-content-between lh-condensed">
<div>
<h6 class="my-0">Shipping fee</h6>
<small class="text-muted">JNE OKE</small>
</div>
<span class="text-muted" id="ongkir" value="">$8</span>
</li>
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success" id="divpromo">
<h6 class="my-0">Promo code</h6>
<small id="namapromo"></small>
</div>
<span class="text-success" id="nominalpromo" value="0">-Rp 0<?php //echo $qpromo['jumlah_promo']; ?></span>
</li>
<li class="list-group-item d-flex justify-content-between">
<span>Total</span>
<strong id="totalsemua" value="">Rp.</strong>
</li>
</ul>
<form class="card p-2">
<div class="input-group">
<input type="text" class="form-control" placeholder="Promo code" id="promocodenya">
<div class="input-group-append">
<button type="button" class="btn btn-secondary" id="redeembtn">Redeem</button>
</div>
</div>
<div id="error_notif" >
</div>
</form>
<!--<div class="payment-methods">
<p class="pt-4 mb-2">Payment Options</p>
<hr>
<label class="heading">Pilihan transfer bank:</label>
<?php //$query = "SELECT * FROM bank"; ?>
<br> <input name="radio" type="radio" value="echo bank id">echo bank name, no rek, nama rek
<br> <input name="radio" type="radio" value="Radio 2">Radio 2
<br> <input name="radio" type="radio" value="Radio 3">Radio 3
<?php //include'radio_value.php'; ?>
<br> <input name="submit" type="submit" value="Get Selected Values">
</div> -->
</div>
<div class="col-md-8 order-md-1">
<h4 class="mb-3">Billing address</h4>
<form name="form1" class="needs-validation" novalidate>
<div class="row">
<div class="col-md-6 mb-3">
<label for="firstName">Recipient First name</label>
<input type="text" class="form-control" id="firstName" placeholder="" value="<?php echo $userinfo['first_name']; ?>" required>
<div class="invalid-feedback">
Valid first name is required.
</div>
</div>
<div class="col-md-6 mb-3">
<label for="lastName">Recipient Last name</label>
<input type="text" class="form-control" id="lastName" placeholder="" value="<?php echo $userinfo['last_name']; ?>" required>
<div class="invalid-feedback">
Valid last name is required.
</div>
</div>
</div>
<!--<div class="mb-3">
<label for="username">Username</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">@</span>
</div>
<input type="text" class="form-control" id="username" placeholder="Username" required>
<div class="invalid-feedback" style="width: 100%;">
Your username is required.
</div>
</div>
</div> -->
<div class="mb-3">
<label for="email">Email <span class="text-muted"></span></label>
<input type="email" class="form-control" id="email" placeholder="you@example.com" value="<?php echo $userinfo['email']; ?>" readonly>
<div class="invalid-feedback">
Please enter a valid email address for shipping updates.
</div>
</div>
<div class="col-5 pl-0 mb-3">
<label for="phone">Recipient Mobile Phone</label>
<input type="text" class="form-control" id="phone" placeholder="" value="<?php echo $userinfo['phone_number']; ?>" required>
<div class="invalid-feedback">
Recipient Mobile Phone required.
</div>
</div>
<div class="mb-3">
<label for="address">Address</label>
<input type="text" class="form-control" id="address" placeholder="Adress..." required>
<div class="invalid-feedback">
Please enter your shipping address.
</div>
</div>
<!--<div class="mb-3">
<label for="address2">Address 2 <span class="text-muted">(Optional)</span></label>
<input type="text" class="form-control" id="address2" placeholder="Apartment or suite">
</div>-->
<div class="row">
<!-- <div class="col-md-5 mb-3">
<label for="country">Country</label>
<select class="custom-select d-block w-100" id="country" required>
<option value="">Choose...</option>
<option>Indonesia</option>
</select>
<div class="invalid-feedback">
Please select a valid country.
</div>
</div>-->
<div class="col-md-4 mb-3">
<label for="state">Province</label>
<select class="custom-select d-block w-100" id="state" required>
<?php
//$api_getprovince();
foreach ($dataprovinsi as $dprov) {
?>
<option value="<?php echo $dprov['idprovinsi'];?>"><?php echo $dprov['namaprovinsi'];?></option>
<?php }; ?>
<?php /*api_getprovince();
foreach ($dataprovinsi as $datap){
echo "<h1>".$datap['idprovinsi']."</h1>";
?>
<option data-idprovinsi="<?php echo $datap['idprovinsi'];?>">
<?php echo $datap['namaprovinsi'];?></option>
<?php };*/ ?>
<!--<option>East Java</option>-->
</select>
<div class="invalid-feedback">
Please provide a valid province.
</div>
</div>
<div class="col-md-5 mb-3">
<label for="city">Kota</label>
<select class="custom-select d-block w-100" id="city" required>
</select>
<div class="invalid-feedback">
Please provide a valid city.
</div>
</div>
</div>
<hr class="mb-4">
</div>
</div>
<div class="row">
<div class="col-md-6">
<h2 class="mb-3">Payment Method</h2>
<div class="custom-control custom-radio">
<input id="bca" value="1" name="paymentmethod" type="radio" class="custom-control-input" checked="" required="">
<label class="custom-control-label" for="bca">BCA</label>
</div>
<div class="custom-control custom-radio">
<input id="mandiri" value="2" name="paymentmethod" type="radio" class="custom-control-input" required="">
<label class="custom-control-label" for="mandiri">Mandiri</label>
</div>
<div class="custom-control custom-radio">
<input id="bni" value="3" name="paymentmethod" type="radio" class="custom-control-input" required="">
<label class="custom-control-label" for="bni">BNI</label>
</div>
</div>
<div class="col-md-6 mb-5 mt-5">
<h3 id="detailpayment" value=""></h3>
</div>
</div>
</form>
<!--tulisan nomor rekening e pake DOM -->
<hr class="mb-4">
<button id="btncheckout" class="btn btn-primary btn-lg btn-block" value="<?php echo $idtp; ?>">Checkout</button>
<!--</form>-->
</div>
</div>
</div>
</div>
<!--footer kita-->
<div class="footer">
<div class="container">
<div class="row">
<div class="col-lg-2">
<p class="mb-4"><img src="assets/img/q putih.png" alt="Image" class="img-fluid"></p>
</div>
<div class="col-lg-3">
<h3 class="footer-heading"><span><a href="product.php">Our Products</a></span></h3>
<ul class="list-unstyled">
<li><a href="pioneer.php">Pioneer</a></li>
<li><a href="estiloren.php">Esti Loren</a></li>
<li><a href="asako.php">Asako</a></li>
<li><a href="pagol.php">Pagol</a></li>
<li><a href="edison.php">Edison</a></li>
</ul>
</div>
<div class="col-lg-3">
<h3 class="footer-heading"><span>Contact</span></h3>
<ul class="list-unstyled">
<li><a href="contact.php">Contact Us</a></li>
<li><a href="privacy policy.php">Privacy Policy</a></li>
<li><a href="tnc.php">Terms and Condition</a></li>
<li><a href="faq.php">FAQ</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="copyright">
<p style="text-align:center; color:white; font-weight: 500;">Copyright TokoJamQ ©2019
All rights reserved </p>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
/* buat dropdown products
/* Loop through all dropdown buttons to toggle between hiding and showing its dropdown content - This allows the user to have multiple dropdowns without any conflict */
var dropdown = document.getElementsByClassName("dropdown-btn");
var i;
for (i = 0; i < dropdown.length; i++) {
dropdown[i].addEventListener("click", function () {
this.classList.toggle("active");
var dropdownContent = this.nextElementSibling;
if (dropdownContent.style.display === "block") {
dropdownContent.style.display = "none";
} else {
dropdownContent.style.display = "block";
}
});
}
</script>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function () {
'use strict';
window.addEventListener('load', function () {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function (form) {
form.addEventListener('submit', function (event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
//rajaongkir
$(document).ready(function () {
$(function () {
$("#state").change();
$('input[name="paymentmethod"][value="1"]').change();
});
$('#state').change(function () {
var state =$(this).val();
// alert(state);
$.ajax({
url: 'ajax/city_ajax.php',
method: 'POST',
data: {
state:state
},
success: function(data) {
//alert(data);
var res = JSON.parse(data);
//hasilnya object object
//alert(res[0][rajaongkir][results]);
$( "#city" ).empty();
$.each(res.rajaongkir.results, function(index, val) {
//Fc alert(val.city_name);
//alert("<select value="+val.city_id+">"+val.city_name+"</select>");
$( "#city" ).append( "<option value='"+val.city_id+"'>"+val.city_name+"</option>" );
});
$("#city").change();
//alert( res.rajaongkir.results[0].city_name);
//alert("A");
//alert(JSON.stringify(data));
}
})
})
//ongkire
$('#city').change(function () {
var city =$(this).val();
//alert(city);
$.ajax({
url: 'ajax/ongkir_ajax.php',
method: 'POST',
data: {
city:city
},
success: function(data) {
//alert(data);
var res = JSON.parse(data);
//alert( res.rajaongkir.results[0].costs[0].cost[0].value);
$('#ongkir').text("Rp. "+res.rajaongkir.results[0].costs[0].cost[0].value);
$('#ongkir').val(res.rajaongkir.results[0].costs[0].cost[0].value);
$('#ongkir').attr("value",res.rajaongkir.results[0].costs[0].cost[0].value);
var total= parseInt($('#subtot').attr("value"))+parseInt($('#ongkir').val())-parseInt($('#nominalpromo').attr("value"));
//alert(total);
$('#totalsemua').text("Rp. "+total);
$('#totalsemua').attr("value",total);
}
})
});
//promocode
$('#redeembtn').click(function () {
if($('#promocodenya').val()!=''){
var promo =$('#promocodenya').val();
//alert(promo);
$.ajax({
url: 'ajax/promo_ajax.php',
method: 'POST',
data: {
promo:promo
},
success: function(data) {
//alert(data);
if(data != 0) {
//alert("a");
//echo $data;
$('#error_notif').empty();
$('#error_notif').append("Promocode applied successfully !");
$('#error_notif').css('color','green');
$('#nominalpromo').text("-Rp. "+data);
$('#nominalpromo').attr("value",data);//data --> promo
$('#namapromo').text(promo);
var total= parseInt($('#subtot').attr("value"))+parseInt($('#ongkir').val())-parseInt($('#nominalpromo').attr("value"));
$('#totalsemua').text("Rp. "+total);
$('#totalsemua').attr("value",total);
//location.href="index.php";
} else {
//alert("no");
// show alert or something that user has wrong credentials ...
$('#error_notif').empty();
$('#error_notif').append("Promocode not available!");
$('#nominalpromo').val("0");
var total= parseInt($('#subtot').attr("value"))+parseInt($('#ongkir').val())-parseInt($('#nominalpromo').attr("value"));
$('#totalsemua').text("Rp. "+total);
$('#totalsemua').attr("value",total);
//$("#error_notif").show();
}
}
})
} else{
$('#error_notif').empty();
$('#error_notif').append("Promocode can not be blank .Enter a Valid Promocode !");
}
})
// buat promo code woyy
/*$("#apply").click(function(){
if($('#promo_code').val()!=''){
$.ajax({
type: "POST",
url: "process.php",
data:{
coupon_code: $('#coupon_code').val()
},
success: function(dataResult){
var dataResult = JSON.parse(dataResult);
if(dataResult.statusCode==200){
var after_apply=$('#nominalpromo').val()-dataResult.value;
$('#total_price').val(after_apply);
$('#apply').hide();
$('#edit').show();
$('#message').html("Promocode applied successfully !");
}
else if(dataResult.statusCode==201){
$('#message').html("Invalid promocode !");
}
}
});
}
else{
$('#message').html("Promocode can not be blank .Enter a Valid Promocode !");
}
});
$("#edit").click(function(){
$('#coupon_code').val("");
$('#apply').show();
$('#edit').hide();
location.reload();
});*/
/*function ajaxfunction{
var cat_id=document.getElementById('state').value;*/
//});
$('input[name="paymentmethod"]').on('change', function(){
var pay=$(this).val();
//alert (pay);
$.ajax({
url: 'ajax/bank_ajax.php',
method: 'POST',
data: {
pay:pay
},
success: function(data) {
//alert(data);
$("#detailpayment").text(data);
$('#detailpayment').attr("value",pay);
}
})
});
//checkout buttonnnnn
$('#btncheckout').click(function () {
var alamat=$('#address').val();
if(alamat.length !== 0){
//var promo =$('#promocodenya').val();
//alert(promo);
var idtp =$('#btncheckout').attr("value");
var bankid=$('#detailpayment').attr("value");
var subtot=$('#subtot').attr("value");
var tot =$('#totalsemua').attr("value");
var kodepromo=$('#namapromo').text();
if (kodepromo.length==0){
kodepromo="null";
};
var ongkir=$('#ongkir').val();
var namadpn=$('#firstName').val();
var namablkg=$('#lastName').val();
var nama=namadpn+" "+namablkg;
var notelp=$('#phone').val();
var kota=$('#city option:selected').text();
var prov=$('#state option:selected').text();
//var total_
$.ajax({
url: 'ajax/checkout_ajax.php',
method: 'POST',
data: {
idtp:idtp,
bankid:bankid,
alamat:alamat,
subtot:subtot,
tot:tot,
kodepromo:kodepromo,
ongkir:ongkir,
nama:nama,
notelp:notelp,
kota:kota,
prov:prov
},
success: function(data) {
//alert("yay berhasil cekot");
alert(data);
window.location.href="thankyou.php";
}
//close ajax checkout
});
} else {
alert("hell na");
}
//close event click btn checkout
})
//end
});
// jQuery.fn.myfunction = function() {
/* function myfunction() {
var subtot=$('#subtot').val();
var ongkir=$('#ongkir').val();
var diskon=$('#nominalpromo').val();
var total= parseInt(subtot)- parseInt(diskon)+ parseInt(ongkir);
return total;
}*/
</script>
<style>
#error_notif{
color: red;
text-align: center;
padding-bottom:10px;
}
</style>
</body>
<?php }; ?>
</html>