📄 trade_view.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jrun-tag.tld" prefix="jrun"%>
<jsp:include flush="true" page="header.jsp" />
<div id="nav"><a href="${settings.indexname}">${settings.bbname}</a> » 交易单</div>
<form method="post" id="tradepost" name="tradepost" action="trade.jsp?orderid=${tradelog.orderid}">
<div class="mainbox formbox">
<table summary="交易单" cellspacing="0" cellpadding="0">
<thead><tr><td colspan="2">${tradelog.offline>0?"线下交易":"财付通在线交易"}</td></tr></thead>
<tr>
<th>状态</th>
<td>${tradelog.statusview} (<jrun:showTime timeInt="${tradelog.lastupdate}" isView="time" timeoffset="${timeoffset}" type="${dateformat} ${timeformat}" />)</td>
</tr>
<c:if test="${tradelog.offline>0&&!empty offlinenexts}">
<tr>
<th><label for="password">论坛登录密码</label></th>
<td><input id="password" name="password" type="password" /></td>
</tr>
<tr>
<th><label for="message">留言</label>
<div class="tips">${trade_message} 200 字以内</div>
</th>
<td>
<textarea id="buyermsg" id="message" name="message" style="width: 95%" rows="3"></textarea>
</td>
</tr>
<tr>
<th> </th>
<td>
<c:forEach items="${offlinenexts}" var="offlinenext"><button class="submit" type="button" onclick="$('tradepost').offlinestatus.value = '${offlinenext.key}';$('offlinesubmit').click();">${offlinenext.value}</button> </c:forEach>
<input type="hidden" name="offlinestatus" value="" />
<input type="submit" id="offlinesubmit" name="offlinesubmit" style="display: none" />
</td>
</tr>
</c:if>
<c:choose>
<c:when test="${isratestatus}">
<tr>
<c:choose>
<c:when test="${tradelog.ratestatus == 3}"><th>双方已评</th><td> </td></c:when>
<c:when test="${(tradelog.buyerid==jsprun_uid&&tradelog.ratestatus == 1)||(tradelog.sellerid==jsprun_uid&&tradelog.ratestatus == 2)}"><th>等待对方评价</th><td> </td></c:when>
<c:otherwise>
<th>${(tradelog.buyerid==jsprun_uid&&tradelog.ratestatus == 2)||(tradelog.sellerid==jsprun_uid&&tradelog.ratestatus == 1)?"对方已评":" "}</th>
<td>
<c:choose>
<c:when test="${tradelog.buyerid==jsprun_uid}"><button class="submit" type="button" onclick="window.open('eccredit.jsp?action=rate&orderid=${tradelog.orderid}&type=0', '', '')">评价</button></c:when>
<c:when test="${tradelog.sellerid==jsprun_uid}"><button class="submit" type="button" onclick="window.open('eccredit.jsp?action=rate&orderid=${tradelog.orderid}&type=1', '', '')">评价</button></c:when>
</c:choose>
</td>
</c:otherwise>
</c:choose>
</tr>
</c:when>
<c:when test="${tradelog.offline==0}">
<tr>
<th>财付通交易单</th>
<td>
<c:choose>
<c:when test="${tradelog.status == 0&&tradelog.buyerid==jsprun_uid}"><button class="submit" type="button" name="" onclick="window.open('trade.jsp?orderid=${tradelog.orderid}&pay=yes','','')">使用财付通在线支付</button></c:when>
<c:otherwise><button class="submit" type="button" onclick="window.open('${loginurl}', '', '')">查看并确认财付通交易单状态</button></c:otherwise>
</c:choose>
</td>
</tr>
</c:when>
</c:choose>
</table>
</div>
<div class="mainbox formbox">
<h1>交易单</h1>
<table summary="交易单" cellspacing="0" cellpadding="0">
<tr>
<th>交易金额</th>
<td><strong>${tradelog.price}</strong> 元 <c:if test="${tradelog.status == 0}"><em class="tips">(点击下方的“更新交易单”按钮重新计算交易金额)</em></c:if></td>
</tr>
<c:if test="${tradelog.tradeno>0}">
<tr>
<th>交易单号</th>
<td><a href="${loginurl}" target="_blank">${tradelog.tradeno}</a></td>
</tr>
</c:if>
<tr>
<th>买家</th>
<td>
<a href="space.jsp?action=viewpro&uid=${tradelog.buyerid}" target="_blank">${tradelog.buyer}</a>
<c:if test="${tradelog.buyerid!=jsprun_uid}"> <a href="pm.jsp?action=send&uid=${tradelog.buyerid}" target="_blank">[发短消息]</a></c:if>
</td>
</tr>
<tr>
<th>卖家</th>
<td>
<a href="space.jsp?action=viewpro&uid=${tradelog.sellerid}" target="_blank">${tradelog.seller}</a>
<c:if test="${!empty tradelog.selleraccount}"> <a href="http://shop1.paipai.com/cgi-bin/credit_info?uin=${tradelog.selleraccount}" style="vertical-align: middle;" target="_blank"><img src="${styles.IMGDIR}/tenpaysmall.gif" border="0" alt="财付通账户信用信息" /></a></c:if>
<c:if test="${tradelog.sellerid!=jsprun_uid}"> <a href="pm.jsp?action=send&uid=${tradelog.sellerid}" target="_blank">[发短消息]</a></c:if>
</td>
</tr>
<tr>
<th>商品名称</th>
<td><a href="viewthread.jsp?do=tradeinfo&tid=${tradelog.tid}&pid=${tradelog.pid}" target="_blank">${tradelog.subject}</a></td>
</tr>
<c:if test="${tradelog.status == 0&&tradelog.sellerid==jsprun_uid}">
<tr>
<th><label for="newprice">商品基价</label></th>
<td><input id="newprice" name="newprice" value="${tradelog.baseprice}"> 元</td>
</tr>
</c:if>
<tr>
<th><label for="newnumber">购买数量</label></th>
<td><c:choose><c:when test="${tradelog.status == 0&&tradelog.buyerid==jsprun_uid}"><input id="newnumber" name="newnumber" value="${tradelog.number}"></c:when><c:otherwise>${tradelog.number}</c:otherwise></c:choose></td>
</tr>
<tr>
<th>物流方式</th>
<td>
<c:choose>
<c:when test="${tradelog.transport == 1}">卖家承担运费</c:when>
<c:when test="${tradelog.transport == 2}">买家承担运费</c:when>
<c:when test="${tradelog.transport == 3}">虚拟物品或无需邮递</c:when>
<c:when test="${tradelog.transport == 4}">买家收到货物后直接支付给物流公司</c:when>
</c:choose>
运费 <c:choose><c:when test="${tradelog.status == 0&&tradelog.sellerid==jsprun_uid}"><input name="newfee" value="${tradelog.transportfee}"></c:when><c:otherwise>${tradelog.transportfee} </c:otherwise></c:choose> 元
</td>
</tr>
<c:choose>
<c:when test="${tradelog.status == 0&&tradelog.buyerid==jsprun_uid}">
<tr>
<th><label for="newbuyername">收货人姓名</label></th>
<td><input id="newbuyername" name="newbuyername" value="${tradelog.buyername}" maxlength="50"></td>
</tr>
<tr>
<th><label for="newbuyercontact">收货地址</label></th>
<td><input id="newbuyercontact" name="newbuyercontact" value="${tradelog.buyercontact}" maxlength="50"></td>
</tr>
<tr>
<th><label for="newbuyerzip">收货人邮编</label></th>
<td><input id="newbuyerzip" name="newbuyerzip" value="${tradelog.buyerzip}" maxlength="10"></td>
</tr>
<tr>
<th><label for="newbuyerphone">收货人电话</label></th>
<td><input id="newbuyerphone" name="newbuyerphone" value="${tradelog.buyerphone}" maxlength="20"></td>
</tr>
<tr>
<th><label for="newbuyermobile">收货人手机</label></th>
<td><input id="newbuyermobile" name="newbuyermobile" value="${tradelog.buyermobile}" maxlength="20"></td>
</tr>
<tr>
<th><label for="newbuyermsg">备注信息</label></th>
<td><textarea id="newbuyermsg" name="newbuyermsg" style="width: 95%" rows="3">${tradelog.buyermsg}</textarea></td>
</tr>
</c:when>
<c:otherwise>
<tr>
<th><label for="newbuyername">收货人姓名</label></th>
<td>${tradelog.buyername}</td>
</tr>
<tr>
<th><label for="newbuyercontact">收货地址</label></th>
<td>${tradelog.buyercontact}</td>
</tr>
<tr>
<th><label for="newbuyerzip">收货人邮编</label></th>
<td>${tradelog.buyerzip}</td>
</tr>
<tr>
<th><label for="newbuyerphone">收货人电话</label></th>
<td>${tradelog.buyerphone}</td>
</tr>
<tr>
<th><label for="newbuyermobile">收货人手机</label></th>
<td>${tradelog.buyermobile}</td>
</tr>
<tr>
<th><label for="newbuyermsg">备注信息</label></th>
<td>${tradelog.buyermsg}</td>
</tr>
</c:otherwise>
</c:choose>
<c:if test="${tradelog.status == 0}">
<tr>
<th> </th>
<td><button class="submit" type="submit" name="tradesubmit" value="true">更新交易单</button></td>
</tr>
</c:if>
</table>
</div>
<c:if test="${tradelog.offline>0&&!empty messages}">
<div class="mainbox formbox">
<h1>留言</h1>
<table summary="留言" cellspacing="0" cellpadding="0">
<c:forEach items="${messages}" var="message">
<tr>
<th valign="top">
<a href="space.jsp?action=viewpro&uid=${message[0]}" target="_blank">${message[1]}</a><br />
<div class="tips"><jrun:showTime timeInt="${message[2]}" isView="time" timeoffset="${timeoffset}" type="${dateformat} ${timeformat}" /></div>
</th>
<td>${message[3]}</td>
</tr>
</c:forEach>
</table>
</div>
</c:if>
</form>
<jsp:include flush="true" page="footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -