📄 post.jsp
字号:
<IMG onclick=center() height=22 alt="<bean:message key="jsp.post.advpost.alignins"/>" src=lybbs/btg/center.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=hyperlink() height=22 alt="<bean:message key="jsp.post.advpost.linkins"/>" src=lybbs/btg/url.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=email() height=22 alt="<bean:message key="jsp.post.advpost.emailins"/>" src=lybbs/btg/email.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=image() height=22 alt="<bean:message key="jsp.post.advpost.imageins"/>" src=lybbs/btg/image.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setswf() height=22 alt="<bean:message key="jsp.post.advpost.flashins"/>" src=lybbs/btg/swf.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setsound() height=22 alt="<bean:message key="jsp.post.advpost.soundins"/>" src=lybbs/btg/sound.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<%--<IMG onclick=showcode() height=22 alt="<bean:message key="jsp.post.advpost.codeins"/>" src=lybbs/btg/code.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">--%>
<IMG onclick=quoteme() height=22 alt="<bean:message key="jsp.post.advpost.quoteins"/>" src=lybbs/btg/quote.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setfly() height=22 alt="<bean:message key="jsp.post.advpost.flyins"/>" src=lybbs/btg/fly.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=move() height=22 alt="<bean:message key="jsp.post.advpost.moveins"/>" src=lybbs/btg/move.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=rm() src=lybbs/btg/rm.gif alt="<bean:message key="jsp.post.advpost.rmins"/>" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=mp() src=lybbs/btg/wm.gif alt="<bean:message key="jsp.post.advpost.wmpins"/>" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=qt() src=lybbs/btg/qt.gif alt="<bean:message key="jsp.post.advpost.qtins"/>" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=viewlycode() width=23 height=22 alt="<bean:message key="jsp.post.advpost.clicktoseelybbs"/>" src=lybbs/btg/help.gif class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=open_smilie_window(240,500) height=22 alt="<bean:message key="jsp.post.advpost.emotins"/>" src=lybbs/btg/smilie.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)"><br>
</logic:equal>
<TEXTAREA name=content rows=16 cols=96 title="<bean:message key="jsp.post.content.prompt"/>"><logic:present name="topicBean" scope="request"><bean:write name="topicBean" property="content" filter="false"/></logic:present></TEXTAREA><br>
<logic:equal name="advPost" value="1">
<bean:message key="common.lybbs.pattern"/>:
<input type="radio" name="mode" value="help" onClick="thelp(1)"><bean:message key="common.lybbs.help"/>
<input type="radio" name="mode" value="prompt" CHECKED onClick="thelp(2)"><bean:message key="common.lybbs.pattern.full"/>
<input type="radio" name="mode" value="basic" onClick="thelp(0)"><bean:message key="common.lybbs.pattern.basic"/>
<logic:equal name="forumBean" property="htmlStat" value="1">[<a href="javascript:openHtmlEditor();"><bean:message key="jsp.post.htmleditor"/></a>] </logic:equal>[<a href="javascript:checklength(document.submitok);"><bean:message key="jsp.post.content.checklength"/></a>]
</logic:equal>
</td>
</tr>
<logic:equal name="advPost" value="1">
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="jsp.post.emot.add"/></b><br><bean:message key="jsp.post.emot.comment"/></B>
</td>
<td class=forumColorTwo>
<a href="javascript:smilie('[em=01]');"><img src=lybbs/emot/em01.gif border=0></a>
<a href="javascript:smilie('[em=02]');"><img src=lybbs/emot/em02.gif border=0></a>
<a href="javascript:smilie('[em=03]');"><img src=lybbs/emot/em03.gif border=0></a>
<a href="javascript:smilie('[em=04]');"><img src=lybbs/emot/em04.gif border=0></a>
<a href="javascript:smilie('[em=05]');"><img src=lybbs/emot/em05.gif border=0></a>
<a href="javascript:smilie('[em=06]');"><img src=lybbs/emot/em06.gif border=0></a>
<a href="javascript:smilie('[em=07]');"><img src=lybbs/emot/em07.gif border=0></a>
<a href="javascript:smilie('[em=08]');"><img src=lybbs/emot/em08.gif border=0></a>
<a href="javascript:smilie('[em=09]');"><img src=lybbs/emot/em09.gif border=0></a>
<a href="javascript:smilie('[em=10]');"><img src=lybbs/emot/em10.gif border=0></a>
<a href="javascript:smilie('[em=11]');"><img src=lybbs/emot/em11.gif border=0></a>
<a href="javascript:smilie('[em=12]');"><img src=lybbs/emot/em12.gif border=0></a>
<a href="javascript:smilie('[em=13]');"><img src=lybbs/emot/em13.gif border=0></a>
<a href="javascript:smilie('[em=14]');"><img src=lybbs/emot/em14.gif border=0></a>
<a href="javascript:smilie('[em=15]');"><img src=lybbs/emot/em15.gif border=0></a>
<a href="javascript:smilie('[em=16]');"><img src=lybbs/emot/em16.gif border=0></a>
<a href="javascript:smilie('[em=17]');"><img src=lybbs/emot/em17.gif border=0></a>
<a href="javascript:smilie('[em=18]');"><img src=lybbs/emot/em18.gif border=0></a>
<a href="javascript:smilie('[em=19]');"><img src=lybbs/emot/em19.gif border=0></a>
<a href="javascript:smilie('[em=20]');"><img src=lybbs/emot/em20.gif border=0></a>
<a href="javascript:smilie('[em=21]');"><img src=lybbs/emot/em21.gif border=0></a>
[<a href="javascript:open_smilie_window(240,500)"><bean:message key="common.lybbs.more"/></a>]
</td>
</tr>
</logic:equal>
<logic:notEqual name="userBean" property="blogID" value="0" scope="session">
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="jsp.post.blog"/></b>
</td>
<td class=forumColorTwo>
<select name="postBlogEnabled">
<option value="false" selected><bean:message key="common.lybbs.no"/></option>
<option value="true"><bean:message key="common.lybbs.yes"/></option>
</select>
</td>
</tr>
</logic:notEqual>
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="common.lybbs.option"/></b>
<br><bean:message key="jsp.post.option.comment"/>
</td>
<td class=forumColorTwo>
<select name=viewMode onChange="displayViewNumber()">
<option value=0><bean:message key="error.post.allcanview"/></option>
<option value=1><bean:message key="error.post.registercanview"/></option>
<%
if(action.equals("new") || action.equals("poll") || (action.equals("edit") && isTopic)) {
%>
<option value=2><bean:message key="error.post.needreply"/></option>
<%
}
%>
<option value=3><bean:message key="error.post.admincanview"/></option>
<option value=7><bean:message key="error.post.mancanview" arg0="?"/></option>
<option value=4><bean:message key="error.post.viewnumber" arg0="?"/></option>
<option value=5><bean:message key="error.post.markhidden" arg0="?"/></option>
<option value=6><bean:message key="error.post.moneyhidden" arg0="?"/></option>
</select>
<input type=text name=viewNumber value="<logic:present name="topicBean" scope="request"><bean:write name="topicBean" property="viewNumber"/></logic:present>" size=8 maxlength=8 style="DISPLAY: none">
<input type=text name=viewUserName value="<logic:present name="viewUserName" scope="request"><bean:write name="viewUserName"/></logic:present>" size=20 maxlength=20 style="DISPLAY: none">
<script language=JavaScript>
<logic:present name="topicBean" scope="request">setCurrentSelect(document.submitok.viewMode,"<bean:write name="topicBean" property="viewMode"/>");</logic:present>
displayViewNumber();
</script>
<br>
<logic:equal name="forumBean" property="htmlStat" value="1">
<input type=checkbox name='htmlSupport' value='1'><bean:message key="jsp.post.html.support"/><br>
</logic:equal>
<%
if(action.equals("copy")) {
%>
<input type=checkbox name="copyNew" value="1"><bean:message key="jsp.post.topic.new"/><br>
<%
}
if(((action.equals("new") || action.equals("poll") || (action.equals("edit") && isTopic)) && emailTopicEnabled) || ((action.equals("reply") || action.equals("copy") || action.equals("replyquote") || (action.equals("edit") && !isTopic)) && emailReplyEnabled)) {
%>
<input type=checkbox name="isBook" value="1" <logic:present name="topicBean" scope="request"><logic:equal name="topicBean" property="isBook" value="1">checked</logic:equal></logic:present>><bean:message key="jsp.post.topic.isbook"/><br>
<%
}
%>
<input type=checkbox name="showSignature" value="1" <logic:present name="topicBean" scope="request"><logic:equal name="topicBean" property="showSignature" value="1">checked</logic:equal></logic:present> <logic:notPresent name="topicBean">checked</logic:notPresent>><bean:message key="jsp.post.signature.show"/><br>
<input type=checkbox name="autoFilter" value="1" checked><bean:message key="jsp.post.autofilter"/><br>
</td>
</tr>
<%
//accessary
if(((action.equals("reply") || action.equals("replyquote")) && allowAttachment.equals("1")) || ((action.equals("new") || action.equals("poll")) && arrowUpload.equals("1")) || action.equals("edit")) {
%>
<tr>
<td class=forumColorOne><b><bean:message key="jsp.post.upload.title"/></b><br><bean:message key="jsp.post.upload.comment" arg0="<%=String.valueOf(uploadMaxTopicSize/1024)%>" arg1="<%=String.valueOf(uploadMaxReplySize/1024)%>"/></td>
<td class=forumColorTwo>
<div style="margin-bottom:3px" id="attachList">
</div>
<input type="button" value="<bean:message key="jsp.post.upload.admin"/>" onclick="manageAttachments('bbs_upload.do?action=new&postAction=<%=action%>&postID=<%=postID%>', 480, 480)">
<select>
<option value=#><bean:message key="jsp.post.upload.allowedext"/>:</option>
<option value=#>----------</option>
<%
for(int i=0,m=uploadAllowedExtArray.length;i<m;i++) {
out.println("<option>"+uploadAllowedExtArray[i]+"</option>");
}
%>
</select>
</td>
</tr>
<%
}
%>
<tr>
<td class=forumColorTwo colspan=2 align=center>
<input type=button name=submit1 value="<bean:message key="common.lybbs.post"/>" onclick="checkPost()"> <input type="reset" name="Clear" value="<bean:message key="common.lybbs.clear"/>"> <input type="button" name="preview" value="<bean:message key="common.lybbs.preview"/>" onClick="previewPost()">
</td>
</tr>
</table>
</form>
</br>
<lybbs:web key="foot"/>
<script language="JavaScript">
function manageAttachments(url, width, height) {
window.open(url, "attachment", "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
}
function insertAttachment(fileName,fileRealName,fileExt) {
if(fileExt=="gif" || fileExt=="jpg" || fileExt=="jpeg" || fileExt=="bmp" || fileExt=="png") {
getActiveText();
AddText("\n<bean:message key="tag.typetopiclisttag.post.image"/>:\n");
lycode("img", "", "", "bbs_downloadAttachment.do?fileName="+fileName);
}
else if(fileExt=="swf") {
getActiveText();
AddText("\n");
lycode("swf", "", "", "bbs_downloadAttachment.do?fileName="+fileName);
}
else {
getActiveText();
AddText("\n");
lycode("img", "", "", "lybbs/icons/"+fileExt+".gif");
AddText("<bean:message key="tag.typetopiclisttag.post.accessary"/>: ");
lycode("url", "bbs_downloadAttachment.do?fileName="+fileName, "", fileRealName);
}
setAccessary2('0');
}
function previewPost() {
if(theform.content.value=="") {
alert("Please input the content.");
theform.content.focus();
}
else {
if(theform.title!=null && theform.title.value!=null) {
document.preview.title.value=theform.title.value;
}
document.preview.content.value=theform.content.value;
if(theform.autoFilter!=null && theform.autoFilter.value=="1") {
document.preview.autoFilter.value="1";
}
if(theform.htmlSupport!=null && theform.htmlSupport.value=="1") {
document.preview.htmlSupport.value="1";
}
if(theform.accessary!=null) {
document.preview.accessary.value=theform.accessary.value;
}
document.preview.submit();
}
}
function insertAllAttachment(insertText) {
eval(insertText);
}
if(theform==null) init();
//setCurrentTitleImage
var currentTitleImage="";
<logic:present name="topicBean" scope="request">currentTitleImage="<bean:write name="topicBean" property="titleImage"/>";</logic:present>
setCurrentRadio(theform.titleImage,currentTitleImage);
//set supportHtml
function setSupportHtml() {
//< and < are same
if(theform.htmlSupport!=null && theform.content.value.length>0 && theform.content.value.indexOf("<")!=-1) {
//checked
theform.htmlSupport.checked=true;
}
}
setTimeout("setSupportHtml()",1000);
</script>
<div style="display:none;">
<form method=post name=preview action="bbs_postPreview.do" target="_blank">
<input type=hidden name="title" value="">
<input type=hidden name="content" value="">
<input type=hidden name="autoFilter" value="0">
<input type=hidden name="htmlSupport" value="0">
<input type=hidden name="accessary" value="0">
</form>
</div>
<%--iframe name="attachmentPopup" width=0 height=0></iframe--%>
<iframe id="lybbs_Composition" width=0 height=0></iframe>
<script language="JavaScript">
IframeID=lybbs_bIsIE5?frames["lybbs_Composition"]:document.getElementById("lybbs_Composition").contentWindow;
<%if(action.equals("edit")){out.println("document.getElementById('lybbs_Composition').src='bbs_upload.do?action=new&postAction="+action+"&postID="+postID+"';");}%>
</script>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -