-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_resetpw.php
139 lines (129 loc) · 3.22 KB
/
page_resetpw.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Login Form</title>
<link rel="shortcut icon" type="text/css" href="<?php echo base_url('assets/image/logo.png') ?>">
<style type="text/css">
@import"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
body{
background-size: cover;
background: url('<?php echo base_url('assets/image/12.jpg') ?>') no-repeat;
}
.login-box{
width: 280px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: white;
}
.login-box h1{
float: left;
font-size: 40px;
border-bottom: 6px solid #4caf50;
margin-bottom: 5px;
padding: 13px 0
}
.textbox{
width: 100%;
overflow: hidden;
font-size: 20px;
padding: 8px 0;
margin: 8px 0;
border-bottom: 1px solid #4caf50;
}
.textbox i{
width: 26px;
float: left;
text-align: center;
}
.textbox input{
border:none;
outline: none;
background:none;
color:white;
font-size: 18px;
width: 200px;
float: left;
margin: 0 20px;
}
.button{
display: none;
background-color: #ffffff;
color: #000;
}
.bttn{
width: 100%;
background-color: #4caf50;
margin: auto;
color:#FFFFFF;
padding: 10px 0px 10px 0px;
text-align: center;
border-radius: 5px 5px 5px 5px;
text-align: center;
}
.btn{
width: 100%;
background:none;
border:2px solid #4caf50;
color:white;
padding: 5px;
font-size: 18px;
cursor: pointer;
margin: 12px 0;
}
.btn:hover{
background-color: #4caf50;
}
u:hover{
color:blue;
}
</style>
</head>
<body>
<div class="login-box">
<form action="<?php echo base_url(). 'index.php/welcome/forgetpw'; ?>" method="post">
<h2>RESET PASSWORD</h2>
<?= $this->session->flashdata('info'); ?>
<div class="textbox" >
<i class="fa fa-user" aria-hidden="true"></i>
<input type="text" placeholder = "E-mail" name="email" value="" required>
</div>
<div class="textbox">
<i class="fa fa-lock" aria-hidden="true"></i>
<input type="password" placeholder = "new password" id ="pw1"name="pw1" value="" required>
</div>
<div>
<input type="checkbox" onclick="myFunction()"> show password
</div>
<div class="textbox">
<i class="fa fa-lock" aria-hidden="true"></i>
<input type="password" placeholder = "confirm password" id ="pw2"name="pw2" value="" required>
</div>
<input type="checkbox" onclick="myFunction1()"> show password
<div><br>
<input class ="bttn" type="submit" value="Reset"><a href="<?php echo base_url().'index.php/welcome/doctorpage'; ?>"></a></div><br>
<a href="<?php echo base_url(); ?>index.php/welcome/loginMenu" style="color: white"><button type="button" class="bttn btn-primary" data-toggle="modal">Cancel</button><u></u></a>
</form>
</div>
</body>
<script>
function myFunction() {
var x = document.getElementById("pw1");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function myFunction1() {
var y = document.getElementById("pw2");
if (y.type === "password") {
y.type = "text";
} else {
y.type = "password";
}
}
</script>
</html>