-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathriwayat_pengeluaran.php
75 lines (69 loc) · 2.13 KB
/
riwayat_pengeluaran.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
<?php
require 'connection.php';
checkLogin();
$riwayat_pengeluaran = mysqli_query($conn, "SELECT * FROM riwayat_pengeluaran INNER JOIN user ON riwayat_pengeluaran.id_user = user.id_user ORDER BY tanggal DESC");
?>
<!DOCTYPE html>
<html>
<head>
<?php include 'include/css.php'; ?>
<title>Riwayat_pengeluaran Uang Kas</title>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include 'include/navbar.php'; ?>
<?php include 'include/sidebar.php'; ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm">
<h1 class="m-0 text-dark">Riwayat Pengeluaran Uang Kas</h1>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="table-responsive">
<table class="table table-striped table-hover" id="table_id">
<thead>
<tr>
<th>No.</th>
<th>Username</th>
<th>Pesan</th>
<th>Tanggal</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php foreach ($riwayat_pengeluaran as $dr): ?>
<tr>
<td><?= $i++; ?></td>
<td><?= $dr['username']; ?></td>
<td><?= $dr['aksi']; ?></td>
<td><?= date('d-m-Y, H:i:s', $dr['tanggal']); ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<strong>Copyright © 2020 By Andri Firman Saputra.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 1.0.0
</div>
</footer>
</div>
</body>
</html>