-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer_pembayaran.php
144 lines (131 loc) · 4.2 KB
/
customer_pembayaran.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
<?php include 'header.php'; ?>
<!-- Breadcrumb Section Begin -->
<section class="breadcrumb-option">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumb__text">
<h4>Dashboard Customer</h4>
<div class="breadcrumb__links">
<a href="index.php">Home</a>
<a href="#">Customer</a>
<span>Konfirmasi Pembayaran</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Breadcrumb Section End -->
<!-- Checkout Section Begin -->
<section class="checkout spad">
<div class="container">
<div class="row">
<div id="aside" class="col-md-3">
<?php
include 'customer_sidebar.php';
?>
</div>
<div id="main" class="col-md-9">
<h4><b>KONFIRMASI PEMBAYARAN</b></h4>
<br>
<div>
<?php
if(isset($_GET['alert'])){
if($_GET['alert'] == "gagal"){
echo "<div class='alert alert-danger'>Gambar gagal diupload!</div>";
}elseif($_GET['alert'] == "sukses"){
echo "<div class='alert alert-success'>Pesanan berhasil dibuat, silahkan melakukan pembayaran!</div>";
}elseif($_GET['alert'] == "upload"){
echo "<div class='alert alert-success'>Konfirmasi pembayaran berhasil tersimpan, silahkan menunggu konfirmasi dari admin!</div>";
}
}
?>
<a href="customer_pesanan.php" class="btn btn-primary btn-sm"><i class="fa fa-arrow-left"></i> Kembali</a>
<br>
<br>
<div class="row">
<div class="col-lg-12">
<table class="table table-bordered">
<tbody>
<?php
$id_invoice = mysqli_escape_string($koneksi, $_GET['id']);
$id = $_SESSION['customer_id'];
$query = "
select *
from check_in
where no_ktp='$id' and id_transaksi='$id_invoice'
order by id_transaksi desc";
$invoice = mysqli_query($koneksi, $query);
while($i = mysqli_fetch_array($invoice)):
?>
<tr>
<th style="width: 20%">No. Faktur</th>
<td><?php echo $i['invoice_no'] ?></td>
</tr>
<tr>
<th>Tanggal</th>
<td><?php echo date('d-m-Y', strtotime($i['tgl_transaksi'])) ?></td>
</tr>
<tr>
<th>Total Bayar</th>
<td><?php echo "Rp. ".number_format($i['invoice_total'])." ,-" ?></td>
</tr>
<tr>
<th>Status</th>
<td>
<?php
if($i['invoice_status'] == 0){
echo "<span class='label label-warning'>Menunggu Pembayaran</span>";
}elseif($i['invoice_status'] == 1){
echo "<span class='label label-default'>Menunggu Konfirmasi</span>";
}elseif($i['invoice_status'] == 2){
echo "<span class='label label-danger'>Ditolak</span>";
}elseif($i['invoice_status'] == 3){
echo "<span class='label label-primary'>Dikonfirmasi</span>";
}elseif($i['invoice_status'] == 4){
echo "<span class='label label-success'>Selesai</span>";
}
?>
</td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
<br/>
<p>Silahkan Lakukan Pembayaran Ke Nomor Rekening Berikut :</p>
<table class="table table-bordered">
<tr>
<th width="30%">Nomor Rekening</th>
<td>123-456-7890</td>
</tr>
<tr>
<th>Atas Nama</th>
<td>AlHuriah Hotel</td>
</tr>
<tr>
<th>Bank</th>
<td>Bank Central Asia (BCA)</td>
</tr>
</table>
<br/>
<form action="customer_pembayaran_act.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<input type="hidden" name="id" value="<?php echo $id_invoice; ?>">
<label>Upload Bukti Pembayaran</label>
<br>
<input type="file" name="bukti" required="required">
<small class="text-muted">File yang diperbolehkan hanya file gambar.</small>
</div>
<br>
<input type="submit" value="Upload Bukti Pembayaran" class="site-btn">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Checkout Section End -->
<?php include 'footer.php'; ?>