-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgot_pass.php
More file actions
115 lines (95 loc) · 3.04 KB
/
Copy pathforgot_pass.php
File metadata and controls
115 lines (95 loc) · 3.04 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
<?php
// Name of the module !important
$module=basename($_SERVER["SCRIPT_NAME"]);
// Name of the file !important
$filename=basename(__FILE__, '.php');
//Including Variables
require_once('admin/assets/include/variables.php');
// Including functions
include('admin/assets/include/functions.php');
if (isset($_GET['logout'])&&$_GET['logout']=='user') {
// Message type and text
set_message(2,'You signed out !');
}
// Including header content
require_once('admin/assets/css_header_front.php');
?>
<body>
<div class="container">
<div class="row ">
<div class="col-md-12">
<div class="fadeIn wow animated">
<h4>Forgot Password !</h4>
</div>
<hr class="divider-msg">
</div>
</div>
<div class="row">
<form id="form-validation" name="form-validation" action="post_forgot_pass.php" method="post">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-6">
<input type="text" class="form-control" id="email" placeholder="Email *" name="email">
</div>
</div>
<div class="row">
<div class="col-sm-6">
<input type="text" class="form-control" id="birthday" placeholder="Birthday *" name="birthday">
</div>
</div>
<div class="row">
<div class="col-sm-6">
<input type="submit" class="form-control btn btn-warning" value="Reset Password">
</div>
</div>
</div>
</form>
</div>
</div>
<!-- JS library and scripts-->
<!-- Showing alert messages -->
<!-- Alerts -->
<script type="text/javascript">
$().ready(function() {
// validate signup form on keyup and submit
$("#form-validation").validate({
rules: {
email: {
required: true,
minlength: 5,
maxlength: 50,
email: true
},
birthday: {
required: true,
minlength: 5,
maxlength: 10
}
},
messages: {
email: {
required: "Please enter your email adress !",
minlength: "Email must be at least 5 characters long !",
maxlength: "Please enter no more than 50 characters !"
},
birthday: {
required: "Please enter your birthday !"
}
}
});
});
$(document).ready(function () {
$("#birthday").datepicker({
dateFormat: "yy-mm-dd",
inline: true,
maxDate:"-12 Years",
changeYear: true,
changeMonth: true,
showButtonPanel: true
});
});
</script>
<!-- Including Footer file -->
<?php echo file_get_contents('admin/assets/js_bottom_front.php');?>
</body>
</html>