-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathv_pembayaran.php
More file actions
44 lines (43 loc) · 1.67 KB
/
v_pembayaran.php
File metadata and controls
44 lines (43 loc) · 1.67 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
<div class="page page-hide" id="v_pembayaran" visibility="close">
<?php include 'Template/modal/modal-keluaran.php';?>
<span class="page-title">Daftar Pembayaran</span>
<div class="tpembayaran-container">
<table class="Table-form DataTable">
<thead>
<tr>
<td>ID Table</td>
<td>Nama Table</td>
<td>Total</td>
<td>Action</td>
</tr>
</thead>
<tbody>
<?php
$Data = getTable($koneksi);
while($d = mysqli_fetch_array($Data)){
?>
<tr>
<td><?php echo $d['id_jenispembayaran']; ?></td>
<td><?php echo $d['nama_pembayaran']; ?></td>
<td>
<?php
if ($d['Total']==0) {
$total = total($koneksi,$d['id_jenispembayaran']);
while($t = mysqli_fetch_array($total)){
echo "Rp.". number_format($t['total'],2,',','.');
}
}else echo "Rp.". number_format($d['Total'],2,',','.');
?>
</td>
<td>
<button class="btn btn-success" onclick="Page('Form','<?php echo $d['id_jenispembayaran']; ?>')">Bayar</button>
<button class="btn btn-danger" data-toggle="modal" data-target="#Keluaran<?php echo $d['id_jenispembayaran']; ?>">Pengeluaran</button>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>