-
Notifications
You must be signed in to change notification settings - Fork 0
/
password.html
executable file
·95 lines (82 loc) · 3.13 KB
/
password.html
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
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title>Lintel</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<script src="bootstrap/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<style>
mybtn {
width: 70px;
}
.container-main {
margin-left:0;
margin-right:0;
margin-top : 0;
width:100%;
height:100%;
padding : 0;
background-color: #b3b3b3;
}
</style>
<script type="text/javascript">
function reset_fun() {
document.getElementById('pass').style.visibility = 'hidden';
document.getElementById("myForm").reset();
}
function clearconfirm() {
document.getElementById("cnewpassword").value = "";
document.getElementById('pass').style.visibility = 'hidden';
}
function validatepass() {
var nPass = document.getElementById("newpassword").value;
var cPass = document.getElementById("cnewpassword").value;
if ( nPass != cPass || nPass == "" ) {
document.getElementById('pass').style.visibility = 'visible';
event.preventDefault();
return false;
}
else {
return true;
}
}
</script>
<body>
<div class="well well-lg container-fluid container-main" >
<form id="myForm" method="post" action="updatepassword.php">
<div class="container-fluid">
<div class="row">
<div class="col-lg-2">UserName :</div>
<div class="col-lg-2"><input type="text" name="username" style="width:70%" required/></div>
<div class="col-lg-*"></div>
</div>
<br>
<div class="row">
<div class="col-lg-2">Password :</div>
<div class="col-lg-2"><input type="password" name="password" style="width:70%" required /></div>
<div class="col-lg-*"></div>
</div>
<br><div class="row">
<div class="col-lg-2">New Password :</div>
<div class="col-lg-2"><input type="password" id="newpassword" name="newpassword" style="width:70%" onchange="clearconfirm()" required/></div>
<div class="col-lg-2">Confirm New Password :</div>
<div class="col-lg-2"><input type="password" id= "cnewpassword" name="cnewpassword" style="width:70%" onchange="validatepass()" required/>  <lable id="pass"><span style="color:red">pasword not matching/empty</span></lable></div>
<div class="col-lg-*"></div>
</div>
<br>
<div class="row">
<div class="col-lg-9"></div>
<div class="col-lg-3"><button type="submit" id="mysubmit" class="btn btn-success mybtn" onclick="validatepass()" >Update</button> <input type="reset" class="btn btn-failure mybtn" onclick="reset_fun();"/></div>
</div>
</div>
</form>
</div>
<script type="text/javascript">
document.getElementById("pass").style.visibility = "hidden";
</script>
</body>
</html>