-
Notifications
You must be signed in to change notification settings - Fork 90
/
change_password.php
154 lines (131 loc) · 6.56 KB
/
change_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
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
<?php
include("session.php");
$exp_fetched = mysqli_query($con, "SELECT * FROM expenses WHERE user_id = '$userid'");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Expense Manager - Dashboard</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<!-- Feather JS for Icons -->
<script src="js/feather.min.js"></script>
</head>
<body>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<div class="border-right" id="sidebar-wrapper">
<div class="user">
<img class="img img-fluid rounded-circle" src="uploads\default_profile.png" width="120">
<h5><?php echo $username ?></h5>
<p><?php echo $useremail ?></p>
</div>
<div class="sidebar-heading">Management</div>
<div class="list-group list-group-flush">
<a href="index.php" class="list-group-item list-group-item-action sidebar-active"><span data-feather="home"></span> Dashboard</a>
<a href="add_expense.php" class="list-group-item list-group-item-action "><span data-feather="plus-square"></span> Add Expenses</a>
<a href="manage_expense.php" class="list-group-item list-group-item-action "><span data-feather="dollar-sign"></span> Manage Expenses</a>
<a href="expensereport.php" class="list-group-item list-group-item-action"><span data-feather="file-text"></span> Expense Report</a>
</div>
<div class="sidebar-heading">Settings </div>
<div class="list-group list-group-flush">
<a href="profile.php" class="list-group-item list-group-item-action "><span data-feather="user"></span> Profile</a>
<a href="logout.php" class="list-group-item list-group-item-action "><span data-feather="power"></span> Logout</a>
</div>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<nav class="navbar navbar-expand-lg navbar-light border-bottom">
<button class="toggler" type="button" id="menu-toggle" aria-expanded="false">
<span data-feather="menu"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="img img-fluid rounded-circle" src="<?php echo $userprofile ?>" width="25">
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Your Profile</a>
<a class="dropdown-item" href="#">Edit Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="logout.php">Logout</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<h5>Hi <?php echo $firstname ?>! You can change your password here</h5>
<div class="row mt-3">
<div class="col-md">
<form class="form" action="" method="post" id="registrationForm" autocomplete="off">
<div class="form-group">
<div class="col">
<label for="password">
Enter Current Password
</label>
<input type="password" class="form-control" name="curr_password" id="password" placeholder="New Password">
</div>
</div>
<div class="form-group">
<div class="col">
<label for="password">
Enter New Password
</label>
<input type="password" class="form-control" name="new_password" id="password" placeholder="New Password">
</div>
</div>
<div class="form-group">
<div class="col">
<label for="password2">
Confirm New Password
</label>
<input type="password" class="form-control" name="confirm_new_password" id="confirm_password" placeholder="Confirm Password">
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<br>
<button class="btn btn-block btn-primary" name="updatepassword" type="submit">Update Password</button>
</div>
</div>
</form>
<!--/tab-content-->
</div>
<!--/col-9-->
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Bootstrap core JavaScript -->
<script src="js/jquery.slim.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
<script>
feather.replace()
</script>
</body>
</html>