📄 messagelist.jsp
字号:
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/MultiPages.tld" prefix="MultiPages" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<!-- 显示一个主题下所有帖子 -->
<bean:define id="messageList" name="messageListForm" property="list" />
<bean:define id="currentForumThread" name="messageListForm" property="oneModel" />
<bean:define id="forum" name="currentForumThread" property="forum" />
<bean:define id="title" name="currentForumThread" property="name" />
<jsp:include page="../common/IncludeTop.jsp" flush="true">
<jsp:param name="title" value="<%=title%>" />
</jsp:include>
<!-- 导航区 -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="99%">
<%@include file="nav.jsp"%>
<br>
</td>
<td valign="top" align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/post.gif" width="17" height="17" alt="Click to start a new topic" border="0"></td>
<td nowrap><font class=p2 face="verdana,arial,sans-serif">
<a href="<html:rewrite page="/message/messageAction.shtml" paramId="forumId" paramName="currentForumThread" paramProperty="forum.forumId"
/>&messageId=<bean:write name="currentForumThread" property="rootMessage.messageId"
/>&threadId=<bean:write name="currentForumThread" property="threadId"/>" class="forum">
回复本主题</a>
</font>
</td>
<td><img src="images/blank.gif" width="10" height="1" border="0"></td>
<td><img src="images/search.gif" width="17" height="17" alt="在此论坛中搜索消息" border="0"></td>
<td nowrap><font class=p2 face="verdana,arial,sans-serif">
<a href="search.jsp?forums=16" title="在此论坛中搜索消息">搜索论坛</a>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 上下主题 start -->
<table cellpadding="0" cellspacing="2" border="0" width="100%" align="center">
<tr><td colspan="3"><img src="images/blank.gif" width="1" height="5" border="0"></td></tr>
<tr>
<td width="1%" nowrap>
<logic:iterate id="forumThread" name="threadPrevNexListForm" property="list" offset="0" length="1">
<a href="<html:rewrite page="/message/messageList.shtml" paramId="forumId" paramName="forumThread" paramProperty="forum.forumId"
/>&threadId=<bean:write name="forumThread" property="threadId"/>"
title="<bean:write name="forumThread" property="name"/>" class="forum">
<img src="images/prev.gif" width="10" height="10" hspace="2" alt="<bean:write name="forumThread" property="name"/>" border="0">
<font class=p2 face="verdana,arial,sans-serif">
上一主题
</font>
</a>
</logic:iterate>
</td>
<td width="98%" align="center">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td><a href="forum.jsp?forum=16&thRange=30"><img src="images/back_to.gif" width="12" height="12" alt="Go back to the topic listing" border="0"></a></td>
<td nowrap><font class=p2 face="verdana,arial,sans-serif">
<a href="forum.jsp?forum=16&thRange=30" title="返回主题列表">返回主题列表</a>
</font>
</td>
</tr>
</table>
</td>
<td width="1%" nowrap>
<logic:iterate offset="2" length="1" id="forumThread" name="threadPrevNexListForm" property="list" >
<a href="<html:rewrite page="/message/messageList.shtml" paramId="forumId" paramName="forumThread" paramProperty="forum.forumId"
/>&threadId=<bean:write name="forumThread" property="threadId"/>"
title="<bean:write name="forumThread" property="name"/>" class="forum">
<img src="images/next.gif" width="10" height="10" hspace="2" alt="<bean:write name="forumThread" property="name"/>" border="0">
<font class=p2 face="verdana,arial,sans-serif">
下一主题
</font>
</a>
</logic:iterate>
</td>
</tr>
</table>
<!-- 上下主题 结束 -->
<table bgcolor="#868602"
cellpadding="3" cellspacing="0" border="0" width="100%" align="center">
<tr><td width="400">
<font class=p2 face="arial,sans-serif" color="#ffffff">
这个主题有 <b><bean:write name="messageListForm" property="allCount"/></b> 回复 / <b>2</b> 页 [
<MultiPages:pager actionFormName="messageListForm" page="/message/messageList.shtml">
<MultiPages:prev><img src="/images/prev.gif" width="10" height="10" hspace="2" border="0" alt="上页"></MultiPages:prev>
<MultiPages:index />
<MultiPages:next><img src="/images/next.gif" width="10" height="10" hspace="2" border="0" alt="下页"></MultiPages:next>
</MultiPages:pager>
]
</font>
</td><td >
</td>
</tr>
</table>
<logic:iterate id="forumMessage" name="messageListForm" property="list" >
<a name="<bean:write name="forumMessage" property="messageId"/>"></a>
<table bgcolor="#cccccc"
cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td>
<table bgcolor="#cccccc"
cellpadding="4" cellspacing="1" border="0" width="100%">
<tr bgcolor="#E3E7F0">
<td width="1%" rowspan="2" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr><td>
<font class=p2 face="arial,sans-serif"
color="#000000">
<html:link page="/account/profile.shtml" paramId="userId" paramName="forumMessage" paramProperty="account.userId">
<b><bean:write name="forumMessage" property="account.username"/></b>
</html:link>
</font>
<font class=p2 face="arial,sans-serif"
color="#000000">
<br><br>
<html:link page="/account/userMessagesList.shtml" paramId="userId" paramName="forumMessage" paramProperty="account.userId" target="_blank">
发表文章: <bean:write name="forumMessage" property="account.messageCount"/></a>
</html:link>
<br>
注册时间: <bean:write name="forumMessage" property="account.creationDate"/>
<br><br>
</font>
</td>
</tr>
</table>
</td>
<td width="97%">
<font size="-1" face="arial,sans-serif"
color="#000000">
<b><bean:write name="forumMessage" property="subject"/></b>
</font>
</td>
<td width="1%" nowrap>
<font class=p2 face="arial,sans-serif"
color="#000000">
发表时间: <bean:write name="forumMessage" property="creationDate"/>
</font>
</td>
<td width="1%" nowrap align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td>
<a href="<html:rewrite page="/message/messageAction.shtml" paramId="forumId" paramName="forumMessage" paramProperty="forum.forumId"
/>&messageId=<bean:write name="forumMessage" property="messageId"
/>&threadId=<bean:write name="forumMessage" property="forumThread.threadId"/>"
><img src="images/reply.gif" width="17" height="17" alt="回复此消息" hspace="3" border="0"
>
<font size="-1" face="arial,sans-serif">
回复
</font>
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#E3E7F0">
<td width="99%" colspan="3" valign="top">
<font size="-1" face="arial,sans-serif"
color="#000000">
<bean:write name="forumMessage" property="body"/>
</font>
<p>
<div id=vgad2 ></div>
</td>
</tr>
</table>
</td></tr>
</table>
</logic:iterate>
<%@include file="../common/IncludeBottom.jsp"%></p></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -