-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathubah_pengguna.php
executable file
·74 lines (70 loc) · 3.88 KB
/
ubah_pengguna.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
<?php require(realpath('header.php')); ?>
<?php
$id_user = $_SESSION['id_user'];
$id_pengguna = $_GET['id'];
$query = "SELECT * FROM pengguna WHERE id_pengguna = '$id_pengguna'";
$result = mysqli_query($conn, $query);
$row = mysqli_fetch_array($result);
?>
<section class="content">
<div class="container-fluid">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
UBAH PENGGUNA
</h2>
</div>
<div class="body">
<form action="pages/ubah_pengguna_apk.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id_pengguna" value="<?php echo $pengguna?>">
<div class="row clearfix">
<div class="form-group">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<label class="">USERNAME</label>
<input type="text" id="" name="username" class="form-control" value="<?php echo $row['username']?>" required>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<label class="">PASSWORD</label>
<input type="text" id="" name="password" class="form-control" value="<?php echo $row['password']?>" required>
</div>
</div>
</div>
<div class="col-md-4" >
<div class="form-group">
<div class="form-line">
<label>LEVEL</label>
<select class="form-control show-tick" name="level" value="<?php echo $row['level']?>">
<option value="<?php echo $row[';level']?>"><?php echo $row['level']?></option>
<option value="Lanjutkan">Lanjutkan</option>
<option>asasa</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<button type="submit" name="simpan" class="btn btn-success m-t-15 waves-effect" style="top: 20px">SAVE</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?php require(realpath('footer.php')); ?>