|
@@ -2,7 +2,7 @@
|
|
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
|
|
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
|
|
<html>
|
|
<html>
|
|
<head>
|
|
<head>
|
|
- <title>评卷员设置</title>
|
|
|
|
|
|
+ <title><spring:message code="user.reset.title"/></title>
|
|
<meta name="decorator" content="default"/>
|
|
<meta name="decorator" content="default"/>
|
|
<%@include file="/WEB-INF/views/include/head.jsp" %>
|
|
<%@include file="/WEB-INF/views/include/head.jsp" %>
|
|
<link rel="stylesheet" href="${ctxStatic}/common/login.css">
|
|
<link rel="stylesheet" href="${ctxStatic}/common/login.css">
|
|
@@ -17,26 +17,26 @@
|
|
$('#submit-button').click(function(){
|
|
$('#submit-button').click(function(){
|
|
var name = $('#loginName').val();
|
|
var name = $('#loginName').val();
|
|
if(name==''){
|
|
if(name==''){
|
|
- showError('请输入姓名');
|
|
|
|
|
|
+ showError($.i18n.prop("user.reset.name"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
if(name.length>10){
|
|
if(name.length>10){
|
|
- showError('姓名长度不应超过10个字');
|
|
|
|
|
|
+ showError($.i18n.prop("user.reset.name.length"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
var password = $('#password').val();
|
|
var password = $('#password').val();
|
|
var password2 = $('#password2').val();
|
|
var password2 = $('#password2').val();
|
|
if(password==''){
|
|
if(password==''){
|
|
- showError('请输入密码');
|
|
|
|
|
|
+ showError($.i18n.prop("user.reset.password"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if(password.length>8){
|
|
|
|
- showError('密码长度不应超过8个字符');
|
|
|
|
|
|
+ if(password.length>8 || password.length<4){
|
|
|
|
+ showError($.i18n.prop("user.reset.password.length"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
if(password!=password2){
|
|
if(password!=password2){
|
|
- showError('两次密码输入内容不一致');
|
|
|
|
|
|
+ showError($.i18n.prop("user.reset.password.same"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
@@ -52,6 +52,7 @@
|
|
if(self.frameElement && self.frameElement.tagName=="IFRAME"){
|
|
if(self.frameElement && self.frameElement.tagName=="IFRAME"){
|
|
parent.location.reload();
|
|
parent.location.reload();
|
|
}
|
|
}
|
|
|
|
+ load();
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -63,26 +64,26 @@
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<div class="right">
|
|
<div class="title">
|
|
<div class="title">
|
|
- <h1>首次登陆,请完善资料</h1>
|
|
|
|
|
|
+ <h1 data-i18n-text="user.reset.title">首次登陆,请完善资料</h1>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="loginbox">
|
|
<div class="loginbox">
|
|
<form action="${ctx}/mark/reset" method="post" role="form" id="loginForm">
|
|
<form action="${ctx}/mark/reset" method="post" role="form" id="loginForm">
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
- <input type="text" class="form-control required" id="loginName" name="name" placeholder="请输入姓名" autocomplete="off" value="${loginName }"/>
|
|
|
|
|
|
+ <input type="text" class="form-control required" id="loginName" name="name" placeholder="请输入姓名" autocomplete="off" value="${loginName }" data-i18n-placeholder="user.reset.name"/>
|
|
</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
- <input type="password" class="form-control required" id="password" name="password" placeholder="请输入密码" autocomplete="off"/>
|
|
|
|
|
|
+ <input type="password" class="form-control required" id="password" name="password" placeholder="请输入密码" autocomplete="off" data-i18n-placeholder="user.reset.password"/>
|
|
</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
- <input type="password" class="form-control required" id=password2 name="password2" placeholder="再次输入密码" autocomplete="off"/>
|
|
|
|
|
|
+ <input type="password" class="form-control required" id=password2 name="password2" placeholder="再次输入密码" autocomplete="off" data-i18n-placeholder="user.reset.password.again"/>
|
|
</div>
|
|
</div>
|
|
<div class="point hide">
|
|
<div class="point hide">
|
|
<em class="error"></em>
|
|
<em class="error"></em>
|
|
</div>
|
|
</div>
|
|
<div class="login-btn">
|
|
<div class="login-btn">
|
|
- <input class="opacity" type="submit" id="submit-button" value="确 定"/>
|
|
|
|
- <a href="${ctx}/logout" class="opacity">退 出</a>
|
|
|
|
|
|
+ <input class="opacity" type="submit" id="submit-button" value="确 定" data-i18n-value="user.reset.subimt"/>
|
|
|
|
+ <a href="${ctx}/logout" class="opacity" data-i18n-text="user.reset.logou">退 出</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|