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

📄 post_trade.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<script type="text/javascript">
	lang['post_trade_costprice_is_number'] = '对不起,商品原价必须为有效数字。';
	lang['post_trade_price_is_number'] = '对不起,商品现价必须为有效数字。';
	lang['post_trade_amount_is_number'] = '对不起,商品数量必须为数字。';
</script>
<input type="hidden" name="trade" value="yes" />
<tr>
	<th style="border-bottom: 0"><label for="item_name">商品名称</label></th>
	<td style="border-bottom: 0">${tradetypeselect}<input type="text" id="item_name" name="item_name" size="30" value="${trade.subject}" tabindex="50" /></td>
</tr>
<tr><td id="threadtypes" colspan="2" style="border: 0px; padding: 0px"></td></tr>
<tr>
	<th><label for="item_quality">商品类型</label></th>
	<td>
		<select id="item_quality" name="item_quality" tabindex="51">
			<option value="1" ${trade.quality==1? "selected='selected'":""}>全新</option>
			<option value="2" ${trade.quality==2? "selected='selected'":""}>二手</option>
		</select>

		<select name="item_type" tabindex="52">
			<option value="1" ${trade.itemtype==1? "selected='selected'":""}>商品</option>
			<option value="2" ${trade.itemtype==2? "selected='selected'":""}>服务</option>
			<option value="3" ${trade.itemtype==3? "selected='selected'":""}>拍卖</option>
			<option value="4" ${trade.itemtype==4? "selected='selected'":""}>捐赠</option>
			<option value="5" ${trade.itemtype==5? "selected='selected'":""}>邮费</option>
			<option value="6" ${trade.itemtype==6? "selected='selected'":""}>奖金</option>
		</select>
	</td>
</tr>
<c:if test="${allowpostattach}">
	<tr>
		<th>商品图片</th>
		<td>
			<input type="file" name="tradeattach" class="absmiddle" size="30" onchange="attachpreview(this, 'tradeattach_preview', 80, 80)" tabindex="53" />
			<div id="tradeattach_preview">
				<c:if test="${!empty trade.attachment}">
					<a href="${url}/${trade.attachment}" target="_blank">
					<c:choose>
						<c:when test="${trade.thumb>0}"><img height="80" src="${url}/${trade.attachment}.thumb.jpg" border="0" alt="" /></c:when>
						<c:otherwise><img height="80" src="${url}/${trade.attachment}" border="0" alt="" /></c:otherwise>
					</c:choose>
					</a>
				</c:if>
			</div>
			<c:if test="${!empty trade.attachment}"><input name="tradeaid" type="hidden" value="${trade.aid}"></c:if>
			<div id="tradeattach_preview_hidden" style="position: absolute; top: -100000px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image'); width: 80px; height: 80px"></div>
		</td>
	</tr>
</c:if>
<tr><jsp:include flush="true" page="post_editor.jsp" /></tr>
<c:if test="${(action=='newthread'||(action == 'edit'&&isfirstpost))&&settings.tagstatus>0}">
	<tr>
		<th><label for="tags">标签</label></th>
		<td>
			<input size="45" type="text" id="tags" name="tags" value="${threadtags}" tabindex="154" />&nbsp;
			<button onclick="relatekw();return false">可用标签</button><span id="tagselect"></span>
			<em class="tips">(用空格隔开多个标签,最多可填写 <strong>5</strong> 个)</em>
		</td>
	</tr>
</c:if>
<thead>
	<tr>
		<th>交易信息</th>
		<td>&nbsp;</td>
	</tr>
</thead>
<tr>
	<th><label for="item_costprice">商品原价</label></th>
	<td><input type="text" id="item_costprice" name="item_costprice" size="30" value="${trade.costprice}" tabindex="155" /></td>
</tr>
<tr>
	<th><label for="item_price">商品现价</label></th>
	<td><input type="text" id="item_price" name="item_price" size="30" value="${trade.price}" tabindex="156" /> <em class="tips"><c:choose><c:when test="${usergroups.mintradeprice>0&&usergroups.maxtradeprice>0}">价格范围 ${usergroups.mintradeprice} 元 - ${usergroups.maxtradeprice} 元</c:when><c:otherwise>最小价格 ${usergroups.mintradeprice} 元</c:otherwise></c:choose></em></td>
</tr>
<tr>
	<th><label for="item_locus">所在地点</label></th>
	<td><input type="text" id="item_locus" name="item_locus" size="30" value="${trade.locus}" tabindex="157" /></td>
</tr>
<tr>
	<th><label for="item_number">商品数量</label></th>
	<td><input type="text" id="item_number" name="item_number" size="30" value="${trade.amount}" tabindex="158" /></td>
</tr>
<c:choose>
	<c:when test="${settings.ec_account!=''}">
		<tr>
			<th><label for="paymethod">交易方式</label></th>
			<td><input type="radio" id="paymethod" name="paymethod"	onclick="$('tradeaccount').style.display = ''" value="1" ${trade.account!=''?"checked='checked'":""}/> 财付通在线交易 <input type="radio" id="paymethod" name="paymethod"	onclick="$('tradeaccount').style.display = 'none'" value="0" ${trade.account==''?"checked='checked'":""}/> 线下交易</td>
		</tr>
		<tbody id="tradeaccount" ${trade.account==''?"style='display: none'":""}>
			<tr>
				<th><label for="seller">财付通账户</label></th>
				<td><input type="text" id="seller" name="seller" size="30" value="${trade.account}" /></td>
			</tr>
		</tbody>
	</c:when>
	<c:otherwise><input type="hidden" id="seller" name="seller" value="" /></c:otherwise>
</c:choose>
<tr>
	<th valign="top">物流方式</th>
	<td>
		<label><input class="radio" type="radio" name="transport" value="3" tabindex="160" ${trade.transport== 3?"checked='checked'":""} onclick="$('logisticssetting').style.display='none'" /> 虚拟物品或无需邮递</label>
		<label><input class="radio" type="radio" name="transport" value="1" tabindex="161" ${trade.transport== 1?"checked='checked'":""} onclick="$('logisticssetting').style.display=''" /> 卖家承担运费</label>
		<label><input class="radio" type="radio" name="transport" value="2" tabindex="162" ${trade.transport== 2?"checked='checked'":""} onclick="$('logisticssetting').style.display=''" /> 买家承担运费</label>
		<label><input class="radio" type="radio" name="transport" value="4" tabindex="163" ${trade.transport== 4?"checked='checked'":""} onclick="$('logisticssetting').style.display=''" /> 支付给物流公司</label>
	</td>
</tr>
<tbody id="logisticssetting" style="display:${trade.transport== 3?'none':''}">
	<tr>
		<th valign="top">运费</th>
		<td>
			平邮 <input type="text" name="postage_mail" size="3" value="${trade.ordinaryfee}" tabindex="164" /> 元 <em class="tips">(不填表示不提供平邮)</em><br />
			快递 <input type="text" name="postage_express" size="3" value="${trade.expressfee}" tabindex="165" /> 元 <em class="tips">(不填表示不提供快递)</em><br />
			EMS <input type="text" name="postage_ems" size="3" value="${trade.emsfee}" tabindex="166" /> 元 <em class="tips">(不填表示不提供 EMS)</em><br />
		</td>
	</tr>
</tbody>
<c:if test="${action=='edit'}">
	<tr>
		<th>启动交易</th>
		<td>
			<label><input class="radio" type="radio" name="closed" value="0" tabindex="167" ${trade.closed == 0?"checked='checked'":""}>是</label>&nbsp;
			<label><input class="radio" type="radio" name="closed" value="1" tabindex="168" ${trade.closed == 1?"checked='checked'":""}>否</label>
		</td>
	</tr>
</c:if>
<tr>
	<th><label for="item_expiration">有效期</label></th>
	<td>
		<input onclick="showcalendar(event, this, false)" type="text" id="item_expiration" name="item_expiration" size="30" value="${trade.expiration}" tabindex="169">
		<select onchange="this.form.item_expiration.value = this.value">
			<option value=''></option>
			<option value=''>永久有效</option>
			<option value='${expiration_7days}'>7天</option>
			<option value='${expiration_14days}'>14天</option>
			<option value='${expiration_month}'>1个月</option>
			<option value='${expiration_3months}'>3个月</option>
			<option value='${expiration_halfyear}'>半年</option>
			<option value='${expiration_year}'>1年</option>
		</select>
	</td>
</tr>
<script type="text/javascript">
	if(${trade.price>0.0&&tradetaxtype == 2})
	{
		$('realtax').innerHTML = Math.ceil(${trade.price * (tradetaxs / 100)});
	}
</script>

⌨️ 快捷键说明

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