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

📄 order_one.jsp

📁 模仿当当网基于struts+hierbernate与mysql的商务网站。
💻 JSP
字号:
<%@page contentType="text/html;charset=utf-8"%><%@include file="../common/taglib.jsp"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">	<head>		<title>生成订单- 当当网</title>		<link href="${pageContext.request.contextPath}/css/login.css"			rel="stylesheet" type="text/css" />		<link href="${pageContext.request.contextPath}/css/page_bottom.css"			rel="stylesheet" type="text/css" />		<script type="text/javascript"			src="${pageContext.request.contextPath }/js/common.js"></script>		<script type="text/javascript">			function Address(receiveName,fullAddress,postalCode,mobile,phone,beDefault){					 this.receiveName = receiveName ;					 this.fullAddress = fullAddress ;					 this.postalCode = postalCode ;					 this.mobile = mobile ;					 this.phone = phone ;					 this.beDefault = beDefault ;			}			addresses = new Array() ;			function change(){				value = document.getElementById('addresses').value ;				address = addresses[value] ;				document.getElementById('addressName').value = address.receiveName ;				document.getElementById('fullAddress').value = address.fullAddress ;				document.getElementById('postCode').value = address.postalCode ;				document.getElementById('mobileNo').value = address.mobile ;				document.getElementById('phoneNo').value = address.phone ;						}		</script>	</head>	<body onload="change();">		<%@include file="../common/head1.jsp"%>		<div class="login_step">			生成订单步骤:			<span class="red_bold">1.填写送货地址></span>2.选择送货方式 > 3.确认订单信息 > 4.生成订单		</div>		<br />		<div class="fill_message">			<form method="post" action="orderOne.do" id="ctl00">				<a href="showAddressForm.do">编辑送货地址</a>&nbsp;|&nbsp;选择送货地址&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				<select id="addresses" name="receiveId" class="text_input"					onchange="change();">					<c:forEach items="${address}" var="reciveAddress">						<script>						addresses["${reciveAddress.id}"] = new Address("${reciveAddress.receiveName}","${reciveAddress.fullAddress}","${reciveAddress.postalCode}","${reciveAddress.mobile}","${reciveAddress.phone}","${reciveAddress.beDefault}") ;					</script>						<c:choose>							<c:when test="${reciveAddress.beDefault}">								<option value="${reciveAddress.id}" selected="selected">									${reciveAddress.receiveName}								</option>							</c:when>							<c:otherwise>								<option value="${reciveAddress.id}">									${reciveAddress.receiveName}								</option>							</c:otherwise>						</c:choose>					</c:forEach>				</select>				<br />				<br />				<table class="tab_login">					<tr>						<td valign="top" class="w1">							收货人地址:						</td>						<td>							<input type="text" name="receiveName" id="addressName"								class="text_input" />						</td>					</tr>					<tr>						<td valign="top" class="w1">							详细送货地址:						</td>						<td>							<input type="text" name="fullAddress" id="fullAddress"								class="text_input"/>						</td>					</tr>					<tr>						<td valign="top" class="w1">							收货人邮政编码:						</td>						<td>							<input type="text" name="postalCode" id="postCode"								class="text_input" maxlength="6"/>						</td>					</tr>					<tr>						<td valign="top" class="w1">							收货人手机号:						</td>						<td>							<input type="text" name="mobile" id="mobileNo" class="text_input" maxlength="11"/>						</td>					</tr>					<tr>						<td valign="top" class="w1">							收货人电话号:						</td>						<td>							<input type="text" name="phone" id="phoneNo" class="text_input" />						</td>					</tr>				</table>				<div class="login_in">					<input type="submit" id="btnClientRegister" class="button_1"						value="下一步" />				</div>			</form>		</div>		<%@include file="../common/foot1.jsp"%>	</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -