📄 post.jsp
字号:
<td height="1" valign="bottom" background="lyblog/images/line_01.gif" colspan=2></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="98%" border="1" align="center" cellpadding="5" cellspacing="0" borderColorLight=#C8C8DD borderColorDark=#FFFFFF>
<form method=post name=submitok action="blog_postSubmit.do" onkeydown="if(event.keyCode==13 && event.ctrlKey) checkPost()">
<input type=hidden name=postID value=<%=postID%>>
<input type=hidden name=action value=<%=action%>>
<input type="hidden" name="tokenCode" value="<bean:write name="token"/>">
<input type="hidden" name="catalogName" value="">
<input type="hidden" name="accessary" value="0">
<tr>
<td bgcolor="#F5F5FA" width=20%><b><bean:message key="jsp.post.title"/></b></td>
<td bgcolor="#F5F5FA">
<input type=text size=60 maxlength=80 name="title" value="<logic:present name="postBean" scope="request"><bean:write name="postBean" property="title"/></logic:present>"> <bean:message key="jsp.post.title.comment"/>
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA" valign="top">
<b><bean:message key="common.lybbs.content"/></b>
<br><br>
<li><bean:message key="jsp.post.tag.html"/>: <b><bean:message key="common.lybbs.useable"/></b>
<li><a href="javascript:openScript('bbs_misc.do?action=lycode',800,600)"><bean:message key="jsp.post.tag.lybbs"/></a>: <b><bean:message key="common.lybbs.useable"/></b>
<li><bean:message key="jsp.post.tag.image"/> : <b><logic:equal name="publicStyleBean" property="arrawPostPic" value="1"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="publicStyleBean" property="arrawPostPic" value="0"><bean:message key="common.lybbs.forbid"/></logic:equal></b>
<li><bean:message key="jsp.post.tag.font"/> : <b><logic:equal name="publicStyleBean" property="arrawPostFontSize" value="1"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="publicStyleBean" property="arrawPostFontSize" value="0"><bean:message key="common.lybbs.forbid"/></logic:equal></b>
<li><bean:message key="jsp.post.tag.flash"/> : <b><logic:equal name="publicStyleBean" property="arrawPostFlash" value="1"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="publicStyleBean" property="arrawPostFlash" value="0"><bean:message key="common.lybbs.forbid"/></logic:equal></b>
<li><bean:message key="jsp.post.tag.media"/> : <b><logic:equal name="publicStyleBean" property="arrawPostMedia" value="1"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="publicStyleBean" property="arrawPostMedia" value="0"><bean:message key="common.lybbs.forbid"/></logic:equal></b>
<li><bean:message key="jsp.post.tag.bgsound"/> : <b><logic:equal name="publicStyleBean" property="arrawPostSound" value="1"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="publicStyleBean" property="arrawPostSound" value="0"><bean:message key="common.lybbs.forbid"/></logic:equal></b>
<li><a href="javascript:open_smilie_window(240,500)"><bean:message key="jsp.post.tag.emot"/></a>: <b><bean:message key="common.lybbs.allow"/></b><br>
</td>
<td bgcolor="#F5F5FA" valign="top">
<font color=#000000><bean:message key="jsp.post.font"/>: </font>
<select onchange=showfont(this.options[this.selectedIndex].value) name=font>
<option value="<bean:message key="jsp.post.font.song"/>" selected><bean:message key="jsp.post.font.song"/></option>
<option value="<bean:message key="jsp.post.font.kai"/>_GB2312"><bean:message key="jsp.post.font.kai"/></option>
<option value="<bean:message key="jsp.post.font.newsong"/>"><bean:message key="jsp.post.font.newsong"/></option>
<option value="<bean:message key="jsp.post.font.hei"/>"><bean:message key="jsp.post.font.hei"/></option>
<option value="<bean:message key="jsp.post.font.lu"/>"><bean:message key="jsp.post.font.lu"/></option>
<OPTION value=Arial>Arial</OPTION>
<OPTION value=Georgia>Georgia</OPTION>
<OPTION value=Impact>Impact</OPTION>
<OPTION value=Tahoma>Tahoma</OPTION>
<OPTION value=Stencil>Stencil</OPTION>
<OPTION value=Verdana>Verdana</OPTION>
</SELECT>
<font color=#000000><bean:message key="jsp.post.size"/>: </font>
<SELECT onchange=showsize(this.options[this.selectedIndex].value) name=size>
<OPTION value=1>1</OPTION>
<OPTION value=2>2</OPTION>
<OPTION value=3 selected>3</OPTION>
<OPTION value=4>4</OPTION>
<OPTION value=5>5</OPTION>
<OPTION value=6>6</OPTION>
<OPTION value=7>7</OPTION>
</SELECT>
<img id="forecolor" onclick=showcolor() alt="<bean:message key="jsp.post.color"/>" src=lybbs/btg/fgcolor.gif class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<br>
<IMG onclick=bold() height=22 alt="<bean:message key="jsp.post.advpost.boldins"/>" src=lybbs/btg/bold.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=italicize() height=22 alt="<bean:message key="jsp.post.advpost.italicins"/>" src=lybbs/btg/italicize.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=underline() height=22 alt="<bean:message key="jsp.post.advpost.underlineins"/>" src=lybbs/btg/underline.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<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>
<TEXTAREA name=content rows=16 cols=96 title="<bean:message key="jsp.post.content.prompt"/>"><logic:present name="postBean" scope="request"><bean:write name="postBean" property="content" filter="false"/></logic:present></TEXTAREA><br>
<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"/>
[<a href="javascript:openHtmlEditor();"><bean:message key="jsp.post.htmleditor"/></a>] [<a href="javascript:checklength(document.submitok);"><bean:message key="jsp.post.content.checklength"/></a>]
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">
<b><bean:message key="jsp.post.emot.add"/></b><br><bean:message key="jsp.post.emot.comment"/></B>
</td>
<td bgcolor="#F5F5FA">
<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>
<tr>
<td bgcolor="#F5F5FA" valign="top">
<b><bean:message key="common.lybbs.option"/></b>
</td>
<td bgcolor="#F5F5FA">
<input type=checkbox name='htmlSupport' value='1'><bean:message key="jsp.post.html.support"/><br>
<select name="catalogID" onchange="changeCatalogName()">
<option value="0">文章分类</option>
<logic:iterate id="element" name="catalogListBean" scope="request">
<option value="<bean:write name="element" property="catalogID"/>"><bean:write name="element" property="title"/></option>
</logic:iterate>
</select> * 如果需要发布到某个分类,请选择文章分类;<br>
<%if(!action.equals("edit")) {%>
<select name="postForumID">
<option value="0">不发布到分论坛</option>
<logic:notEqual name="blogToForumID" value="0" scope="request">
<option value="<bean:write name="blogToForumID" scope="request"/>">发布到分论坛</option>
</logic:notEqual>
</select> * 如果需要发布到某个分论坛,请选择发布到分论坛;
<%}%>
<logic:present name="postBean" scope="request">
<script language=JavaScript>setCurrentSelect(document.submitok.catalogID,"<bean:write name="postBean" property="catalogID"/>");</script>
</logic:present>
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">
<b><bean:message key="jsp.post.upload.title"/></b><br>
<span id="uploadcomment" style="display:none"><font color="#FF0000">注意:上传附件后,请务必点"<b>加入</b>"或"<b>全部加入</b>"以把附件加到博客内容中。</font></span>
</td>
<td bgcolor="#F5F5FA">
<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=new&postID=0', 480, 480)">
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA" 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>
</form>
</table>
</td>
</tr>
</table>
</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();
//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 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 + -