-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpendingpayment.php
36 lines (33 loc) · 1.11 KB
/
pendingpayment.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
<?php
session_start();
include "./database/dbpembayaran.php";
$uname=$_SESSION["username"];
$query="SELECT * FROM pembayaran WHERE username= ? ";
$statement = $con->prepare($query);
$statement->bind_param("s",$uname);
$statement->execute();
$result = $statement->get_result();
$statement->close();
if($result->num_rows > 0){
while ($row = $result->fetch_assoc() ){?>
Nama Produk : <?php echo $row["nama_produk"];?><br>
Jumlah Pemesanan : <?php echo $row["jumlah"];?><br>
Bukti Pembayaran : <img src="./bukti transfer/<?= $row["username"]?>/<?=$row["bukti_trf"]; ?>" class="img-responsive" alt="Image">
<br>Status:
<?php
if ($row["stat"]=="DECLINED"){
echo "Admin does not approve.";
echo "<br>";?>
<a href="./controller/doDelete_Cust.php?id=<?=$row["id"]?>">Delete Order</a>
<?php
}else{
echo "Waiting for admin's confirmation";
echo "<br>";
}
}
}else{
echo "There is no pending confirmation";
}
?>
<br>
<a href="./home.php">Back to Home</a>