-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangethepassword.php
80 lines (79 loc) · 3.87 KB
/
changethepassword.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
<!DOCTYPE html>
<html>
<head>
<title>Thay đổi mật khẩu tài khoản</title>
<link rel="icon" href="./upload/img/logo.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="script/js/myJS.js"></script>
<link rel="stylesheet" href="script/css/mystyle.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" />
</head>
<body>
<?php
if(isset($_COOKIE['login'])){
if(isset($_POST['oldpassword'])){
require_once "./controller/Account_Control.php";
$temp =new Account_Control();
$temp -> ChangePasswordUser();
}
}else{
echo '
<H2 style="margin-top: 15px; margin-left: 15px">Bạn chưa đăng nhập tài khoản!</H2>
<script>setTimeout(function(){ window.location="./login.php" }, 3000);</script>';
die();
}
?>
<?php include 'views/header.html' ?>
<div class="between">
<div class="content">
<div class="container">
<div class="row" style="margin: 15px 0px">
<div class="col-md-3" style="padding: 4px">
<div class="bg-white" style="padding: 5px 15px">
<?php include "./views/menuacount.html" ?>
</div>
</div>
<div class="col-md-9" style="padding: 4px">
<div class="bg-white" style="padding: 15px 15px">
<H4>THAY ĐỔI MẬT KHẨU</H4>
<div style="width: 40%; height: 3px; background: #ccc"></div>
<br> <br>
<p style="width: 100%; text-align: center"><img src="upload/img/login1.png" style="height: 150px; width: auto"><br></p>
<form method="post">
<div class="form-group">
<label for="exampleInputEmail1">Nhập mật khẩu cũ</label><br>
<input type="password" class="form-control-sm" style="width: 400px; max-width: 90%" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Nhập mật khẩu cũ" required name="oldpassword">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Nhập mật khẩu mới</label><br>
<input type="password" class="form-control-sm" style="width: 400px; max-width: 90%" id="exampleInputPassword1" placeholder="Nhập mật khẩu mới" name="new1password" required>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Xác nhận mật khẩu mới</label><br>
<input type="password" class="form-control-sm" style="width: 400px; max-width: 90%" id="exampleInputPassword1" placeholder="Xác nhận mật khẩu mới" name="new2password" required>
</div>
<button type="submit" class="btn btn-info">Thay đổi</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'views/footer.html'?>
<script>
$(window).load(function(){
responsive();
$(window).resize(function(){
responsive();
});
});
</script>
</body>
</html>