-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment_admin.php
More file actions
92 lines (87 loc) · 3.08 KB
/
Copy pathpayment_admin.php
File metadata and controls
92 lines (87 loc) · 3.08 KB
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
<?php
include 'config.php';
session_start();
// cek apakah user telah login, jika belum login maka di alihkan ke halaman login
if($_SESSION['status'] !="login"){
header("Location:index.php");
}
include 'view2/header.php';
?>
<title>Konfirmasi Pembayaran</title>
</head>
<body>
<?php
include 'view2/sidebar_admin.php';
include 'view2/navbar_admin.php';
?>
<!--<br/>
<div class = "page-header">
<h5 class="text-center font-weight-bold">Halaman Konfirmasi Pembayaran</h5>
</div>
<div class="container table-responsive">
<table class="table table-striped table-sm" id="tabel">
<thead>
<tr>
<th scope="col">id_transaksi</th>
<th scope="col">username</th>
<th scope="col">nama UMKM</th>
<th scope="col">Bidang UMKM</th>
<th scope="col">nama paket</th>
<th scope="col">bukti pembayaran</th>
<th scope="col">konfirmasi pembayaran</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>-->
<div class="row" id="table-striped">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Konfirmasi Pembayaran</h4>
</div>
<div class="card-content">
<!-- table striped -->
<div class="table-responsive">
<table class="table table-striped mb-0">
<thead>
<tr>
<th>id_transaksi</th>
<th>username</th>
<th>nama UMKM</th>
<th>Bidang UMKM</th>
<th>nama paket</th>
<th>bukti pembayaran</th>
<th>konfirmasi pembayaran</th>
</tr>
</thead>
<tbody>
<?php
include ('config.php');
$sql = "SELECT package.id_transaksi,user.username, user.nama_umkm,bidang.nm_bidang,user.alamat,tipe_pkg.nm_pack, package.bukti FROM package INNER JOIN user INNER JOIN tipe_pkg INNER JOIN bidang ON package.id_user=user.id_user AND package.pack_type=tipe_pkg.id_pack AND package.payment_sts=0 AND user.bidang=bidang.id_bidang";
$query = mysqli_query($db, $sql);
while($pay = mysqli_fetch_array($query)){
echo "<form action='konfirmasi_payment.php' method='post'>";
echo "<tr>";
echo "<td scope='row'><input type='hidden' name='id_transaksi' value='".$pay['id_transaksi']."'>".$pay['id_transaksi']."</td>";
echo "<td>".$pay['username']."</td>";
echo "<td>".$pay['nama_umkm']."</td>";
echo "<td>".$pay['nm_bidang']."</td>";
echo "<td>".$pay['nm_pack']."</td>";
echo "<td><a href='bukti/".$pay['bukti']."'target='blank'>".$pay['bukti']."</td>";
echo "<td><button class='btn btn-primary btn-sm' type='submit' name='konfirmasi'> Konfirmasi </button></td>";
echo "</tr>";
echo "</form>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
include "view2/footer2.php";
?>