📄 post.jsp
字号:
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<TR>
<TD class=noBgStyle>
<lybbs:typeAdTag/>
</TD>
</TR>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<tr>
<td class=menuStyle height=22>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=left>
<lybbs:typeUserHeaderTag forumID="0"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
<tr>
<td class=navStyle vAlign=center height=25>
<img src="lybbs/images/forum_nav.gif" width="9" height="9" align="absMiddle"> <a href="bbs_index.do"><lybbs:web key="forumName"/></a> <bean:message key="common.lybbs.arrow"/><bean:write name="forumNavBean" filter="false"/>
</td>
</tr>
</table>
<br>
<form method=post name=submitok action="bbs_postSubmit.do" onkeydown="if(event.keyCode==13 && event.ctrlKey) checkPost()">
<input type="hidden" name="forumID" value="<%=forumID%>">
<input type="hidden" name="postID" value="<%=parentID%>">
<input type="hidden" name="accessary" value="<%if(action.equals("edit")) {%><bean:write name="topicBean" property="accessary"/><%}else {out.print("0");}%>">
<input type="hidden" name="accessaryName" value="">
<input type="hidden" name="updateAttachment" value="0">
<%
if(action.equals("new") || action.equals("poll")) {
out.println("<input type=hidden name=action value=new>");
}
else if(action.equals("edit")) {
out.println("<input type=hidden name=action value=edit>");
}
else if(action.equals("reply") || action.equals("replyquote") || action.equals("copy")) {
out.println("<input type=hidden name=action value=reply>");
}
%>
<input type="hidden" name="tokenCode" value="<bean:write name="token"/>">
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
<tr>
<td class=catStyle colspan=2>
<b><bean:message key="jsp.post.whocanpost"/></b>
<logic:equal name="forumBean" property="startNewThreads" value="all">
<bean:message key="jsp.post.whocanpost.all"/>
</logic:equal>
<logic:equal name="forumBean" property="startNewThreads" value="yes">
<bean:message key="jsp.post.whocanpost.yes"/>
</logic:equal>
<logic:equal name="forumBean" property="startNewThreads" value="follow">
<bean:message key="jsp.post.whocanpost.follow"/>
</logic:equal>
<logic:equal name="forumBean" property="startNewThreads" value="no">
<bean:message key="jsp.post.whocanpost.no"/>
</logic:equal>
<logic:equal name="forumBean" property="startNewThreads" value="cert">
<bean:message key="jsp.post.whocanpost.cert"/>
</logic:equal>
<logic:equal name="advPost" value="0">
[<a href=bbs_post.do?action=<%=action%>&forumID=<%=forumID%>&advPost=1&postID=<%=postID%>><bean:message key="jsp.login.defaultpost.advanced"/></a>]
</logic:equal>
<logic:equal name="advPost" value="1">
[<a href=bbs_post.do?action=<%=action%>&forumID=<%=forumID%>&advPost=0&postID=<%=postID%>><bean:message key="jsp.login.defaultpost.simple"/></a>]
</logic:equal>
</td>
</tr>
<%
if(action.equals("new") || action.equals("poll") || action.equals("copy") || (action.equals("edit") && isTopic)) {
%>
<tr>
<td class=forumColorOne>
<b><bean:message key="jsp.post.title"/></b>
<SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
<OPTION selected value=""><bean:message key="jsp.post.topic.select"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.1"/>"><bean:message key="jsp.post.topic.1"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.2"/>"><bean:message key="jsp.post.topic.2"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.3"/>"><bean:message key="jsp.post.topic.3"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.4"/>"><bean:message key="jsp.post.topic.4"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.5"/>"><bean:message key="jsp.post.topic.5"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.6"/>"><bean:message key="jsp.post.topic.6"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.7"/>"><bean:message key="jsp.post.topic.7"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.8"/>"><bean:message key="jsp.post.topic.8"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.9"/>"><bean:message key="jsp.post.topic.9"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.10"/>"><bean:message key="jsp.post.topic.10"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.11"/>"><bean:message key="jsp.post.topic.11"/></OPTION>
<OPTION value="<bean:message key="jsp.post.topic.12"/>"><bean:message key="jsp.post.topic.12"/></OPTION>
</SELECT>
</td>
<td class=forumColorTwo>
<input type=text size=60 maxlength=80 name="title" value="<logic:present name="topicBean" scope="request"><bean:write name="topicBean" property="title"/></logic:present>"> <bean:message key="jsp.post.title.comment"/>
</td>
</tr>
<%
}
%>
<tr>
<td class=forumColorOne width=22% valign=top>
<b><bean:message key="jsp.post.posticon"/></b><br><li><bean:message key="jsp.post.posticon.comment"/><BR>
</td>
<td class=forumColorTwo valign=top>
<%--
//get random value
//int defaultIconNum=(int)(Math.random()*30)+1;
--%>
<input type=radio value="" name="titleImage"><img src=lybbs/images/none.gif width=19 border=0 alt="none">
<input type=radio value="mood1.gif" name="titleImage"><img src=lybbs/posticons/mood1.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood1"/>">
<input type=radio value="mood2.gif" name="titleImage"><img src=lybbs/posticons/mood2.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood2"/>">
<input type=radio value="mood3.gif" name="titleImage"><img src=lybbs/posticons/mood3.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood3"/>">
<input type=radio value="mood4.gif" name="titleImage"><img src=lybbs/posticons/mood4.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood4"/>">
<input type=radio value="mood5.gif" name="titleImage"><img src=lybbs/posticons/mood5.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood5"/>">
<input type=radio value="mood6.gif" name="titleImage"><img src=lybbs/posticons/mood6.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood6"/>">
<input type=radio value="mood7.gif" name="titleImage"><img src=lybbs/posticons/mood7.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood7"/>">
<input type=radio value="mood8.gif" name="titleImage"><img src=lybbs/posticons/mood8.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood8"/>">
<input type=radio value="mood9.gif" name="titleImage"><img src=lybbs/posticons/mood9.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood9"/>">
<br>
<input type=radio value="mood10.gif" name="titleImage"><img src=lybbs/posticons/mood10.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood10"/>">
<input type=radio value="mood11.gif" name="titleImage"><img src=lybbs/posticons/mood11.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood11"/>">
<input type=radio value="mood12.gif" name="titleImage"><img src=lybbs/posticons/mood12.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood12"/>">
<input type=radio value="mood13.gif" name="titleImage"><img src=lybbs/posticons/mood13.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood13"/>">
<input type=radio value="mood14.gif" name="titleImage"><img src=lybbs/posticons/mood14.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood14"/>">
<input type=radio value="mood15.gif" name="titleImage"><img src=lybbs/posticons/mood15.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood15"/>">
<input type=radio value="mood16.gif" name="titleImage"><img src=lybbs/posticons/mood16.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood16"/>">
<input type=radio value="mood17.gif" name="titleImage"><img src=lybbs/posticons/mood17.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood17"/>">
<input type=radio value="mood18.gif" name="titleImage"><img src=lybbs/posticons/mood18.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood18"/>">
<input type=radio value="mood19.gif" name="titleImage"><img src=lybbs/posticons/mood19.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood19"/>">
<br>
<input type=radio value="mood20.gif" name="titleImage"><img src=lybbs/posticons/mood20.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood20"/>">
<input type=radio value="mood21.gif" name="titleImage"><img src=lybbs/posticons/mood21.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood21"/>">
<input type=radio value="mood22.gif" name="titleImage"><img src=lybbs/posticons/mood22.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood22"/>">
<input type=radio value="mood23.gif" name="titleImage"><img src=lybbs/posticons/mood23.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood23"/>">
<input type=radio value="mood24.gif" name="titleImage"><img src=lybbs/posticons/mood24.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood24"/>">
<input type=radio value="mood25.gif" name="titleImage"><img src=lybbs/posticons/mood25.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood25"/>">
<input type=radio value="mood26.gif" name="titleImage"><img src=lybbs/posticons/mood26.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood26"/>">
<input type=radio value="mood27.gif" name="titleImage"><img src=lybbs/posticons/mood27.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood27"/>">
<input type=radio value="mood29.gif" name="titleImage"><img src=lybbs/posticons/mood29.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood29"/>">
<input type=radio value="mood30.gif" name="titleImage"><img src=lybbs/posticons/mood30.gif width=19 height=19 border=0 alt="<bean:message key="jsp.post.posticon.mood30"/>">
</td>
</tr>
<%
if(action.equals("poll")) {
%>
<tr>
<td class=forumColorOne>
<b><bean:message key="jsp.poll.option"/></b>
</td>
<td class=forumColorTwo>
<input type=radio name="pollOption" value="1" checked onClick="votecondition(voteCondition,'none')"><bean:message key="jsp.poll.option.signsingle"/> <input type=radio name="pollOption" value="2" onClick="votecondition(voteCondition,'')"><bean:message key="jsp.poll.option.signmulti"/>
<input type=radio name="pollOption" value="3" onClick="votecondition(voteCondition,'none')"><bean:message key="jsp.poll.option.notsignsingle"/> <input type=radio name="pollOption" value="4" onClick="votecondition(voteCondition,'')"><bean:message key="jsp.poll.option.notsignmulti"/>
<br>
<bean:message key="jsp.poll.option.comment"/>
<br>
<span id=voteCondition style="DISPLAY: none"><bean:message key="common.lybbs.condition"/>: <select name="voteConditionCompare"><option value="0" selected><bean:message key="common.lybbs.unlimited"/></option><option value="1">></option><option value="2">=</option><option value="-1"><</option></select> <input type=text name="voteConditionNumber" value="0" size=2></span>
</td>
</tr>
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="jsp.poll.content"/></b>
<br><bean:message key="jsp.poll.content.comment"/>
</td>
<td class=forumColorTwo valign=top>
<TEXTAREA cols=58 name=pollContent rows=6 wrap=soft></TEXTAREA>
</td>
</tr>
<%
}
else if(action.equals("edit")) {
int voteConditionNumber=topic.getVoteCondition();
%>
<logic:present name="voteListBean" scope="request">
<tr>
<td class=forumColorOne>
<b><bean:message key="jsp.poll.option"/></b>
</td>
<td class=forumColorTwo>
<input type=radio name="pollOption" value="1" onClick="votecondition(voteCondition,'none')"><bean:message key="jsp.poll.option.signsingle"/> <input type=radio name="pollOption" value="2" onClick="votecondition(voteCondition,'')"><bean:message key="jsp.poll.option.signmulti"/>
<input type=radio name="pollOption" value="3" onClick="votecondition(voteCondition,'none')"><bean:message key="jsp.poll.option.notsignsingle"/> <input type=radio name="pollOption" value="4" onClick="votecondition(voteCondition,'')"><bean:message key="jsp.poll.option.notsignmulti"/>
<script language="JavaScript">setCurrentRadio(document.submitok.pollOption,"<bean:write name="topicBean" property="vote"/>");</script>
<br>
<bean:message key="jsp.poll.option.comment"/>
<br>
<span id=voteCondition><bean:message key="common.lybbs.condition"/>: <select name="voteConditionCompare"><option value="0" <%if(voteConditionNumber==0) out.print("selected");%>><bean:message key="common.lybbs.unlimited"/></option><option value="1" <%if(voteConditionNumber>0 && voteConditionNumber<=60) out.print("selected");%>>></option><option value="2" <%if(voteConditionNumber>60) out.print("selected");%>>=</option><option value="-1" <%if(voteConditionNumber<0) out.print("selected");%>><</option></select> <input type=text name="voteConditionNumber" size=2 value="<%if(voteConditionNumber>60) out.print("voteConditionNumber-60");else if(voteConditionNumber<0) out.print(-voteConditionNumber);else out.print(voteConditionNumber);%>"></span>
</td>
</tr>
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="jsp.poll.content"/></b>
</td>
<td class=forumColorTwo valign=top>
<script language="JavaScript">
function voteAdmin(action) {
var voteID=theform.voteID.value;
location.href="bbs_pollAdmin.do?forumID=<%=forumID%>&postID=<%=postID%>&voteID="+voteID+"&action="+action;
}
</script>
<select name=voteID>
<logic:iterate id="element" name="voteListBean">
<option value="<bean:write name="element" property="voteID"/>"><bean:write name="element" property="voteTitle"/></option>
</logic:iterate>
</select>
<input type=button name="addVote" value="<bean:message key="common.lybbs.add"/>" onclick="voteAdmin('add')">
<input type=button name="editVote" value="<bean:message key="common.lybbs.edit"/>" onclick="voteAdmin('edit')">
<input type=button name="deleteVote" value="<bean:message key="common.lybbs.delete"/>" onclick="voteAdmin('delete')">
</td>
</tr>
</logic:present>
<%
}
%>
<tr>
<td class=forumColorOne valign=top>
<b><bean:message key="common.lybbs.content"/></b>
<br><br>
<li><bean:message key="jsp.post.tag.html"/>: <b><logic:equal name="forumBean" property="htmlStat" value="1"><bean:message key="common.lybbs.useable"/></logic:equal><logic:equal name="forumBean" property="htmlStat" value="0"><bean:message key="common.lybbs.unuseable"/></logic:equal></b>
<li><a href="javascript:openScript('bbs_misc.do?action=lycode',800,600)"><bean:message key="jsp.post.tag.lybbs"/></a>: <b><logic:equal name="forumBean" property="lyCodeStat" value="1"><bean:message key="common.lybbs.useable"/></logic:equal><logic:equal name="forumBean" property="lyCodeStat" value="0"><bean:message key="common.lybbs.unuseable"/></logic:equal></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><logic:equal name="statusBean" property="emotIconEnabled" value="true"><bean:message key="common.lybbs.allow"/></logic:equal><logic:equal name="statusBean" property="emotIconEnabled" value="false"><bean:message key="common.lybbs.forbid"/></logic:equal></b><br>
</td>
<td class=forumColorTwo>
<logic:equal name="advPost" value="1">
<script language="JavaScript">
function smilieopen() {javascript:openScript('bbs_misc.do?action=showsmilies',800,600);}
function viewlycode() {javascript:openScript('bbs_misc.do?action=lycode',800,600);}
function rm() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -