-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchange_password.php
More file actions
353 lines (294 loc) · 14.5 KB
/
change_password.php
File metadata and controls
353 lines (294 loc) · 14.5 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<?php
include "files/function.php";
if(!isset($_SESSION['user_login']) AND empty($_SESSION['user_login'][0]) AND empty($_SESSION['user_login'][1]))
{
header('location:login.php');
}
$userEmail=$_SESSION['user_login'][0];
$userID=$_SESSION['user_login'][1];
$userData=getUser($userEmail);
$appointmentData=getUserAppointments($userID);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- theme meta -->
<meta name="theme-name" content="focus" />
<title>Dashboard</title>
<!-- ================= Favicon ================== -->
<!-- Standard -->
<link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
<!-- Retina iPad Touch Icon-->
<link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
<!-- Retina iPhone Touch Icon-->
<link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
<!-- Standard iPad Touch Icon-->
<link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
<!-- Standard iPhone Touch Icon-->
<link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">
<!-- Styles -->
<link href="css/lib/calendar2/pignose.calendar.min.css" rel="stylesheet">
<link href="css/lib/chartist/chartist.min.css" rel="stylesheet">
<link href="css/lib/font-awesome.min.css" rel="stylesheet">
<link href="css/lib/themify-icons.css" rel="stylesheet">
<link href="css/lib/owl.carousel.min.css" rel="stylesheet" />
<link href="css/lib/owl.theme.default.min.css" rel="stylesheet" />
<link href="css/lib/weather-icons.css" rel="stylesheet" />
<link href="css/lib/menubar/sidebar.css" rel="stylesheet">
<link href="css/lib/bootstrap.min.css" rel="stylesheet">
<link href="css/lib/helper.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
<div class="nano">
<div class="nano-content">
<ul class="dashboardNavbar">
<div class="logo">
<a href="index.php"><span>E-Diary</span></a>
</div>
<li><a href="dashboard.php">All Event</a></li>
<li><a href="email_send_data.php">Reminder Data</a></li>
<li><a href="change_password.php">Change Password</a></li>
<li><a href="contact.php">Contact us</a></li>
<li><a href="#logoutID" data-toggle="modal" data-target="#logoutID"> Logout</a></li>
</ul>
</div>
</div>
</div>
<!-- /# sidebar -->
<div class="header">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="float-left">
<div class="hamburger sidebar-toggle">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
</div>
</div>
<div class="float-right">
<div class="dropdown dib">
<div class="header-icon" data-toggle="dropdown">
<span class="user-avatar"> <?php echo ucwords($userData['name']); ?>
<i class="ti-angle-down f-s-10"></i>
</span>
<div class="drop-down dropdown-profile dropdown-menu dropdown-menu-right">
<div class="dropdown-content-body">
<ul class="adminLink">
<li>
<a href="#logoutID" data-toggle="modal" data-target="#logoutID">
<i class="ti-power-off"></i>
<span>Logout</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content-wrap">
<div class="main"></div>
<section class="section">
<div class="row">
<div class="col-md-6 mx-auto my-5">
<div class="card">
<div class="card-header">
<center><h2>Change Password</h2><br></center>
<form action="files/login_register.php" method="POST" class="submitForm">
<div class="form-group">
<input type="password" name="old_password" placeholder="Enter Old Password....!"
class="form-control mb-4 shadow rounded-0">
</div>
<div class="form-group">
<input type="password" name="new_password" placeholder="Enter New Password....!"
class="form-control mb-4 shadow rounded-0">
</div>
<div class="form-group">
<input type="password" name="confirm_password" placeholder="Enter Confirm Password....!"
class="form-control mb-4 shadow rounded-0">
</div>
<div class="row">
<div class="col-5">
</div>
<div class=""><button type="submit" class="btn btn-primary">Change Password</button></div>
</div>
<center><div class="alertError"></div></center>
</form>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- <h1 class="text-center mb-4">ubaid appointment</h1> -->
<div class="modal fade" id="appointment" tabindex="-1" role="dialog" aria-labelledby="appointmentLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="margin-top:150px">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add New Appointment</h5>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="col-md-12">
<form action="files/appointment.php" method="post" class="submitForm">
<div class="form-group">
<b>Event Name</b>
<input type="text" id="Events" name="event_name" placeholder="Enter Event Name....!"
class="form-control mb-4 shadow rounded-0" required>
</div>
<div class="form-group">
<b>Member</b>
<input type="number" id="No Of Members" name="no_member" placeholder="no of members"
class="form-control mb-4 shadow rounded-0" required>
</div>
<div class="form-group">
<b>Venue</b>
<input type="text" id="venue" name="venue" placeholder="Enter Venue"
class="form-control mb-4 shadow rounded-0" required>
</div>
<div class="form-group">
<b>Event Date</b>
<input type="date" id="date" name="event_date" name="name" class="form-control mb-4 shadow rounded-0" required>
</div>
<div class="form-group">
<b>From Time</b>
<input type="time" id="time" name="from_time" placeholder="from time"
class="form-control mb-4 shadow rounded-0" required>
</div>
<div class="form-group">
<b>To Time</b>
<input type="time" id="time" name="to_time" placeholder="to time" class="form-control mb-4 shadow" required>
</div>
<div class="form-group form-group-xls">
<b>Recurrence Type </b> (Optional)
<select class="form-select form-select-lg mb-4 shadow form-control" style="font-size: medium;" name="recurrence" required>
<option value="no" selected>Select</option>
<option value="Weekly">Weekly</option>
<option value="Monthly">Monthly</option>
<option value="yearly">yearly</option>
</select>
</div>
<div class="form-group form-group-xls">
<b>Remainder</b>
<select class="form-select form-select-lg mb-4 shadow form-control" style="font-size: medium;" name="remainder" required>
<option value="">Select Remainder</option>
<option value="5 minutes">5 Minutes Before</option>
<option value="10 minutes">10 Minutes Before</option>
<option value="15 minutes">15 Minutes Before</option>
<option value="20 minutes">20 Minutes Before</option>
<option value="30 minutes">30 Minutes Before</option>
<option value="1 hour">1 hour Before</option>
<option value="1 day">1 day Before</option>
<option value="custom">Custom</option>
</select>
<div class="custom-options" style="display: none;">
<label for="custom-date">Custom Date:</label>
<input type="date" name="custom-date" class="form-control custom-date">
<label for="custom-time">Custom Time:</label>
<input type="time" name="custom-time" class="form-control custom-time">
</div>
</div>
<button type="submit" class="btn btn-primary">Add Appointment</button>
<div class="alertError"></div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="updateAppointment" tabindex="-1" role="dialog" aria-labelledby="updateAppointment" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="margin-top:175px">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Update Appointment</h5>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="col-md-12">
<form action="files/appointment.php" method="post" class="submitForm appointmentUpdatedData">
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="logoutID" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Logout ID</h5>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p><strong>Are You Sure You Want To Logout ID.?</p>
</div>
<div class="modal-footer text-center">
<button type="button" class="btn btn-success btn-sm idLogOut">Yes</button>
<button type="close" class="btn btn-danger btn-sm" data-dismiss="modal">No</button>
</div>
<div class="alertModelError"></div>
</div>
</div>
</div>
<div class="modal fade" id="appointmentDelete" tabindex="-1" aria-labelledby="appointmentDelete" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Appointment Delete</h5>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p><strong>Are You Sure You Want To Delete Appointment.?</p>
</div>
<div class="modal-footer text-center">
<button type="button" class="btn btn-success btn-sm yesDeleteAppointment">Yes</button>
<button type="close" class="btn btn-danger btn-sm" data-dismiss="modal">No</button>
</div>
<div class="alertModelError"></div>
</div>
</div>
</div>
<!-- jquery vendor -->
<script src="js/lib/jquery.min.js"></script>
<script src="js/lib/jquery.nanoscroller.min.js"></script>
<!-- nano scroller -->
<script src="js/lib/menubar/sidebar.js"></script>
<script src="js/lib/preloader/pace.min.js"></script>
<!-- sidebar -->
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
<!-- bootstrap -->
<script src="js/lib/calendar-2/moment.latest.min.js"></script>
<script src="js/lib/calendar-2/pignose.calendar.min.js"></script>
<script src="js/lib/calendar-2/pignose.init.js"></script>
<script src="js/lib/weather/jquery.simpleWeather.min.js"></script>
<script src="js/lib/weather/weather-init.js"></script>
<script src="js/lib/circle-progress/circle-progress.min.js"></script>
<script src="js/lib/circle-progress/circle-progress-init.js"></script>
<script src="js/lib/chartist/chartist.min.js"></script>
<script src="js/lib/sparklinechart/jquery.sparkline.min.js"></script>
<script src="js/lib/sparklinechart/sparkline.init.js"></script>
<script src="js/lib/owl-carousel/owl.carousel.min.js"></script>
<script src="js/lib/owl-carousel/owl.carousel-init.js"></script>
<!-- scripit init-->
<script src="js/dashboard2.js"></script>
<script src="js/custom.js"></script>
</body>
</html>