?? user.jsp.svn-base
字號:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>128kc</title>
<%@ include file="meta.jsp" %>
<script type="text/javascript" src="<c:url value="/dwr/interface/MemberManager.js"/>"></script>
<script type="text/javascript" src="<c:url value="/dwr/engine.js"/>"></script>
<script type="text/javascript" src="<c:url value="/dwr/util.js"/>"></script>
<script type="text/javascript">
var msgs = document.getElementsByName("msg");
function getElement(name) {
var result = null;
var objs = document.getElementsByName(name);
if (objs) {
var o = objs[0];
result = o;
}
return result;
}
function checkForm(){
var passObj = getElement("password");
var rePassObj = getElement("repassword");
var nameObj = getElement("name");
var addressObj = getElement("address");
var telObj = getElement("tel");
var handsetObj = getElement("handset");
var birthdayObj = getElement("birthday");
var emailObj = getElement("email");
var idcardObj = getElement("idcard");
if(passObj.value!="" || rePassObj.value!=""){
if(rePassObj.value==""){
msgs[2].innerHTML="新密碼或確認新密碼不能為空!";
rePassObj.focus();
return false;
}else{
if(passObj.value!=rePassObj.value){
msgs[1].innerHTML="新密碼和確認新密碼不一致!";
msgs[2].innerHTML="";
passObj.focus();
return false;
}
msgs[1].innerHTML="";
msgs[2].innerHTML="";
}}
if(nameObj.value==""){
msgs[3].innerHTML="真實姓名不能為空!";
nameObj.focus();
return false;
}else{
msgs[3].innerHTML="";
}
if(addressObj.value==""){
msgs[8].innerHTML="送餐地址不能為空!";
addressObj.focus();
return false;
}else{
msgs[8].innerHTML="";
}
if(telObj.value==""){
msgs[10].innerHTML="電話號不能為空!";
telObj.focus();
return false;
}else{
msgs[10].innerHTML="";
}
if(handsetObj.value==""){
msgs[11].innerHTML="手機號不能為空!";
handsetObj.focus();
return false;
}else{
msgs[11].innerHTML="";
}
if(emailObj.value!=""){
//驗證email的合法性
}
if(idcardObj.value!=""){
//驗證身份證的合法性
}
if(birthdayObj.value!=""){
//驗證生日的合法性
}
return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script>home();</script>
<%@ include file="incSearchBar.jsp" %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="member" method="post" action="<c:url value="/user.jspx"/>" onsubmit="return checkForm();">
<tr>
<td align="center">
<table width="778" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><img src="images/reg_bar.gif" width="758"
height="157">
<table width="100%" border="0" height="10">
<tr>
<td></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/reg_info_bg.gif"><img
src="images/reg_info.gif" width="164" height="42"></td>
</tr>
</table>
<table width="100%" height="5" border="0">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#EEEEEE">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="24%" height="30" align="right" style="color:#FF6600;font-weight:bold;">會員名:</td>
<td width="76%">
<table width="100%" border="0">
<tr>
<td width="19%">${member.username}</td>
<td width="10%"></td>
<td width="71%"> <span style="color:#FF0000"
id="msg"> </span></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">新密碼:</td>
<td>
<table width="100%" border="0">
<tr>
<td width="19%"><input name="password" type="password"
size="15" class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'" value=""></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">確認新密碼:</td>
<td>
<table width="100%" border="0">
<tr>
<td width="19%"><input name="repassword" type="password"
size="15" class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'" value=""></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/reg_info_bg.gif"><img
src="images/reg_info_2.gif" width="164" height="42"></td>
</tr>
</table>
<table width="100%" height="5" border="0">
<tr>
<td></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#EEEEEE">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="24%" height="30" align="right" style="color:#FF6600;font-weight:bold;">真實姓名:</td>
<td width="76%" height="30">
<table width="100%" border="0">
<spring:bind path="member.name">
<tr>
<td width="19%"><input name="name" type="text" size="15"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">性 別:</td>
<td height="30">
<table width="100%" border="0">
<tr>
<td width="19%"><input type="radio" name="sex" value="男"
<c:if test="${member.sex=='男'}">checked</c:if>>男 <input
type="radio" name="sex" value="女"
<c:if test="${member.sex=='女'}">checked</c:if>>女</td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">生 日:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.birthday">
<tr>
<td width="19%"><input name="birthday" type="text"
size="15" class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'" readonly="true"
value="<c:out value="${status.value}"/>"><a
href="javascript:void(0)"
onclick="if(self.gfPop)gfPop.fPopCalendar(birthday);return false;"
HIDEFOCUS><img name="popcal" align="absmiddle"
src="<c:url value="/calendar/calbtn.gif"/>" width="34"
height="22" border="0" alt=""></a></td>
<td width="73%" align="left">可能會有特別的禮物送給您! <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">身份證號:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.idcard">
<tr>
<td width="19%"><input name="idcard" type="text" size="18"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">所在單位:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.company">
<tr>
<td width="19%"><input name="company" type="text" size="50"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">送餐地址:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.address">
<tr>
<td width="19%"><input name="address" type="text" size="50"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%" align="left">請填寫詳細地址! <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">E-mail地址:</td>
<td>
<table width="100%" border="0">
<spring:bind path="member.email">
<tr>
<td width="19%"><input name="email" type="text" size="15"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%" align="left">方便我們聯系您! <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">電 話:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.tel">
<tr>
<td width="19%"><input name="tel" type="text" size="15"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right" style="color:#FF6600;font-weight:bold;">手 機:</td>
<td height="30">
<table width="100%" border="0">
<spring:bind path="member.handset">
<tr>
<td width="19%"><input name="handset" type="text" size="15"
class="inputText"
onfocus="this.className='inputText_focus'"
onBlur="this.className='inputText'"
value="<c:out value="${status.value}"/>"></td>
<td width="73%"> <span style="color:#FF0000"
id="msg"> </span></td>
<td width="8%"> </td>
</tr>
</spring:bind>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="24%" height="30" align="center"> </td>
<td width="76%" align="left"><input type="image"
src="images/reg_bt.gif" width="44" height="20"
onmouseover="this.src='images/reg_bt_over.gif'"
onmouseout="this.src='images/reg_bt.gif'" class="image_button"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<c:url value="/calendar/ipopeng.htm"/>" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"></iframe>
<%@ include file="incCopyright.jsp" %>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
增大字號
Ctrl + =
減小字號
Ctrl + -