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

📄 post_editpost_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> ${navigation} &raquo; 编辑商品
</div>

<script src="include/javascript/calendar.js" type="text/javascript"></script>
<script type="text/javascript">
var postminchars = parseInt('${settings.minpostsize}');
var postmaxchars = parseInt('${settings.maxpostsize}');
var disablepostctrl = parseInt('${usergroups.disablepostctrl}');
var typerequired = parseInt('${threadtypes.required}');
var attachments = new Array();
var bbinsert = parseInt('${settings.bbinsert}');
var tradepost = parseInt('${special == 2?1:0}');
var isfirstpost = parseInt('${isfirstpost?1:0}');
var attachimgurl = new Array();
var allowposttrade = parseInt('${usergroups.allowposttrade}');
lang['board_allowed'] = '系统限制';
lang['lento'] = '到';
lang['bytes'] = '字节';
lang['post_curlength'] = '当前长度';
lang['post_subject_and_message_isnull'] = '请完成标题或内容栏。';
lang['post_subject_toolong'] = '您的标题超过 80 个字符的限制。';
lang['post_message_length_invalid'] = '您的帖子长度不符合要求。';
lang['post_trade_alipay_null'] = '对不起,请输入财付通账户。';
lang['post_trade_goodsname_null'] = '对不起,请输入商品名称。';
lang['post_trade_price_null'] = '对不起,请输入商品现价。';
</script>
<jsp:include flush="true" page="post_preview.jsp" />
<form method="post" id="postform" action="post.jsp?action=edit&amp;fid=${thread.fid}&amp;tid=${thread.tid}&amp;pid=${post.pid}&amp;extra=${extra}&amp;editsubmit=yes&amp;mod=" enctype="multipart/form-data">
	<input type="hidden" name="formhash" id="formhash" value="${formhash}" />
	<input type="hidden" name="page" value="${page}" />
	<div class="mainbox formbox">
		<h1> 编辑商品 </h1>
		<table summary="Edit Trade" cellspacing="0" cellpadding="0" id="specialpost">
			<thead>
				<tr> <th> 用户名 </th>
					<td>
					<c:choose>
							<c:when test="${jsprun_uid>0}">${jsprun_userss} [<a href="logging.jsp?action=logout&formhash=${formhash}">退出登录</a>]							</c:when>
							<c:otherwise>游客 [<a href="logging.jsp?action=login">会员登录</a>]</c:otherwise>
					</c:choose>
					</td>
				</tr>
			</thead>
			<tr>
				<th> <label for="subject"> 标题 </label> </th>
				<td>
					<c:if test="${threadtypes.types!=null}">
						<select name="typeid" onchange="ajaxget('post.jsp?action=threadtypes&typeid='+this.options[this.selectedIndex].value+'&fid=${thread.fid}&sid=${jsprun_sid}&rand='+Math.random(), 'threadtypes', 'threadtypeswait')">
								<option value="0">&nbsp;</option>
								<c:forEach items="${threadtypes.types}" var="threadtype">
									<option value="${threadtype.key}"${threadtypes.special[threadtype.key]==1? "class='special'":""} ${threadtype.key==thread.typeid?"selected='selected'":""}>${threadtype.value}</option>
								</c:forEach>
							</select>
							<span id="threadtypeswait"></span>
					</c:if>
					<input type="text" name="subject" id="subject" size="45" value="${post.subject}" tabindex="3" />
					<input type="hidden" name="origsubject" value="${post.subject}" />
				</td>
			</tr>
			<c:choose>
				<c:when test="${special==2 }">
					<thead>
						<tr>
						<th>商品信息</th>
						<td>&nbsp;</td>
						</tr>
					</thead>
					<jsp:include flush="true" page="post_trade.jsp" />
				</c:when>
				<c:otherwise>
					<tr><jsp:include flush="true" page="post_editor.jsp" /></tr>
				</c:otherwise>
			</c:choose>
			<c:if test="${isfirstpost}">
				<c:choose>
					<c:when test="${special==2 }">
						<thead>
							<tr>
							<th>商品信息</th>
							<td>&nbsp;</td>
							</tr>
						</thead>
					</c:when>
					<c:otherwise>
						<c:if test="${settings.tagstatus>0}">
							<tr>
							<th><label for="tags">标签(TAG)</label></th>
								<td>
									<input size="45" type="input" id="tags" name="tags" value="${tags}" tabindex="95" />&nbsp; <button onclick="relatekw();return false">可用标签</button><span id="tagselect"></span> <em class="tips">(用空格隔开多个标签,最多可填写 <strong>5</strong> 个)</em>
								</td>
							</tr>
						</c:if>
						<tr>
							<th><label for="aboutthread">柜台介绍</label></th>
							<td><textarea name="aboutcounter" id="aboutcounter" rows="10" cols="20" style="width:99%; height:60px" tabindex="96">${aboutcounter}</textarea></td>
						</tr>
					</c:otherwise>
				</c:choose>
					<c:if test="${usergroups.allowsetreadperm>0}">
					<tr>
						<th><label for="readperm">所需阅读权限</label></th>
						<td><input type="text" id="readperm" name="readperm" size="6" value="${thread.readperm}" /> (0或空为不限制)</td>
					</tr>
					</c:if>
			</c:if>
			<tr class="btns">
				<th>&nbsp;</th>
				<td>
					<input type="hidden" name="special" value="2">
					<input type="hidden" name="isshop" value="${special==2}">
					<input type="hidden" name="isfirst" value="${isfirstpost}">
					<input type="hidden" name="page" value="${param.page}">
					<input type="hidden" name="wysiwyg" id="${editorid}_mode" value="${editormode}" />
					<input type="hidden" name="fid" id="fid" value="${fid}" />
					<input type="hidden" name="tid" value="${thread.tid}" />
					<input type="hidden" name="pid" value="${post.pid}" />
					<input type="hidden" name="postsubject" value="${post.subject}" />
					<button type="submit" name="editsubmit" id="postsubmit" value="true" tabindex="101"> <c:choose> <c:when test="${special==2}"> 编辑商品 </c:when> <c:when test="${isfirstpost}"> 编辑商品主题 </c:when> <c:otherwise> 编辑帖子 </c:otherwise> </c:choose> </button>
					<input type="hidden" name="wysiwyg" id="${editorid}_mode" value="${editormode}" />
					<em>[完成后可按 Ctrl+Enter 发布]</em>&nbsp;&nbsp;
					&nbsp;<a href="###" id="restoredata" onclick="loadData()" title="恢复上次自动保存的数据">恢复数据</a>
				</td>
			</tr>
		</table>
	</div>
<jsp:include flush="true" page="post_editpost_attachlist.jsp"/>
</form>
<jsp:include flush="true" page="post_js.jsp" />
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

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