-
Notifications
You must be signed in to change notification settings - Fork 4
/
barang-dikembalikan.php
70 lines (67 loc) · 2.21 KB
/
barang-dikembalikan.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
<?php
if(isset($_GET['username'])){
$username = $_GET['username'];
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Peminjaman Barang Sekolah</title>
<link rel="stylesheet" type="text/css" href="tambahan/bootstrap-4.1.3/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="tambahan/bootstrap-4.1.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/register-style.css">
<link rel="stylesheet" type="text/css" href="tambahan/font-awesome/css/font-awesome.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body style="background-image: url('') !important;">
<div class="container">
<div class='row'>
<div class="col-md-2" style="padding-top: 20px;">
<a href="index.php" class="btn btn-info btn-icon btn-sm">
<i class="fa fa-arrow-left"></i>
</a>
</div>
<div class="col-md-8 form-register-container">
<h2>Data Barang Dikembalikan</h2>
<table class="table table-bordered table-super-condensed">
<thead>
<tr>
<th>No</th>
<th>Nama Barang</th>
<th>Jumlah Barang</th>
<th>Tgl Pinjam</th>
<th>Tgl Kembali</th>
</tr>
</thead>
<tbody>
<?php
include 'config.php';
$query = mysql_query("SELECT * FROM tbl_transaksi WHERE peminjam='$username' ORDER BY id DESC");
if(mysql_num_rows($query) == 0){
echo "<tr><td colspan='6'>belum ada data!</td></tr>";
}else{
$no = 1;
while ($data = mysql_fetch_array($query)) {
?>
<tr>
<td><?php echo $no;?></td>
<td><?php echo $data['nama_barang'];?></td>
<td><?php echo $data['jml_barang'];?></td>
<td><?php echo $data['tgl_pinjam'];?></td>
<td><?php echo $data['tgl_kembali'];?></td>
</tr>
<?php
$no++;
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript" src="tambahan/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="tambahan/bootstrap-4.1.3/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="tambahan/bootstrap-4.1.3/dist/js/bootstrap.min.js"></script>
</body>
</html>