⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.jsp.svn-base

📁 spring+hibernate做的网上订餐系统
💻 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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
												<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
												<td width="8%">&nbsp;</td>
											</tr>
										</table>
										</td>
									</tr>
								</table>
								</td>
							</tr>
						</table>
						<table width="100%" border="0">
							<tr>
								<td>&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
												<td width="8%">&nbsp;</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">可能会有特别的礼物送给您!&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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">请填写详细地址!&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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">方便我们联系您!&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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%">&nbsp;<span style="color:#FF0000"
														id="msg">&nbsp;</span></td>
													<td width="8%">&nbsp;</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">&nbsp;</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>&nbsp;</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 + -