日期:2014-05-16 浏览次数:20608 次
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>创建管理员账户</title>
<style type="text/css">
body {
background-image: url(jsp/img/topbg2.jpg);
}
a {
font-size: 12pt;
text-decoration: none
}
</style>
<script src="../js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../js/jquery.validate-1.3.2.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function() {
$("#signupForm").validate({
rules : {
name : "required",
password : {
required : true,
minlength : 5
},
confirm_password : {
required : true,
minlength : 5,
equalTo : "#password"
}
},
messages : {
name : "请输入姓名",
password : {
required : "请输入密码",
minlength : jQuery.format("密码不能小于{0}个字符")
},
confirm_password : {
required : "请输入确认密码",
minlength : "确认密码不能小于5个字符",
equalTo : "两次输入密码不一致不一致"
}
}
});
});
</script>
</head>
<body>
<center>
<s:form action="createadmin" theme="simple" id="signupForm">
<table>
<tr>
<td><s:text name="用户名" />
</td>
<td><s:textfield name="name" id="name" />
</td>
</tr>
<tr>
<td><s:text name="密码" />
</td>
<td><s:textfield name="newpwd1" id="password"/>
</td>
</tr>
<tr>
<td><s:text name="确认密码" />
</td>
<td><s:textfield name="newpwd2" id="confirm_password"/>
</td>
</tr>
<tr>
<td> </td>
<td><s:submit value="提交" /> <s:reset value="重置" /></td>
</tr>
</table>
</s:form>
</center>
</html>