-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlihat_pembayaran.php
67 lines (59 loc) · 1.41 KB
/
lihat_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
<?php
//error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
session_start();
include 'date.php';
include 'koneksi.php';
$id_pembelian = $_GET["id"];
$ambil = $koneksi->query("SELECT * FROM pembayaran
LEFT JOIN pembelian ON pembayaran.id_pembelian=pembelian.id_pembelian
WHERE pembelian.id_pembelian='$id_pembelian'");
$detbay = $ambil->fetch_assoc();
if (empty($detbay))
{
echo "<script>location='riwayat.php'</script>";
exit();
}
if ($_SESSION["pelanggan"]['id_pelanggan'] !== $detbay["id_pelanggan"])
{
echo "<script>location='riwayat.php'</script>";
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Lihat Pembayaran</title>
<link rel="stylesheet" type="text/css" href="admin/assets/css/bootstrap.css">
</head>
<body>
<?php include 'navbar.php'; ?>
<div class="container">
<h3>Lihat Pembayaran</h3>
<div class="row">
<div class="col-md-6">
<table class="table">
<tr>
<th>Nama</th>
<td><?php echo $detbay["nama"]; ?></td>
</tr>
<tr>
<th>Bank</th>
<td><?php echo $detbay["bank"]; ?></td>
</tr>
<tr>
<th>Total</th>
<td>Rp<?php echo number_format($detbay["jumlah"]); ?></td>
</tr>
<tr>
<th>Tanggal</th>
<td><?php echo $detbay["tanggal"]; ?></td>
</tr>
</table>
</div>
<div class="col-md-6">
<img src="bukti_pembayaran/<?php echo $detbay["bukti"]; ?>" class="img-responsive">
</div>
</div>
</div>
</body>
</html>