-
Notifications
You must be signed in to change notification settings - Fork 0
/
pending-print.php
84 lines (68 loc) · 2.43 KB
/
pending-print.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
<?php
session_start();
include 'config/app.php';
// membatasi halaman sebelum login
if (!isset($_SESSION["login"])){
echo "<script>
alert('login dulu bang');
document.location.href = 'login.php';
</script>";
exit;
}
$title = 'Penarikan';
$data_member = select("SELECT * FROM membership WHERE status=0");
?>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?= $title; ?></title>
<!-- CSS -->
<link rel="stylesheet" href="css/style.css" />
<!-- Boxicons CSS -->
<link href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.rtl.min.css" integrity="sha384-T5m5WERuXcjgzF8DAb7tRkByEZQGcpraRTinjpywg37AO96WoYN9+hrhDVoM6CaT" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.3.6/css/buttons.dataTables.min.css">
</head>
<a class="navbar-brand" href="#">
<img src="https://animenyc.com/wp-content/uploads/2021/01/Anime_NYC_Logo_Color_Stacked.png" alt="Logo" style="height: 80px;">
</a>
<hr>
<div class="container mt-5">
<h1>Data approve</h1>
<div class="d-flex justify-content-between">
<p>Tanggal : <?= date('Y-m-d'); ?></p>
<p>Nama Akun : <?= $_SESSION['username']; ?></p>
</div>
<hr>
<table class="table table-bordered table-striped mt-3" id="table">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>Email</th>
<th>Struk</th>
<th>Status</th>
<th>Dibuat</th>
</tr>
</thead>
<tbody>
<?php $no = 1; ?>
<?php foreach ($data_member as $member) : ?>
<tr>
<td><?= $no++; ?></td>
<td><?= $member['nama']; ?></td>
<td><?= $member['email']; ?></td>
<td><a href="assets/img/<?= $member['struk']; ?>"><?= $member['struk']; ?></a></td>
<td><?= ($member['status'] == 0) ? 'Pending' : 'Selesai'; ?></td>
<td><?= $member['tgl_dibuat']; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<script>
window.print();
</script>