📄 topic.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/>-<bean:write name="forumBean" property="forumName"/>-<bean:write name="topicBean" property="title"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
<script language="javascript" src="lybbs/common/js/htmleditor.js" type="text/javascript"></script>
<script language="JavaScript">
var musicUrl='';
var IframeID;
var userAgent = navigator.userAgent.toLowerCase();
var is_ie = userAgent.indexOf('msie') != -1;
var text = "";
var AddTxt = "";
var theform;
var lybbs_bIsIE5=document.all;
function init() {
theform=document.postForm;
}
function menu(){
var URL = document.jump.jumpto.options[document.jump.jumpto.selectedIndex].value;
location.href = URL; target = '_self';
}
function clicktoaddplayerlist(musicLink) {
if(musicLink!='') {
var txt=prompt("<bean:message key="tag.typetopiclisttag.post.addplayername"/>","unknown");
if(txt!=null) {
if(txt=='') txt="unknown";
document.addplayerlist.musicName.value=txt;
document.addplayerlist.musicLink.value=musicLink;
document.addplayerlist.submit();
}
}
else {
alert(musicLink+" does not exist.");
}
}
</script>
</head>
<%
int postID=ParameterUtils.getInt(request,"postID");
int replyID=ParameterUtils.getInt(request,"replyID");
int forumID=ParameterUtils.getInt(request,"forumID");
int pages=ParameterUtils.getInt(request,"pages");
String replyNum=ParameterUtils.getString(request,"replyNum");
%>
<body topmargin=0 leftmargin=0 onload="init()">
<lybbs:web key="popMsg"/>
<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="<%=forumID%>"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableNoBgStyle cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td>>><bean:write name="forumBean" property="forumDescription"/></td>
</tr>
</table>
<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>
<table class=tableNoBgStyle cellpadding=1 cellspacing=0 align=center>
<tr>
<td align=center width=1></td>
<td width=330 valign=bottom>
<a href=bbs_post.do?action=new&forumID=<%=forumID%>><img src=lybbs/images/<bean:write name="iconBean" property="newThreadLogo"/> border=0 alt="<bean:message key="jsp.forum.addnewpost"/>"></a>
<a href=bbs_post.do?action=poll&forumID=<%=forumID%>><img src=lybbs/images/<bean:write name="iconBean" property="newPollLogo"/> border=0 alt="<bean:message key="jsp.forum.addnewpoll"/>"></a>
<logic:equal name="topicBean" property="titleLock" value="0">
<a href=bbs_post.do?action=reply&forumID=<%=forumID%>&postID=<%=postID%>><img src=lybbs/images/<bean:write name="iconBean" property="newReplyLogo"/> border=0 alt="<bean:message key="jsp.topic.addreplypost"/>"></a>
</logic:equal>
</td>
<td align=right valign=bottom width=* nowarp>
<bean:define id="clickTimes" name="topicBean" property="clickTimes" type="java.lang.Integer"/>
<bean:message key="jsp.topic.clicktimes" arg0="<%=clickTimes.toString()%>"/>
<a href="javascript:this.location.reload()"><img src=lybbs/images/refresh.gif border=0 alt="<bean:message key="jsp.topic.refresh"/>" width=40 height=12></a>
<logic:equal name="userBean" property="skin" scope="session" value="0">
<a href="bbs_topic.do?forumID=<%=forumID%>&postID=<%=postID%>&replyID=<%=replyID%>&skin=1&saveSkin=true&pages=<%=pages%>&replyNum=<%=replyNum%>"><img src="lybbs/images/treeview.gif" border=0></a>
</logic:equal>
<logic:equal name="userBean" property="skin" scope="session" value="1">
<a href="bbs_topic.do?forumID=<%=forumID%>&postID=<%=postID%>&replyID=<%=replyID%>&skin=0&saveSkin=true&pages=<%=pages%>&replyNum=<%=replyNum%>"><img src="lybbs/images/flatview.gif" border=0></a>
</logic:equal>
</td>
<td width=2></td>
</tr>
</table>
<a name="top"></a>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
<tr>
<td height=24 class=catStyle>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td class=catFontStyle> <b>* <bean:message key="jsp.topic.title"/></b>: <bean:write name="topicBean" property="title" filter="false"/>
<logic:equal name="topicBean" property="titleLock" value="1">
<img src=lybbs/images/closed.gif alt="<bean:message key="jsp.topic.cantreply"/>" height=13>
</logic:equal>
<logic:equal name="topicBean" property="titleLock" value="0">
<a href=bbs_post.do?action=reply&forumID=<%=forumID%>&postID=<%=postID%>><img src=lybbs/images/replytothread.gif border=0 alt="<bean:message key="jsp.topic.addreplypost"/>" height=13 align=absmiddle></a>
</logic:equal>
</td>
<td align=right class=catStyle>
<logic:equal name="forumBean" property="ratings" value="1">
<bean:define id="othersCache" name="othersBean" type="net.lybbs.common.cache.OthersCache"/>
<%if(othersCache.getPraiseTitle1().length()>0) {%>
<a href='bbs_weapon.do?forumID=<%=forumID%>&postID=<%=postID%>&weaponID=1' title='<bean:message key="jsp.post.weapon.comment" arg0="<%=othersCache.getPraiseTitle1()%>" arg1="<%=String.valueOf(othersCache.getPraiseNum1())%>"/>'><img src='<%=othersCache.getPraisePic1()%>' border=0 align=absmiddle><%=othersCache.getPraiseTitle1()%></a>(<bean:write name="weaponBean" property="praiseCount1" scope="request"/>)
<%}if(othersCache.getPraiseTitle2().length()>0) {%>
<a href='bbs_weapon.do?forumID=<%=forumID%>&postID=<%=postID%>&weaponID=2' title='<bean:message key="jsp.post.weapon.comment" arg0="<%=othersCache.getPraiseTitle2()%>" arg1="<%=String.valueOf(othersCache.getPraiseNum2())%>"/>'><img src='<%=othersCache.getPraisePic2()%>' border=0 align=absmiddle><%=othersCache.getPraiseTitle2()%></a>(<bean:write name="weaponBean" property="praiseCount2" scope="request"/>)
<%}if(othersCache.getCriticizeTitle1().length()>0) {%>
<a href='bbs_weapon.do?forumID=<%=forumID%>&postID=<%=postID%>&weaponID=3' title='<bean:message key="jsp.post.weapon.comment" arg0="<%=othersCache.getCriticizeTitle1()%>" arg1="<%=String.valueOf(othersCache.getCriticizeNum1())%>"/>'><img src='<%=othersCache.getCriticizePic1()%>' border=0 align=absmiddle><%=othersCache.getCriticizeTitle1()%></a>(<bean:write name="weaponBean" property="criticizeCount1" scope="request"/>)
<%}if(othersCache.getCriticizeTitle2().length()>0) {%>
<a href='bbs_weapon.do?forumID=<%=forumID%>&postID=<%=postID%>&weaponID=4' title='<bean:message key="jsp.post.weapon.comment" arg0="<%=othersCache.getCriticizeTitle2()%>" arg1="<%=String.valueOf(othersCache.getCriticizeNum2())%>"/>'><img src='<%=othersCache.getCriticizePic2()%>' border=0 align=absmiddle><%=othersCache.getCriticizeTitle2()%></a>(<bean:write name="weaponBean" property="criticizeCount2" scope="request"/>)
<%}%>
</logic:equal>
<a href="bbs_favorite.do?postID=<%=postID%>" title="<bean:message key="common.lybbs.favorite"/>"><bean:message key="common.lybbs.favorite"/></a>
<logic:equal name="emailBean" property="emailReplyEnabled" value="true">
<a href="bbs_book.do?postID=<%=postID%>" title="<bean:message key="common.lybbs.book"/>"><bean:message key="common.lybbs.book"/></a>
</logic:equal>
<a href="#bottom"><img src='lybbs/images/gobottom.gif' align='absbottom' border=0></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<lybbs:typeTopicListTag/>
<lybbs:typeForumJumpTag/>
<a name="bottom"></a>
<logic:greaterThan name="userBean" property="userMode" value="0" scope="session">
<logic:equal name="publicStyleBean" property="dispQuickReply" value="1">
<logic:equal name="topicBean" property="titleLock" value="0">
<%
net.lybbs.util.PropertiesCache propertiesCache=net.lybbs.util.PropertiesCache.getInstance();
long uploadMaxTopicSize=propertiesCache.getUploadMaxTopicSize();
long uploadMaxReplySize=propertiesCache.getUploadMaxReplySize();
String[] uploadAllowedExtArray=propertiesCache.getUploadAllowedExtArray();
%>
<script language="JavaScript">
function open_smilie_window(x_width, y_width) {
window.open("bbs_misc.do?action=showsmilies", "smilies", "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + x_width + ",height=" + y_width);
}
function smilie(smilietext) {
getActiveText();
var AddSmilie = " " + smilietext + " ";
AddText(AddSmilie);
}
</script>
<table class=tableCommonStyle cellPadding=3 cellSpacing=1 align=center>
<form method=post name="postForm" 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="<%=postID%>">
<input type=hidden name=action value=reply>
<input type="hidden" name="accessary" value="0">
<input type="hidden" name="accessaryName" value="">
<input type="hidden" name="updateAttachment" value="0">
<input type="hidden" name="tokenCode" value="<bean:write name="token"/>">
<tr>
<td class=catStyle width=178><b><bean:message key="common.lybbs.subject"/>:</b></td>
<td class=catStyle colspan="2"> <bean:write name="topicBean" property="title" filter="false"/></td>
</tr>
<logic:equal name="publicStyleBean" property="allowAttachment" value="1">
<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=reply&postID=0', 480, 480)">
<select>
<option value=#><bean:message key="jsp.post.upload.allowedext"/>:</option>
<option value=#>----------</option>
<%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -