-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubah_password.php
48 lines (45 loc) · 1.76 KB
/
ubah_password.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" type="text/css" href="admin/vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="admin/vendors/bootstrap/dist/css/styles.css">
</head>
<body>
<?php
include 'admin/koneksi.php';
$id_pegawai = $_GET['id_pegawai'];
$sql="SELECT * FROM pegawai WHERE id_pegawai='$id_pegawai'";
$query=mysqli_query($conn,$sql) or die (mysqli_error($conn));
$temp=mysqli_fetch_array($query);
?>
<div class="row">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">GANTI PASSWORD</div>
<div class="panel-body">
<form role="form" action="proses/changepassword.php" method="POST">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="EMAIL ANDA" name="email" type="email" value="<?php echo $temp['email']; ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="PASSWORD LAMA" name="passwordlama" type="hidden" value="<?php echo $temp['password'] ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="PASSWORD BARU" name="passwordbaru" type="password" value="">
</div>
<input type="submit" class="btn btn-primary btn-block" value="UBAH PASSWORD" />
</fieldset>
</form>
</div>
</div>
</div><!-- /.col-->
</div><!-- /.row -->
<script src="admin/vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="admin/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>