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

📄 trade.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="header.jsp" />
<div id="nav"><a href="${settings.indexname}">${settings.bbname}</a> &raquo; 确认购买信息</div>
<script src="include/javascript/viewthread.js" type="text/javascript"></script>
<script type="text/javascript">
zoomstatus = parseInt(${settings.zoomstatus});
var feevalue = 0;
var price = ${trade.price};
</script>

<form method="post" id="tradepost" name="tradepost" action="trade.jsp?action=trade&tid=${trade.tid}&pid=${trade.pid}">
	<div class="mainbox viewthread tradeinfo">
		<h1>${trade.subject}</h1>
		<div class="tradethumb"><a href="viewthread.jsp?do=tradeinfo&tid=${trade.tid}&pid=${trade.pid}">
			<c:choose>
				<c:when test="${trade.aid>0}"><img src="attachment.jsp?aid=${trade.aid}" onload="thumbImg(this)" width="80" height="80" alt="${trade.subject}" /></c:when>
				<c:otherwise><img src="${styles.IMGDIR}/trade_nophotosmall.gif" alt="${trade.subject}" /></c:otherwise>
			</c:choose>
			</a>
		</div>
		<div class="tradeattribute">
			<dl>
				<dt>现价:</dt>
				<dd><strong>${trade.price}</strong>&nbsp;元</dd>
				<c:if test="${!empty trade.locus}"><dt>所在地点:</dt><dd>${trade.locus}</dd></c:if>
				<dt>卖家:</dt>
				<dd><a href="space.jsp?action=viewpro&uid=${trade.sellerid}" target="_blank">${trade.seller}</a> <c:if test="${!empty trade.account}"><a href="http://shop1.paipai.com/cgi-bin/credit_info?uin=${trade.account}" target="_blank"><img src="${styles.IMGDIR}/tenpaysmall.gif" border="0" />财付通账户信用信息</a></c:if></dd>
			</dl>
		</div>
	</div>
<div class="mainbox formbox">
		<h3>确认购买信息</h3>
		<table summary="确认购买信息" cellspacing="0" cellpadding="0">
			<tr>
				<th>支付总额</th>
				<td><strong id="caculate"></strong>&nbsp;元</td>
			</tr>
			<tr>
				<th><label for="number">购买数量</label></th>
				<td><input type="text" id="number" name="number" onkeyup="calcsum()" value="1" /></td>
			</tr>
			<tr>
				<th>物流方式</th>
				<td>
					<p>
					<c:choose>
						<c:when test="${trade.transport == 1}"><input type="hidden" name="transport" value="1">卖家承担运费</c:when>
						<c:when test="${trade.transport == 2}"><input type="hidden" name="transport" value="2">买家承担运费</c:when>
						<c:when test="${trade.transport == 3}"><input type="hidden" name="transport" value="3">虚拟物品或无需邮递</c:when>
						<c:when test="${trade.transport == 4}"><input type="hidden" name="transport" value="4">买家收到货物后直接支付给物流公司</c:when>
					</c:choose>
					</p>
					<c:if test="${trade.transport == 1||trade.transport == 2||trade.transport == 4}">
						<c:if test="${!empty trade.ordinaryfee}"> <label><input class="radio" type="radio" name="fee" value="1" checked="checked" <c:if test="${trade.transport == 2}">onclick="feevalue = ${trade.ordinaryfee};calcsum()"</c:if> /> 平邮 ${trade.ordinaryfee} 元</label><c:if test="${trade.transport == 2}"><script type="text/javascript">feevalue = ${trade.ordinaryfee}</script></c:if></c:if>
						<c:if test="${!empty trade.expressfee}"> <label><input class="radio" type="radio" name="fee" value="3" checked="checked" <c:if test="${trade.transport == 2}">onclick="feevalue = ${trade.expressfee};calcsum()"</c:if> /> 快递 ${trade.expressfee} 元</label><c:if test="${trade.transport == 2}"><script type="text/javascript">feevalue = ${trade.expressfee}</script></c:if></c:if>
						<c:if test="${!empty trade.emsfee}"> <label><input class="radio" type="radio" name="fee" value="2" checked="checked" <c:if test="${trade.transport == 2}">onclick="feevalue = ${trade.emsfee};calcsum()"</c:if> /> EMS ${trade.emsfee} 元</label><c:if test="${trade.transport == 2}"><script type="text/javascript">feevalue = ${trade.emsfee}</script></c:if></c:if>
					</c:if>
				</td>
			</tr>
			<tr>
				<th>交易方式</th>
				<td>
					<c:choose>
						<c:when test="${jsprun_uid==0}"><label><input type="hidden" name="offline" value="0" checked="checked" /> 财付通在线交易</label></c:when>
						<c:when test="${empty trade.account}"><input type="hidden" name="offline" value="1" checked="checked" /> 线下交易</c:when>
						<c:otherwise><label><input type="radio" class="radio" name="offline" value="0" checked="checked" /> 财付通在线交易</label> <label><input type="radio" class="radio" name="offline" value="1" /> 线下交易</label></c:otherwise>
					</c:choose>
				</td>
			</tr>
			<tr>
				<th><label for="buyername">收货人姓名</label></th>
				<td><input type="text" id="buyername" name="buyername" maxlength="50" value="${lastbuyerinfo.buyername}" /></td>
			</tr>
			<tr>
				<th><label for="buyercontact">收货地址</label></th>
				<td><input type="text" id="buyercontact" name="buyercontact" maxlength="100" size="80" value="${lastbuyerinfo.buyercontact}" /></td>
			</tr>
			<tr>
				<th><label for="buyerzip">收货人邮编</label></th>
				<td><input type="text" id="buyerzip" name="buyerzip" maxlength="10" value="${lastbuyerinfo.buyerzip}" /></td>
			</tr>
			<tr>
				<th><label for="buyerphone">收货人电话</label></th>
				<td><input type="text" id="buyerphone" name="buyerphone" maxlength="20" value="${lastbuyerinfo.buyerphone}" /></td>
			</tr>
			<tr>
				<th><label for="buyermobile">收货人手机</label></th>
				<td><input type="text" id="buyermobile" name="buyermobile" maxlength="20" value="${lastbuyerinfo.buyermobile}" /></td>
			</tr>
			<tr>
				<th valign="top"><label for="buyermsg">备注信息</label><div class="tips">200 字以内</div></th>
				<td><textarea id="buyermsg" name="buyermsg" style="width: 95%" rows="3">${lastbuyerinfo.buyermsg}</textarea></td>
			</tr>
			<tr>
				<th>&nbsp;</th>
				<td>
					<button class="submit" type="submit" name="tradesubmit" value="true">确认购买</button>
					<c:if test="${jsprun_uid==0}"><em class="tips">您目前为游客,购买后您无法在本版块查看交易状态,请到支付网站查询。</em></c:if>
				</td>
			</tr>
		</table>
	</div>
</form>

<script type="text/javascript">
function calcsum() {
	$('caculate').innerHTML = (price * $('tradepost').number.value + feevalue);
}
calcsum();
</script>
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

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