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

📄 trade_info.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/jrun-tag.tld" prefix="jrun"%>
<jsp:include flush="true" page="header.jsp" />
<script type="text/javascript" src="include/javascript/viewthread.js"></script>
<script type="text/javascript">zoomstatus = parseInt(${settings.zoomstatus});</script>
<div id="nav">
	<a id="forumlist" href="${settings.indexname}" ${settings.forumjump==1&&settings.jsmenu_1>0?"class='dropmenu' onmouseover='showMenu(this.id)'":""}>${settings.bbname}</a> ${navigation} &raquo; ${trade.subject}
</div>

<div class="mainbox viewthread tradeinfo">
	<h1>${trade.subject}</h1>
	<div class="tradethumb">
	<c:choose>
		<c:when test="${attachmap[trade.pid]!=null}">
			<a href="###"><img src="${attachmap[trade.pid]}" onclick="zoom(this, '${attachmap[trade.pid]}')" onload="thumbImg(this)" width="${settings.tradeimagewidth}" height="${settings.tradeimageheight}" alt="${trade.subject}" /></a>
		</c:when>
		<c:otherwise>
			<img src="${styles.IMGDIR}/trade_nophoto.gif" alt="${trade.subject}" />
		</c:otherwise>
	</c:choose>
	</div>
	<div class="tradeattribute" style="width: 30%">
		<dl>
		<c:if test="${trade.costprice>0.0}"><dt>原价:</dt><dd><del>${trade.costprice} 元</del></dd></c:if>
		<dt>现价:</dt>
		<dd><strong>${trade.price}</strong>&nbsp;元</dd>
		<dt>运费:</dt>
		<dd>
			<c:if test="${trade.transport==1}">卖家承担运费</c:if>
			<c:if test="${trade.transport==2 || trade.transport==4}">
				<c:if test="${trade.transport==4}">买家收到货物后直接支付给物流公司</c:if>
				<c:choose>
					<c:when test="${trade.ordinaryfee>0 || trade.expressfee>0 || trade.emsfee>0}">
						<c:if test="${trade.ordinaryfee>0}">平邮${trade.ordinaryfee}元</c:if>
						<c:if test="${trade.expressfee>0}">快递${trade.expressfee}元</c:if>
						<c:if test="${trade.emsfee>0}">EMS${trade.emsfee}元</c:if>
					</c:when>
					<c:when test="${trade.transport==2}">
						无运费
					</c:when>
				</c:choose>
			</c:if>
			<c:if test="${trade.transport==3}">虚拟物品或无需邮递</c:if>
		</dd>
		<c:if test="${!empty trade.locus}"><dt>地点:</dt><dd>${trade.locus}</dd></c:if>
		</dl>
		<c:if test="${post.authorid!=jsprun_uid && thread.closed==0 && trade.closed==0}">
			<c:if test="${trade.amount>0}"><a href="###" onclick="window.open('trade.jsp?tid=${post.tid}&pid=${post.pid}','','')"><img src="${styles.IMGDIR}/trade_buy.gif" border="0" /></a> &nbsp;
				<a href="###" onclick="window.open('pm.jsp?action=send&uid=${trade.sellerid}&tradepid=${post.pid}','','')"><img src="${styles.IMGDIR}/trade_pm.gif" border="0" /></a><br /><br />
			</c:if>
		</c:if>
		<c:if test="${trade.account>0}">此商品支持财付通,您可以先验货后付款<br /><br /></c:if>
		<dl>
			<dt>商品类型:</dt>
			<dd>
				<c:if test="${trade.quality==1}">全新</c:if>
				<c:if test="${trade.quality==2}">二手</c:if>
				<c:if test="${trade.itemtype==1}">商品</c:if>
				<c:if test="${trade.itemtype==2}">服务</c:if>
				<c:if test="${trade.itemtype==3}">拍卖</c:if>
				<c:if test="${trade.itemtype==4}">捐赠</c:if>
				<c:if test="${trade.itemtype==5}">邮费</c:if>
				<c:if test="${trade.itemtype==6}">奖金</c:if>
			</dd>
			<dt>剩余时间:</dt>
			<dd>
			<c:choose>
				<c:when test="${trade.closed==1}"><em>成交结束</em></c:when>
				<c:when test="${trade.expiration>0}">${trade.expiration}天${trade.expirationhour}小时</c:when>
				<c:when test="${trade.expiration==-1}"><em>成交结束</em></c:when>
				<c:otherwise>&nbsp;</c:otherwise>
			</c:choose>
			</dd>
			<dt>商品数量:</dt><dd>${trade.amount}</dd>
			<dt>累计售出:</dt><dd>${trade.totalitems}</dd>
		</dl>
	</div>
	<div class="box sellerinfo postauthor">
		<h4>卖家信息: <a href="space.jsp?uid=${post.uid}">${post.username}</a></h4>
		<dl>
			<dt>卖家信用</dt><dd>${shellcredit} <a href="eccredit.jsp?uid=${post.uid}" target="_blank"><img src="images/rank/seller/${shellcredit}.gif" border="0" class="absmiddle"></a></dd>
			<dt>买家信用</dt><dd>${buycredit} <a href="eccredit.jsp?uid=${post.uid}" target="_blank"><img src="images/rank/buyer/${buycredit}.gif" border="0" class="absmiddle"></a></dd>
			<c:if test="${spacedata.limitmytrades>0}">
				<dt><a href="space.jsp?action=mytrades&uid=${post.uid}" target="_blank">查看卖家店铺</a></dt><dd>&nbsp;</dd>
			</c:if>
			<dt><a href="viewthread.jsp?tid=${post.tid}">查看当前柜台</a></dt><dd>&nbsp;</dd>
		</dl>
			<c:if test="${post.qq!='' || post.icq!='' || post.msn!=''|| post.yahoo!='' || post.taobao!=''}">
				<p class="imicons">
					<c:if test="${post.msn!=''}">
						<a href="javascript:;" onclick="msnoperate('add', '${post.msn}')" title="添加 ${post.username} 为MSN好友"><img src="${styles.IMGDIR}/msnadd.gif" alt="添加 ${post.username} 为MSN好友" /> </a>
					</c:if>
					<c:if test="${post.msn!=''}">
						<a href="javascript:;" onclick="msnoperate('chat', '${post.msn}')" title="通过MSN和 ${post.username}交谈"><img src="${styles.IMGDIR}/msnchat.gif" alt="通过MSN和 ${post.username} 交谈" /> </a>
					</c:if>
					<c:if test="${post.qq!=''}">
						<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=${post.qq}&amp;Site=Jsprun~&amp;Menu=yes" target="_blank"><img src="${styles.IMGDIR}/qq.gif" alt="QQ" /> </a>
					</c:if>
					<c:if test="${post.icq!=''}">
						<a href="http://wwp.icq.com/scripts/search.dll?to=${post.icq}" target="_blank"><img src="${styles.IMGDIR}/icq.gif" alt="ICQ" /> </a>
					</c:if>
					<c:if test="${post.yahoo!=''}">
						<a href="http://edit.yahoo.com/config/send_webmesg?.target=${post.yahoo}&amp;.src=pg" target="_blank"><img src="${styles.IMGDIR}/yahoo.gif" alt="Yahoo!" /> </a>
					</c:if>
					<c:if test="${post.taobao!=''}">
						<script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&amp;uid='+encodeURIComponent('${post.taobao}')+'&amp;s=2"><img src="${styles.IMGDIR}/taobao.gif" alt="阿里旺旺" /></a>');</script>
					</c:if>
				</p>
			</c:if>
			<dl class="profile"><c:forEach items="${custominfo.special}" var="cus">${cus}</c:forEach></dl>
	</div>
	<p class="postinfo">商品详情</p>
	<div class="postmessage">
		<%--<c:choose>
			<c:when test="${typetemplate!=null}">
				${typetemplate}
			</c:when>
			<c:when test="${optionlist!=null}">
				
			</c:when>
		</c:choose>
		<c:when test="${typetemplate!=null}">
			<div class="box typeoption">
				<h4>${tradetypes[trade.typeid]}</h4>
				<table summary="分类信息" cellpadding="0" cellspacing="0">
				<c:forEach items="${optionlist.value}" var="option">
					<tr>
						<th>${option.title}</th>
						<td><c:if test="${option.value!=null}">${option.value}</c:if></td>
					</tr>
				</c:forEach>
				</table>
			</div>
		</c:when>
		--%>
		${post.message}
		<c:if test="${!empty attaurl && post.attachment>0}">
			<c:choose>
				<c:when test="${!allowgetattach}">
					<div class="notice" style="width: 500px">
						附件:
						<em>您所在的用户组无法下载或查看附件</em>
					</div>
				</c:when>
				<c:otherwise>
					<div class="box postattachlist">
						<h4>
							附件
						</h4>
						<c:forEach items="${attaurl}" var="atta">
							<dl class="t_attachlist">
								<dt>
									<img src="images/attachicons/${attatype[atta.filetype]}" border="0" class="absmiddle" alt="" />
									<a href="attachment.jsp?aid=${atta.aid}">${atta.filename}</a>
									<em>(<jrun:showFileSize size="${atta.filesize}"/>)</em>
								</dt>
								<dd>
									<p> <jrun:showTime timeInt="${atta.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>
										<c:if test="${settings.attachrefcheck==0 && atta.isimage<1}">,下载次数: ${atta.downloads}</c:if><c:if test="${atta.readperm>0}">,阅读权限:${atta.readperm}</c:if><c:if test="${atta.price>0}">,售价:${atta.price}&nbsp;[<a href="misc.jsp?action=viewattachpayments&amp;aid=${atta.aid}" target="_blank">记录</a>]&nbsp;<c:if test="${atta.isprice==5}">[<a href="misc.jsp?action=attachpay&amp;aid=${atta.aid}" target="_blank">购买</a>]</c:if></c:if><c:if test="${atta.description!=''}"><br>${atta.description}</c:if>
									</p>
									<c:if test="${showimag && settings.attachimgpost==1 && showatta!='false'}">
									<c:if test="${atta.isimage>0 && (readaccess >= atta.readperm || atta.authorid==jsprun_uid)}">
									<c:choose>
									<c:when test="${settings.attachrefcheck==0}"><p><a href="#zoom"><img onclick="zoom(this, '${atta.attachment}')" src="${atta.attachmentthumb}" alt="${atta.filename}" /></a>
									</p></c:when>
									<c:otherwise>
										<c:choose>
										<c:when test="${atta.thumb==1}">
										<p><a href="#zoom"><img onclick="zoom(this, 'attachment.jsp?aid=${atta.aid}')" src="attachment.jsp?aid=${atta.aid}&amp;noupdate=yes" alt="${atta.filename}" /></a></p>
										</c:when>
										<c:otherwise>
											<p> <img src="attachment.jsp?aid=${atta.aid}&amp;noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.jsp?aid=${atta.aid}')" alt="01.gif" /> </p>
										</c:otherwise>
										</c:choose>
									</c:otherwise>
									</c:choose>
									</c:if>
								</c:if>
								</dd>
							</dl>
						</c:forEach>
					</div>
				</c:otherwise>
			</c:choose>
			</c:if>
	</div>
	<div class="postactions">
		<strong onclick="scroll(0,0)">TOP</strong>&nbsp;
		<c:if test="${post.authorid==jsprun_uid}"><a href="my.jsp?item=selltrades&tid=${post.tid}&pid=${post.pid}" target="_blank">商品交易单</a>&nbsp;</c:if>
		<c:if test="${(usergroups.alloweditpost>0 && modertar&&(post.adminid<=0 ||jsprun_adminid<=post.adminid)) || (thread.alloweditpost>0 && thread.authorid==jsprun_uid)}">
			<a href="post.jsp?action=edit&amp;fid=${post.fid}&amp;tid=${post.tid}&amp;pid=${post.pid}&amp;page=1&amp;extra=page%3D1">编辑</a>&nbsp;
		</c:if>
		<c:if test="${allowpostreply}"><a href="post.jsp?action=reply&amp;fid=${post.fid}&amp;tid=${post.tid}&amp;repquote=${post.pid}&amp;extra=${extra}&amp;page=${page}">引用</a></c:if>
	</div>
</td></tr>
</td></tr></table></div>
<c:if test="${settings.forumjump==1&&settings.jsmenu_1>0}">
	<div class="popupmenu_popup" id="forumlist_menu" style="display: none">
	${forummenu}
	</div>
</c:if>
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

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