📄 viewthread_fastreply.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="viewthread_relatedthread.jsp"/>
<script src="include/javascript/post.js" type="text/javascript"></script>
<c:if test="${allowpostreply && settings.fastreply==1}">
<script type="text/javascript">
var postminchars = parseInt('10');
var postmaxchars = parseInt('10000');
var disablepostctrl = parseInt('1');
function validate(theform) {
if (theform.message.value == "" && theform.subject.value == "") {
alert("请完成标题或内容栏。");
theform.message.focus();
return false;
} else if (theform.subject.value.length > 80) {
alert("您的标题超过 80 个字符的限制。");
theform.subject.focus();
return false;
}
if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
alert("您的帖子长度不符合要求。\n\n当前长度: "+theform.message.value.length+" 字节\n系统限制: "+postminchars+" 发送到 "+postmaxchars+" 字节");
return false;
}
if(!fetchCheckbox('parseurloff')) {
theform.message.value = parseurl(theform.message.value, 'bbcode');
}
theform.replysubmit.disabled = true;
return true;
}
</script>
<form method="post" id="postform" action="post.jsp?action=reply&fid=${thread.fid}&tid=${thread.tid}&replysubmit=yes" onSubmit="return validate(this)" enctype="multipart/form-data">
<input type="hidden" name="fastreplay" value="yes" />
<input type="hidden" name="replysubmit" value="yes">
<input type="hidden" name="page" value="${pagesize}">
<div id="quickpost" class="box">
<span class="headactions"><a href="member.jsp?action=credits&view=forum_reply&fid=${thread.fid}" target="_blank">查看积分策略说明</a></span>
<h4>快速回复主题</h4>
<div class="postoptions">
<h5>选项</h5>
<p><label><input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1"> 禁用 URL 识别</label></p>
<p><label><input class="checkbox" type="checkbox" name="smileyoff" id="smileyoff" value="1"> 禁用<a href="faq.jsp?action=message&id=32" target="_blank">表情</a></label></p>
<p><label><input class="checkbox" type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1"> 禁用<a href="faq.jsp?action=message&id=18" target="_blank">JspRun!代码</a></label></p>
<c:if test="${usergroups.allowanonymous==1}"><p><label><input class="checkbox" type="checkbox" name="isanonymous" value="1"> 使用匿名发帖</label></p></c:if>
<p><label><input class="checkbox" type="checkbox" name="usesig" value="1" > 使用个人签名</label></p>
<p><label><input class="checkbox" type="checkbox" name="emailnotify" value="1"> 接收新回复邮件通知</label></p>
</div>
<div class="postform">
<h5>标题
<c:if test="${thread.special==5}">
<input type="hidden" name="standhidden" value="${firststand}" >
<select name="stand"<c:if test="${firststand==1 || firststand==2}">disabled</c:if>><option value="0" <c:if test="${firststand==0}">selected</c:if>>中立</option><option value="1" <c:if test="${firststand==1}">selected</c:if>>正方</option><option value="2" <c:if test="${firststand==2}">selected</c:if>>反方</option></select>
</c:if>
<input type="text" id="subject" name="subject" value="" tabindex="1">
</h5>
<p>
<jsp:include flush="true" page="seditor.jsp"/>
<div><textarea rows="7" cols="80" class="autosave" name="message" id="fastpostmessage" onKeyDown="ctlent(event);" tabindex="2" style="width:597px;"></textarea></div>
</p>
<p class="btns">
<button type="submit" name="replysubmit" id="postsubmit"
value="replysubmit" tabindex="3">
发表帖子
</button>
[完成后可按 Ctrl+Enter 发布]
<a href="###" id="previewpost" onclick="$('postform').action=$('postform').action + '&previewpost=yes&subject='+$('subject').value+'&message='+$('fastpostmessage').value;$('postform').submit();">预览帖子</a>
<a href="###" id="restoredata" title="恢复上次自动保存的数据" onclick="loadData()">恢复数据</a>
<a href="###" onclick="$('postform').reset()">清空内容</a>
</p>
</div>
<script type="text/javascript">
var textobj = $('message');
window.onbeforeunload = function () {saveData(textobj.value)};
if(is_ie >= 5 || is_moz >= 2) {
lang['post_autosave_none'] = "没有可以恢复的数据!";
lang['post_autosave_confirm'] = "此操作将覆盖当前帖子内容,确定要恢复数据吗?";
} else {
$('restoredata').style.display = 'none';
}
</script>
</div>
<div id="dd" style="display:none"><input type="file" name="files"></div>
</form>
</c:if>
<script type="text/javascript">
function modaction(action) {
if(!action) {
return;
}
if(in_array(action, ['delpost', 'banpost'])) {
document.modactions.action = 'topicadmin.jsp?operation='+action+'&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage};'
document.modactions.submit();
} else if(in_array(action, ['delete', 'close','move','highlight','type','digest','stick','bump','recommend'])) {
window.location=('topicadmin.jsp?operation='+ action +'&fid=${thread.fid}&moderates=${thread.tid}&sid=${sid}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}');
}else{
document.modactions.action = 'topicadmin.jsp?action='+ action +'&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage};'
document.modactions.submit();
}
}
</script>
<c:if test="${modertar || requestScope.visitedforums!=null||(settings.forumjump==1&&settings.jsmenu_1==0)}">
<div id="footfilter" class="box">
<c:if test="${modertar}">
<form action="#">
管理选项:
<select name="action" id="action" onchange="modaction(this.options[this.selectedIndex].value)">
<option value="" selected>管理选项</option>
<c:if test="${admingroups.allowdelpost>0}">
<option value="delpost">删除回帖</option>
<option value="delete">删除主题</option>
</c:if>
<option value="banpost">屏蔽帖子</option>
<option value="close">关闭主题</option>
<option value="move">移动主题</option>
<c:if test="${thread.special==0}" ><option value="copy">复制主题</option></c:if>
<option value="highlight">高亮显示</option>
<option value="type">主题分类</option>
<option value="digest">设置精华</option>
<c:if test="${admingroups.allowstickthread>0}"><option value="stick">主题置顶</option></c:if>
<c:if test="${thread.price>0 && admingroups.allowrefund && thread.special==0}"><option value="refund">强制退款</option></c:if>
<c:if test="${thread.special==0}" >
<option value="split">分割主题</option>
<option value="merge">合并主题</option>
</c:if>
<c:if test="${thread.special==3 && thread.price > 0}" ><option value="removereward">取消悬赏</option></c:if>
<option value="bump">提升主题</option>
<option value="repair">修复主题</option>
<c:if test="${modrecommendMap.open!=0 && modrecommendMap.sort!=1}" ><option value="recommend">推荐主题</option></c:if>
</select>
</form>
</c:if>
<c:if test="${settings.forumjump==1&&settings.jsmenu_1==0}">
<select onchange="if(this.options[this.selectedIndex].value != '') {window.location=('forumdisplay.jsp?fid='+this.options[this.selectedIndex].value+'&sid=${sid}')}">
<option value="">版块跳转...</option>
${forumselect}
</select>
</c:if>
<c:if test="${requestScope.visitedforums!=null}">
<select onchange="if(this.options[this.selectedIndex].value != '') window.location=('forumdisplay.jsp?fid='+this.options[this.selectedIndex].value+'&sid=${sid}')">
<option value="">最近访问的版块 ...</option>
<c:forEach items="${requestScope.visitedforums}" var="visitedforum">
<c:if test="${visitedforum.key!=thread.fid}"><option value="${visitedforum.key}">${visitedforum.value}</option></c:if>
</c:forEach>
</select>
</c:if>
</div>
</c:if>
<c:if test="${settings.forumjump==1&&settings.jsmenu_1>0}">
<div class="popupmenu_popup" id="forumlist_menu" style="display: none">
${forummenu}
</div>
</c:if>
<script src="include/javascript/msn.js" type="text/javascript"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -