-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpayment.php
117 lines (114 loc) · 5.64 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
<?php
session_start();
include('includes/datethai_function.php');
include("includes/template_frontend/page_link_config.php");
//error_reporting(0);
if(isset($_SESSION['fullname']) == ''){
Header('Location:home');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include("includes/template_frontend/head_tag_contents.php"); ?>
</head>
<body>
<div class="modalx" style="display: none;"></div>
<div class="container" style="margin-top:10px">
<form id="s_payment" action="" method="POST">
<div class="row" style="margin:5px">
<div class="col-lg-12 bg-light shadow-lg p-3 mb-5 rounded">
<h2 style="margin-top:1em" class="text-center very-large-text bg-light"><b>ยืนยันการสั่งซื้อ</b></h2>
<br>
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<label for="name"><b><i class='fas fa-user'></i> ชื่อ-นามสกุล:</b></label>
<input class="form-control" readonly="readonly" value="<?php echo $_SESSION['fullname'];?>" type="text" name="name" id="name" />
</div>
</div><br>
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<label for="phone"><b><i class='fas fa-phone'></i> หมายเลขโทรศัพท์:</b></label>
<input class="form-control" readonly="readonly" value="<?php echo $_SESSION['phone'];?>" type="text" name="phone" id="phone" />
</div>
</div><br>
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<?php
$date = strtotime("+3 day");
$datethai = date('Y-m-d H:i:s', $date);
$datetime = date('Y-m-d H:i:s', $date);
echo "<label for=\"date\"><b><i class=\"far fa-calendar-alt\"></i> กำหนดชำระภายใน:</b></label>" . "<input class=\"dl btn form-control\" readonly=\"readonly\" value=\"" . DateThai($datethai) . " (3 วัน)\" name=\"date\" id=\"date\" />";
?>
<input type="hidden" class="form-control" name="datetime" id="datetime" value="<?php echo $datetime ?>">
</div>
</div><br>
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<label for="order_name"><b><i class='fas fa-product-hunt'></i> สินค้า:</b></label>
<input class="form-control" value="<?php echo $_SESSION['title']?>" readonly="readonly" type="text" name="order_name" id="order_name" />
</div>
</div><br>
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<label for="order_price"><b><i class='fab fa-btc'></i> ยอดรวม: (บาท)</b></label>
<input class="finalprice form-control" value="<?php echo $_SESSION['price']?>" readonly="readonly" step="any" type="number" name="order_price" id="order_price" />
</div>
</div>
<div class="row">
<div class="col-md-12">
<center>
<div class="table-responsive">
<table class="table-sm table-striped border border-danger rounded shadow-lg p-3 mb-5 bg-white">
<thead class="table-info">
<tr>
<th><b>ชื่อธนาคาร</b></th>
<th><b>ชื่อบัญชี</b></th>
<th><b>หมายเลขบัญชี</b></th>
<th><b>ประเภท</b></th>
<th><b>สาขา</b></th>
</tr>
</thead>
<tbody class="table-warning">
<tr>
<td><i class="fas fa-dot-circle"></i> ธ.ไทยพาณิชย์ </td>
<td> นายก่อกิจ ชูจำ</td>
<td><b>512-292422-9</b></td>
<td> ออมทรัพย์ </td>
<td> ตรัง </td>
</tr>
<tr>
<td><i class="fas fa-dot-circle"></i> ธ.กรุงไทย </td>
<td> นายก่อกิจ ชูจำ</td>
<td><b>903-0-76826-6</b></td>
<td> ออมทรัพย์ </td>
<td> ตรัง </td>
</tr>
</tbody>
</table>
<img src="img/SCB.png" alt="scb">
<img src="img/KTB.png" alt="KTB"></center>
</div>
</div><br>
<div class="row d-flex justify-content-center">
<div class='col-md-6'>
<center>
<input type="submit" class="btn btn-primary" name="submitBtn" id="submitBtn" value="ยืนยัน">
<button type="button" class="btn btn-danger" onclick="window.history.back();">ยกเลิก</button></center>
</div>
</div>
<br><br>
<div class="row d-flex justify-content-center">
<div class='col-md-6'>
<center><i class="fas fa-link"></i><a href="transfer.php">แจ้งโอนเงิน</a></center>
</div>
</div>
</div>
</div>
</form>
</div>
<?php include("includes/template_frontend/footer.php"); ?>
<?php include("includes/template_frontend/bottom_tag_contents.php"); ?>
<script src="js/main_site/payment.js"></script>
</body>
</html>