📄 jinghua.jsp
字号:
<table cellpadding=0 cellspacing=0 width=<%=tablewidth%> align=center>
<tr>
<td>
<%
try {
ForumXzb forumXzb=new ForumXzb();
forumXzb.getForumXzb(forumID);
int xzbID=forumXzb.getXzbID();
String xzbTitle=forumXzb.getXzbTitle(),
xzbAuthor=forumXzb.getXzbAuthor();
if(xzbID!=0) {
%>
小字报: <img src=images/icon.gif width=14 height=12> <a href="javascript:openScript('xzb.jsp?action=view&forumID=<%=forumID%>&id=<%=xzbID%>',420,320)" title="<%=xzbTitle%>"><%=xzbTitle%></a> -- <a href="javascript:O8(<%=xzbAuthor%>)"><%=xzbAuthor%></a>
<%
}
}
catch(Exception exception) {
}
%>
</td>
<td align=right width=*>
<img src=images/icon.gif width=14 height=12>
<a href=forum.jsp?forumID=<%=forumID%>><font color=<%=fonthighlight%>>进入论坛</font></a>
<img src=images/icon.gif width=14 height=12>
<a href=lookstyles.jsp?forumID=<%=forumID%>>本版配色</a>
</td>
<td align=center width=4></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=<%=tablewidth%> height=24 bordercolor=<%=tablebordercolor%> border=1 align=center>
<form name=changepages>
<tr background=images/<%=menubackpic%>>
<td bgcolor=<%=titlecolor%> width=32 align=center><font color=<%=titlefontcolor%>><b>状态</b></td>
<%
if(!forumListType.equals("")) {
%>
<td bgcolor=<%=titlecolor%> width=64 align=center><font color=<%=titlefontcolor%>><b>分类</b></td>
<%
}
%>
<td bgcolor=<%=titlecolor%> width=* align=center><font color=<%=titlefontcolor%>><b>主 题</b> (点心情符为新闻方式阅读)</td>
<td bgcolor=<%=titlecolor%> align=center width=80><font color=<%=titlefontcolor%>><b>作 者</b></td>
<td bgcolor=<%=titlecolor%> align=center width=32><font color=<%=titlefontcolor%>><b>回复</b></td>
<td bgcolor=<%=titlecolor%> align=center width=32><font color=<%=titlefontcolor%>><b>点击</b></td>
<td bgcolor=<%=titlecolor%> width=195 align=center><font color=<%=titlefontcolor%>><b> 最后更新 | 最后回复人</b></td>
</tr>
</table>
<%
int allTopicNumber=count,
allReplyNumber=forumListFactory.getForumListReplyNumber("");
ArrayList forumJingHuaListVector=forumListFactory.getForumJingHuaListFactory(forumID,p,e);
for(int i=0;i<forumJingHuaListVector.size();i++) {
ForumList forumList=(ForumList)forumJingHuaListVector.get(i);
if(forumList.getForumID()!=forumID) {
forumID=forumList.getForumID();
forumListFactory.setForumID(forumID);
}
boolean isAuthor=false;
int postID=forumList.getPostID(),
postTopic=forumList.getPostTopic(),
postAuthorID=forumList.getPostAuthorID(),
postClick=forumList.getPostClick(),
postIntervalNow=forumList.getPostIntervalNow(),
lastPostLength=forumList.getLastPostLength(),
tempForumID=forumList.getTempForumID();
String postAuthor=forumList.getPostAuthor(),
postTitle=forumList.getPostTitle(),
postTitleClue=forumList.getPostTitleClue(),
postAt=forumList.getPostAt(),
lastPostAt=forumList.getLastPostAt(),
postIsVote=forumList.getPostIsVote(),
postTitleIcon=forumList.getPostTitleIcon(),
postTop=forumList.getPostTop(),
postLock=forumList.getPostLock(),
view=forumList.getView(),
forumPostType=forumList.getForumType();
String lastPostClue="主题:"+postTitleClue+"\n作者:"+postAuthor+"\n大小:共 "+lastPostLength+" 字节";
if(!postAuthor.equals("") && !postAuthor.equals("客人") && postAuthor.equals(cookieName))
isAuthor=true;
else
isAuthor=false;
int postReply=0,
voteNumber=0;
String postIcon="",
lastPostAuthor="",
sortPostIconShow="1",
lastPostTitleIcon="";
postReply=forumListFactory.getPostReply(postTopic);
if(postReply>0) {
forumListFactory.getLastPostAuthor(postTopic);
lastPostAuthor=forumListFactory.getLastPostAuthor();
lastPostAt=forumListFactory.getLastPostAt();
lastPostTitleIcon=forumListFactory.getLastPostTitleIcon();
}
if(postIsVote.equals("0")) {
postIcon="topicnonew.gif";
if(postTop.equals("1"))
postIcon="locktop.gif";
else if(postLock.equals("1"))
postIcon="topiclocked0.gif";
if(postReply>0) {
//是否有新帖
int postHaveNewNumber=0;
if(!cookieMode.equals("0")) {
postHaveNewNumber=forumListFactory.getPostHaveNewNumber(postTopic, activeTime);
if(postHaveNewNumber!=0 && !postTop.equals("1") && !postLock.equals("1"))
postIcon="topicnew0.gif";
}
//是否升级为热门帖
if(postReply>=hotTopicMark) {
forumListFactory.setHotPost(postID);
if(postHaveNewNumber>0)
postIcon="topichot0.gif";
else
postIcon="topichotnonew.gif";
}
}
}
else {
voteNumber=forumListFactory.getVoteNumber(postID);
postIcon="closedb.gif";
//是否升级到热门投票帖
if(voteNumber>=hotPollMark) {
forumListFactory.setHotPost(postID);
postIcon="closedbhot.gif";
}
if(postTop.equals("1"))
postIcon="locktop.gif";
else if(postLock.equals("1"))
postIcon="closedb1.gif";
}
%>
<table cellspacing=0 width=<%=tablewidth%> bordercolor=<%=tablebordercolor%> border=1 align=center>
<tr>
<td align=center width=30 bgcolor=<%=forumcolorone%>>
<img src=images/<%=postIcon%> width=14 border=0>
</td>
<%
if(!forumListType.equals("")) {
%>
<td align=center width=62 bgcolor=<%=forumcolorone%>>
<%
out.println(!forumPostType.equals("")?forumPostType:"暂无属性");
%>
</td>
<%
}
%>
<td width=* class=dp bgColor=<%=forumcolortwo%> onmouseover="this.bgColor='<%=forumcolorone%>';" onmouseout="this.bgColor='<%=forumcolortwo%>';">
<img src=posticons/<%if(sortPostIconShow.equals("1") && !lastPostTitleIcon.equals("")) out.print(lastPostTitleIcon);else out.print(postTitleIcon);%> width=15 height=15 border=0 align=absmiddle>
<span id=forum><a href=topic.jsp?forumID=<%=forumID%>&topic=<%=postTopic%> TITLE="<%=lastPostClue%>"><%=postTitle%></a>
<%
if(newMarkTime>0 && postIntervalNow<newMarkTime)
out.println("<img src=images/"+new_BLogo+" absmiddle>");
else if(postIntervalNow<24)
out.println("<img src=images/"+new_BLogo+" absmiddle>");
if(isAdmin>0) {
%>
<DIV ALIGN=Right><font color=<%=titlecolor%>><%if(postIsVote.equals("0")) {%>|<a href=postings.jsp?action=canceljinghua&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>取消精华</font></a><%}%>|<a href=postings.jsp?action=locktop&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>固顶</font></a>|<a href=postings.jsp?action=unlocktop&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>消顶</font></a>|<a href=postings.jsp?action=puttop&forumID=<%=forumID%>&topic=<%=postTopic%>&checked=yes><font color=<%=titlecolor%>>提前</font></a>|<a href=postings.jsp?action=lock&forumID=<%=forumID%>&topic=<%=postTopic%>&checked=yes><font color=<%=titlecolor%>>锁定</font></a>|<a href=postings.jsp?action=unlock&forumID=<%=forumID%>&topic=<%=postTopic%>&checked=yes><font color=<%=titlecolor%>>解锁</font></a>|<a href=postings.jsp?action=delete&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>删除</font></a><%if(postIsVote.equals("0")) {%>|<a href=postings.jsp?action=movetopic&forumID=<%=forumID%>&topic=<%=postTopic%>&checked=yes><font color=<%=titlecolor%>>移动</font></a><%}if(!forumListType.equals("")) {%>|<a href=postings.jsp?action=changekeyword&forumID=<%=forumID%>&topic=<%=postTopic%>&forumPostType=<%=forumPostType%>&checked=yes><font color=<%=titlecolor%>>改类</font></a><%}%>|</font> </DIV>
<%
}
else if(isAuthor && arrowUserDel.equals("1")) {
%>
<DIV ALIGN=Right><font color=<%=titlecolor%>>| <a href=postings.jsp?action=lock&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>锁定此贴</font></a> | <a href=postings.jsp?action=unlock&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>解锁此贴</font></a> | <a href=postings.jsp?action=delete&forumID=<%=forumID%>&topic=<%=postTopic%>><font color=<%=titlecolor%>>删除此贴</font></a> |</font> </DIV>
<%
}
%>
</span>
</td>
<td align=center width=78 bgcolor=<%=forumcolorone%> title="发布时间: <%=postAt%>">
<a href=javascript:O8('<%=postAuthor%>')><%=postAuthor%></a>
</td>
<%
if(postIsVote.equals("0")) {
%>
<td bgcolor=<%=forumcolortwo%> align=center width=30><%=postReply%></td>
<td bgcolor=<%=forumcolortwo%> align=center width=30><%=postClick%></td>
<%
}
else {
out.println("<td bgcolor="+forumcolortwo+" align=center width=63 rowspan=2>共"+voteNumber+"票</td>");
}
%>
<td width=193 bgcolor=<%=forumcolorone%>>
<%=lastPostAt%>
<font color=<%=fonthighlight%>> | </font><%if(postReply==0) out.println("--------");else out.println("<a href=javascript:O8('"+lastPostAuthor+"')>"+lastPostAuthor+"</a>");%>
</td>
</tr>
</table>
<%
//这里作用,如果最后一篇帖子是all属性,可能有换页时出现问题,所以,把forumID改成原来的ID。
if(view.equals("all") && forumID!=tempForumID) {
forumID=tempForumID;
forumListFactory.setForumID(forumID);
}
}
%>
<table cellpadding=0 cellspacing=2 width=<%=tablewidth%> align=center>
<tr height=4><td></td></tr>
<tr>
<td>
<font color=<%=menufontcolor%>>
共<b><%=totalpage%></b>页
<b><%=allTopicNumber%></b>篇主题 <b><%=allReplyNumber%></b>篇回复
当前第<b><%out.print(from+"-"+to);%></b>个
第<b><%=pages%></b>页
</font>
</td>
<%
if(totalpage>1) {
%>
<td>
<A href=jinghua.jsp?forumID=<%=forumID%>&pages=1><IMG alt=首页 border=0 src=images/first.gif width=11 height=10></A>
<A href=jinghua.jsp?forumID=<%=forumID%>&pages=<%=(pages<2)?pages:(pages-1)%>><IMG alt=上一页 border=0 src=images/previous.gif width=11 height=10></A>
<A href=jinghua.jsp?forumID=<%=forumID%>&pages=<%=(pages>totalpage-1)?totalpage:(pages+1)%>><IMG alt=下一页 border=0 src=images/next.gif width=11 height=10></A>
<A href=jinghua.jsp?forumID=<%=forumID%>&pages=<%=totalpage%>><IMG alt=末页 border=0 src=images/last.gif width=11 height=10></A>
</td>
<td>
<SELECT name=pages size=1 onchange="changePages()">
<%
int pagesFrom=1,pagesTo=totalpage;
if(pages<=5 && totalpage-pages>5)
pagesTo=totalpage>=10?10:totalpage;
else if(pages>5 && totalpage-pages>5) {
pagesFrom=pages-4;
pagesTo=pages+5;
}
else if(pages>5 && totalpage-pages<=5)
pagesFrom=totalpage>=10?totalpage-9:1;
if(pagesFrom!=1)
out.println("<OPTION value='jinghua.jsp?forumID="+forumID+"&pages="+pagesFrom+"'>--more--</OPTION>");
for(int i=pagesFrom;i<=pagesTo;i++) {
if(i==pages) {
out.println("<OPTION value='jinghua.jsp?forumID="+forumID+"&pages="+i+"' selected>第"+i+"页</OPTION>");
}
else
out.println("<OPTION value='jinghua.jsp?forumID="+forumID+"&pages="+i+"'>第"+i+"页</OPTION>");
}
if(pagesTo!=totalpage)
out.println("<OPTION value='jinghua.jsp?forumID="+forumID+"&pages="+pagesTo+"'>--more--</OPTION>");
%>
</SELECT>
</td>
<%
}
%>
<td></td>
</form>
<td align=right>
<form action="db.jsp" method="post" name="jump">
<select name="jumpto" onchange="menu()" class=jumpto>
<option value="index.jsp">跳转论坛至...</option>
<%
ArrayList catalogVector=CatalogFactory.getCatalogFactory();
for(int i=0;i<catalogVector.size();i++) {
Catalog catalog=(Catalog)catalogVector.get(i);
out.println("<option value='index.jsp' style=background-color:"+titlecolor+">╋"+catalog.getCatalogName()+"</option>");
ArrayList forumVector=ForumFactory.getForumFactory(catalog.getCatalogID());
for(int j=0;j<forumVector.size();j++) {
Forum forum=(Forum)forumVector.get(j);
out.println("<option value='forum.jsp?forumID="+forum.getForumID()+"'> ├"+forum.getForumName()+"</option>");
}
}
%>
</select>
</td>
</form>
</tr>
</table>
<br>
<%
if(dispview.equals("1")) {
%>
<%@ include file="include/boardicon.jsp"%>
<%
}
}
%>
<br>
<%@ include file="include/foot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -