-
Notifications
You must be signed in to change notification settings - Fork 32
/
user_password_update.php
156 lines (106 loc) · 4.02 KB
/
user_password_update.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
session_start();
include_once("admin/class/adminback.php");
$obj = new adminback();
$cata_info = $obj->p_display_catagory();
$cataDatas = array();
while ($data = mysqli_fetch_assoc($cata_info)) {
$cataDatas[] = $data;
}
if (isset($_SESSION['user_id'])) {
header("location:userprofile.php");
}
if(isset($_GET['status'])){
if($_GET['status']='update'){
$update_id = $_GET['id'];
}}
if(isset($_POST['u_pass_recover'])){
$update_msg = $obj->update_user_password($_POST);
}
?>
<?php
include_once("includes/head.php");
?>
<body class="biolife-body">
<!-- Preloader -->
<?php
include_once("includes/preloader.php");
?>
<!-- HEADER -->
<header id="header" class="header-area style-01 layout-03">
<?php
include_once("includes/header_top.php");
?>
<?php
include_once("includes/header_middle.php");
?>
<?php
include_once("includes/header_bottom.php");
?>
</header>
<!-- Page Contain -->
<div class="page-contain">
<!-- Main content -->
<div id="main-content" class="main-content">
<div class="container">
<h2 class="text-center">Update Password</h2>
<h4 class="text-danger"> <?php
if (isset($update_msg )) {
echo $update_msg ;
}
?></h4>
<div class="row">
<!--Form Sign In-->
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="signin-container">
<form action="" name="frm-login" method="POST">
<input type="hidden" name="update_user_id" value="<?php echo $update_id ?>">
<p class="form-row">
<label for="user_password">New Password:</label>
<input type="password" name="update_user_password" class="txt-input">
</p>
<p class="wrap-btn">
<input type="submit" value="Update Password" name="u_pass_recover" class="btn btn-success">
</p>
</form>
</div>
</div>
<!--Go to Register form-->
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="register-in-container">
<div class="intro">
<h4 class="box-title">New Customer?</h4>
<p class="sub-title">Create an account with us and you’ll be able to:</p>
<ul class="lis">
<li>Check out faster</li>
<li>Save multiple shipping anddesses</li>
<li>Access your order history</li>
<li>Track new orders</li>
<li>Save items to your Wishlist</li>
</ul>
<a href="user_register.php" class="btn btn-bold">Create an account</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<?php
include_once("includes/footer.php");
?>
<!--Footer For Mobile-->
<?php
include_once("includes/mobile_footer.php");
?>
<?php
include_once("includes/mobile_global.php")
?>
<!-- Scroll Top Button -->
<a class="btn-scroll-top"><i class="biolife-icon icon-left-arrow"></i></a>
<?php
include_once("includes/script.php")
?>
</body>
</html>