-
Notifications
You must be signed in to change notification settings - Fork 0
/
editpeminjam.php
134 lines (119 loc) · 5.27 KB
/
editpeminjam.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
session_start();
if(!isset($_SESSION['admin'])) {
header('location:login.php');
} else {
$username = $_SESSION['admin'];
}
?>
<?php
include "config/koneksi.php" ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Dashboard</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/dist/css/global.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="bootstrap/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Peminjaman Alat</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user fa-fw"></i>Etika Rs. <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out"></i> Logout</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right">
<input type="text" class="form-control" placeholder="Search...">
</form>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li class="active"><a href="#"><i class="fa fa-dashboard"> Dashboard</i></a></li>
<li><a href="barang.php"><i class="fa fa-laptop"> Barang</i></a></li>
<li><a href="peminjam.php"><i class="fa fa-user"> Anggota</i></a></li>
<li><a href="#"><i class="fa fa-gear"> Peminjaman</i></a></li>
<li><a href="#"><i class="fa fa-book"> Pengembalian</i></a></li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">Edit Anggota</h1>
<section class="row">
<!-- left column -->
<div class="col-md-12">
<!-- general form element -->
<div class="box box-danger">
<div class="box-header with-border">
</div><!--/.box-header-->
<?php
$id_peminjam = $_GET['id_peminjam'];
$query = $mysqli->query("SELECT * FROM anggota where id_anggota='$id_peminjam'");
while ($qu = mysqli_fetch_array($query)){
?>
<!-- form start -->
<form role="form" action="proseseditpeminjam.php" method="post">
<div class = "box-body">
<div class ="form-group">
<label for="exampleInputEmail1">No</label>
<input type="text" disable value="<?php echo $qu['id_anggota'] ?>" name="id_peminjam" class="form-control" placeholder="" disabled>
<input type="hidden" value="<?= $qu['id_anggota']; ?>" name="id_peminjam">
</div>
<div class ="form-group">
<label for="exampleInputPassword1">Username </label>
<input type="text" value="<?php echo$qu['nama'] ?>" name="username"
class="form-control" placeholder="" required>
</div>
<div class ="form-group">
<label for="exampleInputPassword1">Password </label>
<input type="password" value="<?php echo$qu['password'] ?>" name="password"
class="form-control" placeholder="" required>
</div>
<div class ="form-group">
<label for="exampleInputPassword1">Kelas </label>
<input type="text" disabled value="<?php echo$qu['kelas'] ?>" name="kelas"
class="form-control" placeholder="" required>
</div>
<?php
}
?>
<div class="box-footer">
</div>
<br>
<br>
<button type="submit" class="btn btn-danger">Simpan</button>
<a href="peminjam.php" class="btn btn-danger">Back</a>
</div>
</form>
</section><!-- /.content -->
</div>
</div>
</div>
<?php require_once "templates/footer.php" ?>