-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.php
87 lines (69 loc) · 2.47 KB
/
data.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>DATA </title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.21.0/dist/bootstrap-table.min.css">
</head>
<body>
<div class="container">
<div class="row">
<h1> <br>
<br>DATA PEMBAYARAN SEMINAR</h1>
<br>
<script src="https://unpkg.com/bootstrap-table@1.21.0/dist/bootstrap-table.min.js"></script>
<table
id="table"
data-toggle="table"
data-height="460"
data-pagination="true"
data-search="true"
>
<thead>
<tr>
<th data-field="id">NO</th>
<th data-field="name">NAMA LENGKAP </th>
<th data-field="nominal">NOMINAL PEMBAYARAN</th>
<th data-field="status">STATUS</th>
<th data-field="hapus">HAPUS</th>
</tr>
</thead>
<tbody>
<?php
include "koneksi.php";
error_reporting(0);
$no=1;
$query = mysqli_query($koneksi, "SELECT * FROM klien ORDER BY id ASC ");
while ($data = mysqli_fetch_array($query)) { // Ambil semua data dari hasil eksekusi $sql
$status=$data['transaction_status'];
echo "<tr>";
echo "<td >".$no++."</td>";
echo "<td>".$data['nama']."</td>";
echo "<td>".$data['biaya']."</td>";
if($status >=3 )
{
echo "<td><b> Pembayaran Sukses</b></span></td>";
}
elseif ($status>=2 ) {
echo "<td><b> Pembayaran Panding</b></span></td>";
}
else
{
echo "<td><b> Pembayaran Belum Dilakukan</b></span></td>";
}
echo "<td><a href='hapus.php?id=".$data['id']."' class='btn btn-danger'><i class='bi bi-trash-fill'></i> HAPUS </a></td>";
}
?>
</tbody>
</table>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://unpkg.com/bootstrap-table@1.21.0/dist/bootstrap-table.min.js"></script>
</body>
</html>