📄 post_editor.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<style>
.editor_tb{margin:5px 0 0;width:600px;height:26px;border:1px solid;border-color:#999 #CCC #CCC #999;background:#F7F7F7;border-bottom:none;}.editor_tb .right a{color:#09C;}.editor_tb .right{padding-right:10px;line-height:26px;}
.float_typeid{float:left;margin-right:6px;}.float_typeid select{float:left;height:20px;}.float_typeid a{display:block;overflow:hidden;text-indent:4px;padding-right:17px;width:77px;height:20px;*padding-top:2px;*height:18px;text-decoration:none !important;color:#444 !important;border:1px solid;border-color:#999 #CCC #CCC #999;background:#FFF url(../../images/default/newarow.gif) no-repeat 100% 0;}.float_typeid a:hover{text-decoration:none;border:1px solid #09C;background-position:100% -20px;}.float_postinfo .float_typeid a{line-height:20px;*line-height:18px;}.float_typeid ul{margin:-22px 0 0;border:1px solid #09C;background:#FFF url(../../images/default/newarow.gif) no-repeat 100% -20px;}* html .float_typeid ul{margin-top:-23px;}.float_typeid ul li{margin:0 4px;color:#444;cursor:pointer;}.float_typeid ul li:hover{color:#09C;}.newselect .current{font-weight:700;}.float_typeid select{width:94px;}
.smilieslist{text-align:center;padding:10px;border:1px solid #7FCAE2;background:#FEFEFE;}.smilieslist td{padding:8px;border:none;cursor:pointer;}.smilieslist_page{text-align:right;}
.smilieslist_table{left:-100px;top:0;*top:-1px;width:100px !important;height:100px;border:1px solid #E6E7E1;background:#FFF;}.smilieslist_preview{text-align:center;vertical-align:middle;}.smiliesgroup ul{margin:6px 0;padding:0 0 24px 8px;border-bottom:1px solid #DDD;}.smiliesgroup li{display:inline;}.smiliesgroup li a{float:left;margin-right:6px;padding:2px 10px;height:24px;he\ight:19px;border:1px solid #DDD;color:#09C;}.smiliesgroup li a.current{border-bottom-color:#FFF;background:#FFF;font-weight:bold;color:#444;}
.pags_act{float:left;}.pags_act a{display:inline !important;}.smilieslist_page a{display:inline;margin:0 4px;color:#09C;text-decoration:underline;}.right{float:right;}
</style>
<script type="text/javascript">
lang['post_jspruncode_code'] = '请输入要插入的代码';
lang['post_jspruncode_quote'] = '请输入要插入的引用';
lang['post_jspruncode_free'] = '请输入要插入的免费信息';
lang['post_jspruncode_hide'] = '请输入要插入的隐藏内容';
var editorcss = 'forumdata/cache/style_${styles.STYLEID}.css';
var editorcss_append = 'forumdata/cache/style_${styles.STYLEID}_append.css';
var TABLEBG = '${styles.TABLEBG}';
</script>
<th valign="top">
<label for="posteditor_textarea"><c:choose><c:when test="${special==1}">背景资料</c:when><c:when test="${thread.special==2&&isfirstpost}">柜台商品介绍</c:when><c:when test="${thread.special==2&&special == 2}">商品描述</c:when><c:when test="${special==3&&allowpostreward}">补充资料</c:when><c:when test="${special==4&&allowpostactivity}">活动说明</c:when><c:when test="${special==5}">${(allowpostdebate&&isfirstpost||action == 'newthread')?"背景资料":"立场"}</c:when><c:otherwise>内容</c:otherwise></c:choose></label>
<div id="${editorid}_left" ${advanceeditor?"":"style='display: none'"}>
<ul ${advanceeditor?"":"style='display: none'"}>
<li>Html 代码 <em>${(forum.allowhtml>0||usergroups.allowhtml>0)?"可用":"禁用"}</em></li>
<li><a href="faq.jsp?action=message&id=${faqs.smilies.id}" target="_blank">${faqs.smilies.keyword}</a> <em>${(forum.allowsmilies>0)?"可用":"禁用"}</em></li>
<li><a href="faq.jsp?action=message&id=${faqs.JspRuncode.id}" target="_blank">${faqs.JspRuncode.keyword}</a> <em>${(forum.allowbbcode>0)?"可用":"禁用"}</em></li>
<li>[img] 代码 <em>${(forum.allowimgcode>0)?"可用":"禁用"}</em></li>
</ul>
<hr>
<ul>
<li><label><input type="checkbox" name="parseurloff" id="parseurloff" value="1" ${post.parseurloff>0?"checked='checked'":""}/> 禁用 URL 识别</label></li>
<li><label><input type="checkbox" name="smileyoff" id="smileyoff" value="1" ${post.smileyoff>0?"checked='checked'":""}/> 禁用 <a href="faq.jsp?action=message&id=${faqs.smilies.id}" target="_blank">${faqs.smilies.keyword}</a></label></li>
<li><label><input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" ${post.bbcodeoff>0?"checked='checked'":""}/> 禁用 <a href="faq.jsp?action=message&id=${faqs.JspRuncode.id}" target="_blank">${faqs.JspRuncode.keyword}</a></label></li>
<c:if test="${settings.tagstatus>0&&(action=='newthread'||action=='edit'&&isfirstpost)}"><li><label><input type="checkbox" name="tagoff" id="tagoff" value="1" ${tagoffcheck} /> 禁用 标签解析</label></li></c:if>
<c:if test="${usergroups.allowhtml>0}"><li><label><input type="checkbox" name="htmlon" id="htmlon" value="1" ${post.htmlon>0?"checked='checked'":""}/> 启用 Html 代码</label></li></c:if>
<c:choose>
<c:when test="${action!='edit'}"><c:if test="${allowanonymous}"><li><label><input type="checkbox" name="isanonymous" value="1" /> 使用匿名发帖</label></li></c:if></c:when>
<c:otherwise><c:if test="${allowanonymous||post.anonymous>0}"><li><label><input type="checkbox" name="isanonymous" value="1" ${post.anonymous>0?"checked='checked'":""}/> 使用匿名发帖</label></li></c:if></c:otherwise>
</c:choose>
<li><label><input type="checkbox" name="usesig" value="1" ${post.usesig>0||user.sigstatus>0?"checked='checked'":""?"checked='checked'":""}> 使用个人签名</label></li>
<c:choose><c:when test="${action!='edit'}">
<li><label><input type="checkbox" name="emailnotify" value="1" ${notifycheck}> 接收新回复邮件通知</label></li>
<c:if test="${action=='newthread'}">
<c:if test="${ismoderator&&(usergroups.allowdirectpost>0||forum.modnewposts<=0)}"><li><label><input type="checkbox" name="sticktopic" value="1" ${stickcheck}> 主题置顶</label></li><li><label><input type="checkbox" name="addtodigest" value="1" ${digestcheck}> 精华帖子</label></li></c:if>
<c:if test="${usergroups.allowuseblog>0&&forum.allowshare>0}"><li><label><input type="checkbox" name="addtoblog" value="1" ${blogcheck}> 加入文集</label></li></c:if>
</c:if>
</c:when><c:otherwise>
<c:choose>
<c:when test="${(isorigauthor||ismoderator)&&isfirstpost&&thread.replies<1}"><li><label><input type="checkbox" name="delete" value="1"> <b>!删除本帖</b> <c:if test="${thread.special==3}">返还悬赏费用,不退还手续费。</c:if></label></li></c:when>
<c:when test="${!isfirstpost&&(isorigauthor||ismoderator)}"><li><label><input type="checkbox" name="delete" value="1"> <b>!删除本帖</b></label></li></c:when>
</c:choose>
<c:if test="${auditstatuson>0}"><li><label><input type="checkbox" name="audit" value="1"> <b>通过审核</b></label></li></c:if>
</c:otherwise></c:choose>
</ul>
</div>
</th>
<td valign="top"><div id="${editorid}"><c:if test="${settings.bbinsert>0}"><table summary="editor" id="editor" cellpadding="0" cellspacing="0">
<tr><td id="${editorid}_controls" class="editortoolbar"><table summary="Editor ToolBar" cellpadding="0" cellspacing="0"><tr>
<td><a id="${editorid}_cmd_bold"><img src="images/common/bb_bold.gif" title="粗体" alt="B" /></a></td>
<td><a id="${editorid}_cmd_italic"><img src="images/common/bb_italic.gif" title="斜体" alt="I" /></a></td>
<td><a id="${editorid}_cmd_underline"><img src="images/common/bb_underline.gif" title="下划线" alt="U" /></a></td>
<td><img src="images/common/bb_separator.gif" alt="|" /></td>
<td><a id="${editorid}_popup_fontname" title="字体"><span style="width: 110px; display: block; white-space: nowrap;" id="${editorid}_font_out" class="dropmenu">字体</span></a></td>
<td><a id="${editorid}_popup_fontsize" title="大小"><span style="width: 30px; display: block;" id="${editorid}_size_out" class="dropmenu">大小</span></a></td>
<td><a id="${editorid}_popup_forecolor" title="颜色"><span style="width: 30px; display: block;" class="dropmenu"><img src="images/common/bb_color.gif" width="21" height="16" alt="" /><br /><img src="images/common/bb_clear.gif" id="${editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></span></a></td>
<td><img src="images/common/bb_separator.gif" alt="|" /></td>
<td><a id="${editorid}_cmd_justifyleft"><img src="images/common/bb_left.gif" title="居左" alt="Align Left" /></a></td>
<td><a id="${editorid}_cmd_justifycenter"><img src="images/common/bb_center.gif" title="居中" alt="Align Center" /></a></td>
<td><a id="${editorid}_cmd_justifyright"><img src="images/common/bb_right.gif" title="居右" alt="Align Right" /></a></td>
<td><img src="images/common/bb_separator.gif" alt="|" /></td>
<td><a id="${editorid}_cmd_createlink"><img src="images/common/bb_url.gif" title="插入链接" alt="Url" /></a></td>
<td><a id="${editorid}_cmd_email"><img src="images/common/bb_email.gif" title="插入邮箱链接" alt="Email" /></a></td>
<td><a id="${editorid}_cmd_insertimage"><img src="images/common/bb_image.gif" title="插入图片" alt="Image" /></a></td>
<c:if test="${forum.allowmediacode>0}"><td><a id="${editorid}_popup_media"><img src="images/common/bb_media.gif" title="插入多媒体文件" alt="Media" /></a></td></c:if>
<td><img src="images/common/bb_separator.gif" alt="|" /></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -