-
Notifications
You must be signed in to change notification settings - Fork 0
/
laporan.php
119 lines (110 loc) · 3.1 KB
/
laporan.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
//berkas sistem
require_once './app/config.php';
require_once './app/database.php';
require_once './app/fungsi.php';
//fungsi-fungsi
_isLogin();
$error = 0;
if (!empty($ubah)) {
}
?>
<html>
<head>
<title>Cetak Laporan</title>
</head>
<body>
<p><a href="./index.php">Home</a> > Cetak Laporan</p>
<br/>
<h3>Laporan Peminjaman</h3>
<form action="./laporan_cetak.php" method="get" target="_blank">
<input type="hidden" name="jn" value="peminjaman">
<table>
<tr>
<td>Rentang Tanggal Peminjaman</td>
<td>:</td>
<td>
<input type="date" name="aw" value="<?= date('Y-m-d') ?>" required> :
<input type="date" name="ak" value="<?= date('Y-m-d') ?>" required>
</td>
</tr>
<tr>
<td>Status Peminjaman</td>
<td>:</td>
<td>
<select name="st" required>
<option value="semua">Semua Status</option>
<option value="0">Belum dikembalikan</option>
<option value="1">Sudah dikembalikan</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<input type="submit" value="CETAK">
</td>
</tr>
</table>
</form>
<h3>Laporan Peminjaman Detail</h3>
<form action="./laporan_cetak.php" method="get" target="_blank">
<input type="hidden" name="jn" value="detail_pinjam">
<table>
<tr>
<td>Rentang Tanggal Peminjaman</td>
<td>:</td>
<td>
<input type="date" name="aw" value="<?= date('Y-m-d') ?>" required> :
<input type="date" name="ak" value="<?= date('Y-m-d') ?>" required>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<input type="submit" value="CETAK">
</td>
</tr>
</table>
</form>
<h3>Laporan Inventaris</h3>
<form action="./laporan_cetak.php" method="get" target="_blank">
<input type="hidden" name="jn" value="inventaris">
<table>
<tr>
<td>Rentang Tanggal Register</td>
<td>:</td>
<td>
<input type="date" name="aw" value="<?= date('Y-m-d') ?>" required> :
<input type="date" name="ak" value="<?= date('Y-m-d') ?>" required>
</td>
</tr>
<tr>
<td>Kondisi Inventaris</td>
<td>:</td>
<td>
<select name="kd" required>
<option value="semua">Semua Kondisi</option>
<option value="bagus">Bagus</option>
<option value="rusak">Rusak</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<input type="submit" value="CETAK">
</td>
</tr>
</table>
</form>
<?php
if ($error == 1) :
echo '<p>Tidak ada data yang dirubah, pastikan ada perubahan pada Nama atau Password sebelumnya.</p>';
endif;
?>
</body>
</html>