📄 topic.jsp
字号:
<!--topic.jsp-->
<%@page language="java" contentType="text/html; charset=GB2312" import="lightningboard.util.*,lightningboard.bean.*,java.util.Iterator"%>
<jsp:useBean id="topicBean" scope="request" class="lightningboard.bean.TopicBean"/>
<%@include file="inc/header.jsp" %>
<!--bar-->
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5">
<tr>
<td>
<b><IMG SRC="img/lb_icon.gif" WIDTH="16" HEIGHT="16" BORDER=0 valign="middle"> <A HREF="home.do"><%=FORUM_NAME%></A> > <A HREF="forum.do?f_id=<%=topicBean.getF_id()%>"><%=topicBean.getF_name()%></A> > <%=StringUtil.escapeHTMLTags(topicBean.getT_name())%></b>
</td>
</tr>
</table>
<!--post bar -->
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5">
<tr>
<td>
Moderator:<A HREF="user.do?u_id=<%=topicBean.getF_u_id()%>"><%=topicBean.getU_name()%></A>
</td>
<td align="right">
<A HREF="post.do?f_id=<%=topicBean.getF_id()%>"><IMG SRC="img/post.gif" WIDTH="110" HEIGHT="26" BORDER=0 ALT="post"></A>
<A HREF="post.do?t_id=<%=topicBean.getT_id()%>&reply=true"><IMG SRC="img/reply.gif" WIDTH="98" HEIGHT="22" BORDER=0 ALT="reply"></A> </td>
</tr>
</table>
<!--messages-->
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5" bgcolor="<%=TABLE_BGCOLOR%>">
<tr bgcolor="<%=TH_BGCOLOR%>">
<td width="20%">
<font color="<%=TH_TEXT_COLOR%>">Author:</font>
</td>
<td >
<% if (topicBean.getT_order()>0&&topicBean.getT_locked()>0){%>
<IMG SRC="img/lockedSticky.gif" WIDTH="16" HEIGHT="16" BORDER=0 >
<% }else if (topicBean.getT_order()>0){%>
<IMG SRC="img/sticky.gif" WIDTH="16" HEIGHT="16" BORDER=0 >
<% }else if (topicBean.getT_locked()>0){%>
<IMG SRC="img/locked.gif" WIDTH="16" HEIGHT="16" BORDER=0 >
<%}else{%>
<%if (topicBean.getT_replies()>20){%>
<IMG SRC="img/hotTopic.gif" WIDTH="16" HEIGHT="16" BORDER=0 >
<%}else{%>
<IMG SRC="img/topic.gif" WIDTH="16" HEIGHT="16" BORDER=0 >
<%}%>
<%}%>
<font color="<%=TH_TEXT_COLOR%>">Subject: <%=StringUtil.escapeHTMLTags(topicBean.getT_name())%> (Replies:<%=topicBean.getT_replies()%>)</font>
</td>
</tr>
<!--loop begin-->
<%
int i=1;
String[] bgcolors={TD_BGCOLOR,TD_BGCOLOR2};
Iterator messages=topicBean.getMessages().iterator();
while(messages.hasNext()){
Message message=(Message)messages.next();
i=1-i;
%>
<tr>
<td bgcolor="<%=bgcolors[i]%>" valign="top" cellpadding="5">
<%=StringUtil.escapeHTMLTags(message.getU_name())%><BR>
<%=message.getR_name()%><BR>
<img name="avatar" src="img/avatars/<%=message.getU_avatar_id()%>.gif" width=36 height=36 border=0 ><BR>
Posts: <%=message.getU_post()%><BR>
<!-- Location: <BR>- --><%=StringUtil.escapeHTMLTags(message.getU_address())%><BR>
<!-- Registered: <BR>- --><%=DateTimeUtil.shortFmt(message.getU_regtime())%>
</td>
<td bgcolor="<%=bgcolors[i]%>" >
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td >
<%if(message.getM_iconid()>0){%><img src="img/icons/<%=message.getM_iconid()%>.gif" width=15 height=15 border="0"><%}%>
<%=DateTimeUtil.shortFmt(message.getM_time())%>
</td>
<td align="right">
<!-- <%=message.getM_id()%> -->
<IMG SRC="img/m_edit.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
<IMG SRC="img/m_quote.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
</td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="#999999">
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<BR>
<p>
<%=StringUtil.dspHtml(message.getM_content())%>
</p>
------------------------------------------------------------------<BR>
<%=StringUtil.dspHtml(message.getU_sign())%><BR><BR>
</td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="#999999">
</td>
</tr>
<tr>
<td colspan="2" valign="bottom" >
<A HREF="user.do?u_id=<%=message.getM_u_id()%>"><IMG SRC="img/m_profile.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT=""></A>
<IMG SRC="img/m_pm.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
<IMG SRC="img/m_email.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
<IMG SRC="img/m_www.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
<IMG SRC="img/m_search.gif" WIDTH="55" HEIGHT="17" BORDER="0" ALT="">
</td>
</tr>
</table>
</td>
</tr>
<%
}
%>
<!--loop end-->
<TR>
<TD colspan="2" bgcolor="#F3F3F3">
<!--split page-->
<%
int start=topicBean.getStart();
int range=topicBean.getRange();
int count=topicBean.getCount();
%>
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="20%">
<%if(start>range){%><A HREF="topic.do?t_id=<%=topicBean.getT_id()%>&start=<%=start-range%>">PREV</A><%}else{%>PREV<%}%>
</TD>
<TD align="center">
Topcis: <%=count%> RPP: <%=range%> Start: <%=start%>
</TD>
<TD width="20%" ALIGN="right">
<%if(start+range<=count){%><A HREF="topic.do?t_id=<%=topicBean.getT_id()%>&start=<%=start+range%>">NEXT</A><%}else{%>NEXT<%}%>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</table>
<BR>
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5">
<form method="post" action="forum.do">
<tr>
<td>
Search:
<INPUT TYPE="text" NAME="keyword" SIZE="10" MAXLENGTH="10" VALUE="">
<INPUT TYPE="submit" VALUE="GO">
</td>
<td align="right" valign="top">
Forum Jump:
<select name="f_id">
<%
java.util.Map forumMap=(java.util.Map)topicBean.getForumMap();
java.util.Set forunSet=forumMap.entrySet();
for (Iterator it = forunSet.iterator(); it.hasNext();) {
java.util.Map.Entry me = (java.util.Map.Entry)it.next();
String f_idJ=(String)me.getKey();
int f_idJump=StringUtil.parseInt(f_idJ);
String f_nameJump=(String)me.getValue();
%>
<option value="<%=f_idJump%>" <%if (f_idJump==topicBean.getF_id()){out.print("selected");}%>><%=f_nameJump%></option>
<%}%>
</select>
<input type="submit" value="GO">
</td>
</tr>
</form>
</table>
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5">
<tr>
<td>
<IMG SRC="img/topic.gif" WIDTH="16" HEIGHT="16" BORDER=0 > Topic <IMG SRC="img/hotTopic.gif" WIDTH="16" HEIGHT="16" BORDER=0 > Hot Topic (More than 20 replies)<BR>
<IMG SRC="img/sticky.gif" WIDTH="16" HEIGHT="16" BORDER=0 > Sticky Topic <IMG SRC="img/locked.gif" WIDTH="16" HEIGHT="16" BORDER=0 > Locked Topic<BR>
<IMG SRC="img/lockedSticky.gif" WIDTH="16" HEIGHT="16" BORDER=0 > Locked Sticky Topic
</td>
</tr>
</table>
<%@include file="inc/footer.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -