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

📄 post_editpost_activity.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 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> ${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 attachments = new Array();
var bbinsert = parseInt('${settings.bbinsert}');
var attachimgurl = new Array();
var isfirstpost = parseInt('${isfirstpost?1:0}');
var special = parseInt('${special}');
var allowposttrade = parseInt('${usergroups.allowposttrade}');
var allowpostreward = parseInt('${usergroups.allowpostreward}');
var allowpostactivity = parseInt('${usergroups.allowpostactivity}');
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_activity_sort_null'] = '对不起,请输入活动所属类别。';
lang['post_activity_fromtime_null'] = '对不起,请输入活动开始时间。';
lang['post_activity_addr_null'] = '对不起,请输入活动地点。';
</script>
<jsp:include flush="true" page="post_preview.jsp" />
<form method="post" id="postform" action="post.jsp?action=edit&amp;extra=page%3D1&amp;editsubmit=yes&amp;" onSubmit="return validate(this)" enctype="multipart/form-data">
	<input type="hidden" name="formhash" id="formhash" value="b29e1c42" />
	<input type="hidden" name="page" value="${param.page}">
	<input type="hidden" name="isfirst" value="true">
	<input type="hidden" name="special" value="4">
	<div class="mainbox formbox">
		<h1>编辑活动主题</h1>
		<table summary="" cellspacing="0" cellpadding="0">
			<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>
			<thead>
				<tr>
					<th>活动信息</th>
					<td>&nbsp;</td>
				</tr>
			</thead>
			<tr>
				<th><label for="subject">活动名称</label></th>
				<td>
					<input type="text" name="subject" id="subject" size="45" value="${post.subject}" tabindex="3" />
					<input type="hidden" name="origsubject" value="${post.subject}" />
					<input type="hidden" name="activity" value="yes" />
				</td>
			</tr>
			<tr>
				<th><label for="activityclass">活动类别</label></th>
				<td>
					<c:if test="${activitytypelist!=null}">
						<select onchange="this.form.activityclass.value=this.value" tabindex="4">
							<option value=""></option>
							<c:forEach items="${activitytypelist}" var="type"><option value="${type}">${type}</option></c:forEach>
						</select>
					</c:if>
					<input type="text" size="45" id="activityclass" name="activityclass" value="${activity.class}" tabindex="4" />
				</td>
			</tr>
			<tr>
				<th>开始时间</th>
				<td>
					<p>
						<label><input class="radio" type="radio" value="0" name="activitytime" onclick="$('certainstarttime').style.display='';$('uncertainstarttime').style.display='none';" tabindex="5" ${activity.starttimeto==0?"checked":""}/>在一个确定的时间开始</label>
						<label><input class="radio" type="radio" value="1" name="activitytime" onclick="$('certainstarttime').style.display='none';$('uncertainstarttime').style.display=''" tabindex="5" ${activity.starttimeto!=0?"checked":""}/>在一个时间范围内商定</label>
					</p>
					<span id="certainstarttime" style="display: ${activity.starttimeto!=0?'none':''}"><input onclick="showcalendar(event, this, true)" type="text" name="starttimefrom[0]" id="starttimefrom_0" size="15" value="<jrun:showTime timeInt="${activity.starttimefrom}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>" tabindex="5" /> </span>
					<span id="uncertainstarttime" style="display: ${activity.starttimeto==0?'none':''}"><input onclick="showcalendar(event, this, true)" type="text" name="starttimefrom[1]" id="starttimefrom_1" size="20" value="<jrun:showTime timeInt="${activity.starttimefrom}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>" tabindex="5" /> - 
					<c:choose><c:when test="${activity.starttimeto>0}"><input onclick="showcalendar(event, this, true)" type="text" name="starttimeto" size="20" value="<jrun:showTime timeInt="${activity.starttimeto}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>" tabindex="5" /></c:when><c:otherwise><input onclick="showcalendar(event, this, true)" type="text" name="starttimeto" size="20" value="" tabindex="5" /></c:otherwise></c:choose> </span>
					<em class="tips">样例:<jrun:showTime timeInt="${timestamp+86400}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></em>
				</td>
			</tr>
			<tr>
				<th><label for="activityplace">活动地点</label></th>
				<td><input type="text" id="activityplace" name="activityplace" size="45" value="${activity.place}" tabindex="6" /></td>
			</tr>
			<tr>
				<th><label for="cost">每人花销</label></th>
				<td>
					<input onkeyup="checkvalue(this.value, 'costmessage')" type="text" id="cost" name="cost" size="8" value="${activity.cost}" tabindex="7" />元
					<span id="costmessage"></span>
					<script type="text/javascript">
					function checkvalue(value, message){
						if(!value.search(/^\d+$/)) {
							$(message).innerHTML = '';
						} else {
							$(message).innerHTML = '<b>填写无效</b>';
						}
					}
				</script>
				</td>
			</tr>
			<tr><jsp:include flush="true" page="post_editor.jsp" /></tr>
			<c:if test="${settings.tagstatus>0}">
				<tr>
					<th><label for="tags">标签(TAG)</label></th>
					<td>
						<input size="45" type="text" id="tags" name="tags" value="${tags}" tabindex="200" />&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>需要人数(扩展信息)</th>
				<td>
					<input onkeyup="checkvalue(this.value, 'activitynumbermessage')" type="text" name="activitynumber" size="45" value="${activity.number}" tabindex="201">
					<span id="activitynumbermessage"></span>
				</td>
			</tr>
			<tr>
				<th>性别</th>
				<td>
					<label><input class="radio" type="radio" name="gender" value="0" tabindex="202" ${activity.gender==0?"checked":""}>不限</label>
					<label><input class="radio" type="radio" name="gender" value="1" tabindex="203" ${activity.gender==1?"checked":""}>男</label>
					<label><input class="radio" type="radio" name="gender" value="2" tabindex="204" ${activity.gender==2?"checked":""}>女</label>
				</td>
			</tr>
			<tr>
				<th>征集截止日期(扩展信息)<br/>0或空为不限制</th>
				<td>
					<c:choose>
						<c:when test="${activity.expiration>0}"><input onclick="showcalendar(event, this, true)" type="text" name="activityexpiration" size="45" value="<jrun:showTime timeInt="${activity.expiration}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>" tabindex="205" />样例:<jrun:showTime timeInt="${timestamp+86400}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></c:when>
						<c:otherwise><input onclick="showcalendar(event, this, true)" type="text" name="activityexpiration" size="45" value="" tabindex="205" />样例:<jrun:showTime timeInt="${timestamp+86400}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></c:otherwise>
					</c:choose>
				</td>
			</tr>
			<thead>
				<tr>
					<th>其他信息</th>
					<td>&nbsp;</td>
				</tr>
			</thead>
			<c:if test="${usergroups.allowsetreadperm>0}">
				<tr>
					<th>所需阅读权限</th>
					<td><input type="text" name="readperm" size="6" value="${thread.readperm}" tabindex="206" /> <span class="smalltxt">(0或空为不限制)</span></td>
				</tr>
			</c:if>
			<tr class="btns">
				<th>&nbsp;</th>
				<td>
					<input type="hidden" name="wysiwyg" id="${editorid}_mode" value="${editormode }" />
					<input type="hidden" name="fid" id="fid" value="${post.fid}">
					<input type="hidden" name="tid" value="${post.tid}">
					<input type="hidden" name="pid" value="${post.pid}">
					<button type="submit" class="submit" name="editsubmit" id="postsubmit" tabindex="300">编辑活动主题</button>
					<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" />
<script type="text/javascript">
	var textobj = $(editorid + '_textarea');
	if(${settings.bbinsert>0})
	{
		if(${editormode>0}){
			if(!(is_opera && is_opera < 9)) {textobj.value = bbcode2html(textobj.value);}
		}
		newEditor(wysiwyg);
	}
	checkFocus();
	setCaretAtEnd();
	if(!(is_ie >= 5 || is_moz >= 2)) {
		$('restoredata').style.display = 'none';
	}
</script>
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

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