-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangePasswordForEmployee.php
More file actions
53 lines (44 loc) · 1.64 KB
/
Copy pathchangePasswordForEmployee.php
File metadata and controls
53 lines (44 loc) · 1.64 KB
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
<?php
require 'authentication.php'; // admin authentication check
// auth check
if ($user_id == NULL || $security_key == NULL) {
header('Location: index.php');
}
if (isset($_POST['change_password_btn'])) {
$info = $obj_admin->change_password_for_employee($_POST);
}
$page_name = "Login";
include("include/login_header.php");
?>
<div class="row">
<div class="col-md-4 col-md-offset-3">
<div class="well" style="position:relative;top:20vh;">
<form class="form-horizontal form-custom-login" action="" method="POST">
<div class="form-heading" style="background: orange;">
<h2 class="text-center">Please Change your password</h2>
</div>
<!-- <div class="login-gap"></div> -->
<?php if (isset($info)) { ?>
<h5 class="alert alert-danger"><?php echo $info; ?></h5>
<?php } ?>
<div class="input-group" id="show_hide_password">
<input type="password" class="form-control" placeholder="Password" name="password" required />
<div class="input-group-addon">
<a href=""><i class="glyphicon glyphicon-eye-close"></i></a>
</div>
</div>
<div class="input-group" id="show_hide_re_password">
<input type="password" class="form-control" placeholder="Retype Password" name="re_password" required />
<div class="input-group-addon">
<a href=""><i class="glyphicon glyphicon-eye-close"></i></a>
</div>
</div>
<input type="hidden" class="form-control" name="user_id" value="<?php echo $user_id; ?>" required />
<button type="submit" name="change_password_btn" class="btn btn-default pull-right">Change Password</button>
</form>
</div>
</div>
</div>
<?php
include("include/footer.php");
?>