forked from mikemelon/java-exam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserChangePassword.jsp
More file actions
134 lines (119 loc) · 4.77 KB
/
Copy pathuserChangePassword.jsp
File metadata and controls
134 lines (119 loc) · 4.77 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
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Java考试系统--用户更改密码</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css">
<link type="text/css" rel="stylesheet" href="css/material_icons.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
font-family: Roboto, "Microsoft YaHei";
}
.mytable {
border-collapse: collapse;
border-bottom: 2px solid #ddd;
}
.mytable td {
padding: 5px 10px;
}
.namelink a {
text-decoration: none;
}
.namelink a:LINK {
color: #12f;
}
.namelink a:VISITED {
color: #a2e;
}
.namelink a:HOVER {
color: #17f;
}
</style>
<s:head/>
</head>
<body>
<%@ include file="include/header.jsp" %>
<div id="main">
<div class="container" style="height: 350px;">
<div class="divider" style="height:40px;background:#fff"></div>
<form name="form1" method="post" action="changepassword">
<div class="row">
<div class="input-field col s12" style="margin: 0 auto;">
<i class="material-icons prefix">vpn_key</i>
<input type="text" placeholder="输入当前用户的旧密码" id="oldPassword" name="oldPassword"
class="validate" style="font-size:large" value="<s:property value="oldPassword"/>" >
<label for="oldPassword">旧密码</label>
<s:fielderror fieldName="oldPassword"></s:fielderror>
</div>
<div class="input-field col s12" style="margin: 0 auto;">
<i class="material-icons prefix">vpn_key</i>
<input type="text" placeholder="请输入新密码" id="newPassword" name="newPassword"
class="validate" style="font-size:large" value="<s:property value="newPassword"/>" >
<label for="newPassword">新密码</label>
<s:fielderror fieldName="newPassword"></s:fielderror>
</div>
<div class="input-field col s12" style="margin: 0 auto;">
<i class="material-icons prefix">vpn_key</i>
<input type="text" placeholder="请再输入一遍新密码,必须与上次相同" id="newPassword2"
name="newPassword2" class="validate" style="font-size:large" value="<s:property value="newPassword2"/>" >
<label for="newPassword2">再输入一遍新密码</label>
<s:fielderror fieldName="newPassword2"></s:fielderror>
</div>
<div class="divider" style="height: 10px; background-color: #fff;"></div>
<div class="col s12">
<button class="teal darken-4 waves-effect waves-teal btn-flat"
type="submit">
<span class="yellow-text text-lighten-1">确定 <i
class="material-icons right">send</i></span>
</button>
</div>
</div>
</form>
</div>
</div>
<%@ include file="include/footer.jsp" %>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script>
$(document).ready(function () {
$('.modal-trigger').leanModal({
dismissible: true, //是否点模态对话框外面就可以关闭
opacity: 0.6, //接近1,不透明
});//使用模态对话框,必须有这句
$(".button-collapse").sideNav({
menuWidth: 200, // Default is 240
edge: 'left', // Choose the horizontal origin
closeOnClick: true // Closes side-nav on <a> clicks, useful for Angular/Meteor
});
$(".collapsible").collapsible({
accordion: true
});
})
</script>
<s:if test="hasActionErrors()">
<script type="text/javascript">
toast1();
function toast1(){
var errorStr='<s:property value="actionErrors[0]"/>';
var $toastContent = $('<span class="red-text lighten-5"><h4>'+errorStr+'</h4></span>');
Materialize.toast($toastContent, 4000, 'rounded');
}
</script>
</s:if>
<s:if test="hasActionMessages()">
<script type="text/javascript">
toast2();
function toast2(){
var msgStr='<s:property value="actionMessages[0]"/>';
var $toastContent = $('<span class="teal-text lighten-5"><h4>'+msgStr+'</h4></span>');
Materialize.toast($toastContent, 4000, 'rounded');
}
</script>
</s:if>
</body>
</html>