-
Notifications
You must be signed in to change notification settings - Fork 0
/
konfirmasiBayar.php
130 lines (87 loc) · 2.2 KB
/
konfirmasiBayar.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
<div class="col-md-12" style="text-align: center; margin-left: 2%;" >
<?php
include "koneksi.php";
$nama_klien=$_SESSION['nama_klien'];
$per_page=10;
if (isset($_GET['pg'])) {
$page = $_GET['pg'];
}else {
$page=1;
}
// Page will start from 0 and Multiple by Per Page
$start_from = ($page-1) * $per_page;
$query_limit = "LIMIT $start_from, $per_page";
$query = "SELECT * FROM pesan WHERE nama_klien='$nama_klien' AND konfirm = 1 ";
$sql = mysqli_query($connect,$query);
?>
<div class="box">
<h2>PEMBAYARAN</h2>
<?php
$sqlNama = "SELECT * FROM pesan WHERE nama_klien = '$nama_klien'";
$query = mysqli_query($connect,$sqlNama);
$tmp = mysqli_fetch_array($query);
?>
<div class="panel panel-default">
<div class="panel-body text-left" style="background-color: #E5E4E2">
<table>
<tr>
<td align="left">NIK : <?php echo $tmp['nik']; ?></td>
</tr>
<tr>
<td align="left">Nama Pemesan : <?php echo $tmp['nama_klien']; ?></td>
</tr>
</table>
</div>
</div>
<br>
<br>
<table class='table table-stripted-bordered'>
<thead>
<tr>
<th>No</th>
<th>No Invoice</th>
<th>Tanggal Keberangkatan</th>
<th>Kategori</th>
<th>Tarif</th>
<th>Pembayaran</th>
</tr>
</thead>
<?php
$no = 1;
$count = mysqli_num_rows($sql);
if($count<1){
echo "<tr><td colspan='9'><center>Menunggu Konfirmasi Admin</center></td></tr>";
}else{
while($data=mysqli_fetch_array($sql,MYSQLI_BOTH)){
?>
<tr>
<td align="left"><?php echo $no++; ?></td>
<td align="left"><?php echo $data['invoice']; ?></td>
<td align="left"><?php echo $data['tgl']; ?></td>
<td align="left"><?php echo $data['kategori']; ?></td>
<td align="left">Rp. <?php echo number_format($data['harga']); ?></td>
<td width="50">
<?php
if($data['uploads']==NULL){
?>
<a href="?pg=form_pembayaran&&id=<?php echo $data['id_pesan']; ?>" class="btn btn-danger" >Process</a>
<?php
}else{
if($data['konfirmBayar']==0){
echo "Wait for Confirm";
}else{
?>
<a href="kwitansiCetak.php?id=<?php echo $data['id_pesan']; ?>" class="btn btn-success" target="_blank" >Kwitansi</a>
<?php
}
}
?>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>