📄 viewthread.jsp
字号:
<%-- @todo: replace alt string in next <img> --%>
<img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/nogender.gif" border="0" alt="男宝宝">
<%if (memberBean==null) {%>
<%=fiyuForumConfig.getDefaultGuestName()%>
<%} else {%>
<span class="memberName"><%=memberBean.getMemberName()%></span>
<br/>
<%if (memberBean.getMemberTitle()!=null) {%><%=memberBean.getMemberTitle()%><%}%>
<br/>
<%if (memberBean.getMemberAvatar().length()>0) {%>
<div align="center"><img src="<%=memberBean.getMemberAvatar()%>" border="0" alt="会员大头照"></div>
<%}%>
<%}%>
<%}%>
</td>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="77%" valign="top" class="messageTextBold">
<%if ( (permission.canEditPost(forumID_int)) ||
((memberBean!=null) && (memberBean.getMemberID()==memberID)) ) {%>
<% if ( fiyuForumConfig.getEnableAttachment() && permission.canAddAttachment(forumID_int) ) { %>
<a href="addattachment?post=<%=postBean.getPostID()%>&offset=<%=offset1%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/attach.gif" border="0" alt="附加档案"></a>
<%}%>
<a href="editpost?post=<%=postBean.getPostID()%>&offset=<%=offset1%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/edit.gif" border="0" alt="编辑此篇文章"></a>
<%
//In this code we will check if user can delete his own post, and we will check attribute "nobody reply" in WebHandler
%>
<%--<a href="deleteownpost?post=<%=postBean.getPostID()%>&offset=<%=offset1%>&thread=<%=threadID_int%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/delete.gif" border="0" alt="删除本篇文章"></a> --%>
<%}%>
<%if (postBean.getPostIcon().length() > 0) {
out.print(EnableEmotionFilter.filter(postBean.getPostIcon() + " ", ParamUtil.getContextPath() + fiyuForumGlobal.EMOTION_DIR));
}%>
<%=MyUtil.filter(postBean.getPostTopic(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, false/*newLine*/, false/*URL*/)%>
</td>
<td width="23%" align="right" valign="top" nowrap> <a class="command" href="addpost?parent=<%=postBean.getPostID()%>">[回复]</a>
<a class="command" href="addpost?parent=<%=postBean.getPostID()%>"e=yes">[引用]</a>
<%if (postBean.getParentPostID() == 0) {%>
<a class="command" href="deletethread?thread=<%=threadID%>"></a>
<%} else {%>
<a class="command" href="deletepost?post=<%=postBean.getPostID()%>">[删除]</a>
<%}%>
</td>
</tr>
<%if ( permission.canDeletePost(forumID_int) ) {%>
<%}%>
</table>
<hr size="1" noshade>
<%=MyUtil.filter(postBean.getPostBody(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, true/*newLine*/, true/*URL*/)%>
<%
Collection attachBeans = postBean.getAttachmentBeans();
if (attachBeans != null) {
for (Iterator attachIter = attachBeans.iterator(); attachIter.hasNext(); ) {
AttachmentBean attachBean = (AttachmentBean)attachIter.next();
%>
----------------------------------------<br/>
<%if ( permission.canDeletePost(forumID_int) ) {%>
<%-- @todo: or it should be canEditPost(forumID) ? --%>
<a class="command" href="deleteattachment?attach=<%=attachBean.getAttachID()%>&offset=<%=offset1%>">[删除]</a>
<%}%>
<img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/attach.gif" border="0" alt="">
<a class="command" href="getattachment?attach=<%=attachBean.getAttachID()%>"><%=attachBean.getAttachFilename()%></a>
(<%=attachBean.getAttachFileSize()%> bytes)
(下载次数: <%=attachBean.getAttachDownloadCount()%>)
<%if (attachBean.getAttachDesc().length() > 0) {%>(<%=MyUtil.filter(attachBean.getAttachDesc(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, false/*newLine*/, true/*URL*/)%>)<%}%><br/>
<%if (attachBean.getAttachMimeType().startsWith("image/")) {%><img src="getattachment?attach=<%=attachBean.getAttachID()%>" alt="<%=attachBean.getAttachFilename()%>" border="0"><%}%>
<br/>
<%
}
}
%>
<%if (memberBean!=null) {
String signature = MyUtil.filter(memberBean.getMemberSignature(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, true/*newLine*/, true/*URL*/);
if (signature.length() > 0) { %>
----------------------------------------<br/>
<%=signature%>
<%}
}%>
<%if(postBean.getPostEditCount() > 0) {%>
----------------------------------------<br/>
[编辑文章 <%=postBean.getPostEditCount()%> 次,
最後修改: <a href="viewmember?member=<%=postBean.getLastEditMemberName()%>" class="memberName"><%=postBean.getLastEditMemberName()%></a> at <%=onlineUser.getGMTTimestampFormat(postBean.getPostLastEditDate())%>]
<%}%>
</td>
</tr>
<tr class="<%=color%>">
<td>
<table class="<%=color%>" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap>
[<%=onlineUser.getGMTTimestampFormat(postBean.getPostCreationDate())%>]
<%if ( permission.canAdminSystem() ) {%>
<%if(postBean.getPostEditCount() > 0) { /* has edited*/%>
[第一次发表IP: <font color="red"><%=postBean.getPostCreationIP()%></font> - 最後发表IP: <font color="red"><%=postBean.getPostLastEditIP()%></font>]
<%} else {/* never been edited*/%>
[<font color="red"><%=postBean.getPostCreationIP()%></font>]
<%}%>
<%}%>
<a href="printpost?post=<%=postBean.getPostID()%>&thread=<%=threadID%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/printer.gif" border="0" alt="Print Post"></a>
</td>
<td width="100%">
<%if (memberBean!=null) {%>
<%if (memberBean.getMemberYahoo().length() > 0) {%> <a href="http://edit.yahoo.com/config/send_webmesg?.target=<%=memberBean.getMemberYahoo()%>&.src=pg"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/yim.gif" border="0" alt="<%=memberBean.getMemberYahoo()%>"></a><%}%>
<%if (memberBean.getMemberAol().length() > 0) {%> <a href="aim:goim?screenname=<%=memberBean.getMemberAol()%>&message=Hello+Are+you+there?"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/aim.gif" border="0" alt="<%=memberBean.getMemberAol()%>"></a><%}%>
<%if (memberBean.getMemberIcq().length() > 0) {%> <a href="http://wwp.icq.com/scripts/search.dll?to=<%=memberBean.getMemberIcq()%>"><img src="http://web.icq.com/whitepages/online?icq=<%=memberBean.getMemberIcq()%>&img=5" border="0" alt="<%=memberBean.getMemberIcq()%>"></a><%}%>
<%if ((memberBean.getMemberHomepage().length() > 0) && (memberBean.getMemberHomepage().equals("http://")==false)) {%> <a href="<%=memberBean.getMemberHomepage_http()%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/www.gif" border="0" alt="<%=memberBean.getMemberHomepage()%>"></a><%}%>
<%
if (memberBean.getMemberEmailVisible() == 1) {
if (onlineUser.isGuest()) {%>
<img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/email.gif" border="0" alt="Email is hidden to Guest">
<%} else { %>
<a href="mailto:<%=memberBean.getMemberEmail()%>"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/email.gif" border="0" alt="<%=memberBean.getMemberEmail()%>"></a>
<%}
}
} else { /*guest*/%>
<%}%>
</td>
<td nowrap>
<%if (onlineUser.isGuest()) {%>
<img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/threat.gif" border="0" alt="回应文章前,请先登入!">
<%} else {%>
<a href="mailto:<%=fiyuForumConfig.getWebMasterEmail()%>?subject=Report threaten message (id = <%=postBean.getPostID()%>)"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/threat.gif" border="0" alt="反映不当的文章内容"></a>
<%}%>
<a href="#"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/up.gif" border="0" alt="回到顶端"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</pg:item>
<% }//while %>
<table width="95%" align="center">
<tr>
<td>
<%@ include file="inc_pager.jsp"%>
</td>
<td align="right">
<a class="command" href="printthread?thread=<%=threadID_int%>">[显示可以列印的版本]</a>
<a class="command" href="addpost?forum=<%=forumID%>">[发表新话题]</a>
</td>
</tr>
</table>
</pg:pager> <br/>
<table width="95%" align="center">
<tr class="messageText">
<td> <form>
<div align="right">快速连接»
<select name="FastGoForum" onChange="gotoPage(this.options[this.selectedIndex].value)">
<%
Iterator forumIterator = forumBeans.iterator();
int lastCategoryID = -1;
while(forumIterator.hasNext()) {
ForumBean row = (ForumBean)forumIterator.next();
if (row.getCategoryID() != lastCategoryID) {// to print the category
lastCategoryID = row.getCategoryID();
CategoryBean categoryBean = categoryCache.getBean(lastCategoryID);
%>
<option value=""></option>
<option value="listforums">
<%=categoryBean.getCategoryName()%>
</option>
<option value="">---------------------------------</option>
<% }//if %>
<option value="listthreads?forum=<%=row.getForumID()%>" <%if (row.getForumID() == forumID_int) {%>selected<%}%>>
<%=row.getForumName()%>
</option>
<% }//while %>
</select>
</div>
</form></td>
</tr>
</table>
<br/>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -