-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_petugas.php
113 lines (106 loc) · 3.39 KB
/
input_petugas.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 mjkelamin";
$item = mysqli_query($conn, $sql);
$proses = $_GET['proses'];
if ($proses =="update"){
$nik = $_GET['nik'];
$qu = "SELECT * FROM mpetugas WHERE nik = $nik";
$data = mysqli_query($conn, $qu);
$d = mysqli_fetch_array($data);
$nama = $d['namaPetugas'];
$kelamin = $d['idJkelamin'];
$alamat = $d['alamat'];
$nohp = $d['noHP'];
} else {
$nik ="";
$nama = "";
$kelamin = "";
$alamat = "";
$nohp = "";
}
?>
<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_petugas.php?proses=<?php echo $proses ?>">
<table border="0">
</td>
<tr>
<td>NIK</td>
<td>:</td>
<td><input type="text" name="nik" value="<?php echo $nik ?>" maxlength="12"onkeypress="return event.charCode >= 48 && event.charCode <= 57"></td>
</tr>
<tr>
<td>Nama Petugas</td>
<td>:</td>
<td><input type="text" name="nama" value="<?php echo $nama ?>"></td>
</tr>
<tr>
<td>Jenis Kelamin</td>
<td>:</td>
<td>
<select name="jenis_kelamin" id="">
<?php while ($row1 = mysqli_fetch_array($item)):;?>
<option value=<?php echo $row1[0]; ?>><?php echo $row1[1]; ?></option>
<?php endwhile; ?>
</select>
</td>
</tr>
<tr>
<td>Alamat</td>
<td>:</td>
<td><input type="text" name="alamat" value="<?php echo $alamat ?>"></td>
</tr>
<tr>
<td>Nomor Telepon</td>
<td>:</td>
<td><input type="text" name="no_telp" value="<?php echo $nohp ?>"onkeypress="return event.charCode >= 48 && event.charCode <= 57"></td>
</tr>
<tr>
<td><input type="submit" name="simpan" value="Simpan"></td>
</tr>
</tr>
</table>
</form>
<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>