-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_peminjaman.php
113 lines (103 loc) · 3.41 KB
/
input_peminjaman.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
<?php
include 'koneksi.php';
session_start();
if (!isset($_SESSION['username'])){
header ("location:login.php");
}
$sql = "SELECT * FROM manggota WHERE status = 1";
$item = mysqli_query($conn, $sql);
$sql1 = "SELECT * FROM mbuku WHERE status = 1";
$item1 = mysqli_query($conn, $sql1);
$sql2 = "SELECT * FROM mpetugas WHERE status = 1";
$item2 = mysqli_query($conn, $sql2);
$proses = $_GET['proses'];
if ($proses =="update"){
$id = $_GET['nomorPeminjaman'];
$qu = "SELECT * FROM tblpeminjaman WHERE nomorPeminjaman = $id";
$data = mysqli_query($conn, $qu);
$d = mysqli_fetch_array($data);
}
?>
<html>
<head>
<title>PERPUSTAKAAN</title>
<link rel="stylesheet" type="text/css" href="assets/css/app.css">
</head>
<body>
<div class="card">
<div class="card-body">
<style type="text/css">
.pagination li{
float: left;
list-style-type: none;
margin: 5px;
}
</style>
<h1>Sistem Informasi Perpustakaan</h1>
<div class="form-grup"></div>
</form>
<a href="anggota.php" class="btn btn-primary ml-1" style="text-decoration: none;">Anggota</a>
<a href="buku.php" class="btn btn-primary ml-1" style="text-decoration: none;">Buku</a>
<a href="petugas.php" class="btn btn-primary ml-1" style="text-decoration: none;">Petugas</a>
<a href="pinjam.php" class="btn btn-primary ml-1" style="text-decoration: none;">Peminjaman Buku</a>
<a href="pengembalian.php" class="btn btn-primary ml-1" style="text-decoration: none;">Pengembalian Buku</a>
<br>
<br>
<tr>
<td width="500" align="center">
<form method="POST" action="proses_peminjaman.php?proses=<?php echo $proses ?>">
<table border="0">
</td>
<tr>
<td>Nama Anggota</td>
<td>:</td>
<td>
<select name="nama_anggota" id="">
<?php while ($row2 = mysqli_fetch_array($item)):;?>
<option value=<?php echo $row2[0]; ?>><?php echo $row2[1]; ?></option>
<?php endwhile; ?>
</select>
</td>
</tr>
<tr>
<td>Nama Buku</td>
<td>:</td>
<td>
<select name="nama_buku" id="">
<?php while ($row2 = mysqli_fetch_array($item1)):;?>
<option value=<?php echo $row2[0]; ?>><?php echo $row2[3]; ?></option>
<?php endwhile; ?>
</select>
</td>
</tr>
<tr>
<td>Nama Petugas</td>
<td>:</td>
<td>
<select name="nama_petugas" id="">
<?php while ($row2 = mysqli_fetch_array($item2)):;?>
<option value=<?php echo $row2[0]; ?>><?php echo $row2[1]; ?></option>
<?php endwhile; ?>
</select>
</td>
</tr>
<tr>
<td><input type="submit" name="simpan" value="Simpan"></td>
</tr>
</tr>
</form>
</table>
<br>
<tr>
<td colspan="2" align="right">
<button>
<a href="daftar.php" style="text-decoration:none;">Daftar</a>
</button>
<button>
<a href="logout.php" style="text-decoration:none;">Logout</a>
</button>
</td>
</tr>
</table>
</body>
</html>