⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.jsp

📁 BBS论坛系统由JAVA和JSP实现
💻 JSP
📖 第 1 页 / 共 2 页
字号:

<TABLE style=color:"<%=tableContentColor%>" border=1 cellPadding=0 cellSpacing=0 width=95% align=center bordercolor="<%=tableBackColor%>">
				<TBODY><TR align=middle>
				<TD bgColor="<%=aTableBodyColor%>" width=32 height=27>

<%
if(!forumTopic.getLockTopic()&&!forumTopic.getIsTop()&&!forumTopic.getIsVote()&&!forumTopic.getIsBest()&&!(forumTopic.getChildNum()>10))
	out.println( "<img src=\"pic//folder.gif\" alt=开放主题>");
else if(forumTopic.getIsVote())
	out.println("<img src=\"pic//closedb.gif\" alt=投票贴子>");
else if(forumTopic.getIsTop())
	out.println("<img src=\"pic//istop.gif\" alt=固顶主题>");
else if(forumTopic.getIsBest())
	out.println("<img src=\"pic//isbest.gif\" alt=精华帖子>");
else if(forumTopic.getChildNum()>10)
	out.println("<img src=\"pic//hotfolder.gif\" alt=热门主题>");
else if(forumTopic.getLockTopic())
	out.println("<img src=\"pic//lockfolder.gif\" alt=本主题已锁定>");
else
	out.println("<img src=\"pic//folder.gif\" alt=开放主题>");

%>
	</TD>
	<TD align=left bgcolor="<%=tableBodyColor%>" width=* onmouseover=javascript:this.bgColor='<%=aTableBodyColor%>' onmouseout=javascript:this.bgColor='<%=tableBodyColor%>'>
<%
if (forumTopic.getChildNum()==0)
	out.println("<img src='"+picURL +"nofollow.gif' id='followImg"+forumTopic.getRootID()+"'>");
else
	out.println("<img loaded=no src='"+picURL +"plus.gif' id='followImg"+forumTopic.getRootID()+"'   style='cursor:hand;'  onclick='loadThreadFollow("+forumTopic.getRootID()+","+forumTopic.getAnnounceID()+","+forumID+")' title=展开贴子列表>");
	

	
out.println("<a href=\"dispbbs.jsp?forumID="+forumID+"&rootID="+forumTopic.getRootID()+"&announceID="+forumTopic.getAnnounceID()+"\" title=\"《"+ forumTopic.getNoFilterTopic()+"》<br>作者:"+forumTopic.getUserName()+"<br>发表于"+forumTopic.getDateAndTime()+"<br>最后跟贴:"+response.encodeURL(forumTopic.getFollowMSG())+"...\">");
out.println(forumTopic.getNoFilterTopic());
out.println("</a>");

%>	</TD>
	<TD bgColor="<%=aTableBodyColor%>" width=80><a href=javascript:openUser('<%=forumTopic.getUserName()%>')><%=forumTopic.getUserName()%></a></TD>
	<TD bgColor="<%=tableBodyColor%>" width=64>
	<font color="<%=tableContentColor%>"><%=forumTopic.getChildNum()%>/<%=forumTopic.getHits()%></font>
	</TD>
	<TD align=left bgColor="<%=aTableBodyColor%>" width=210>
	&nbsp;<a href=dispbbs.jsp?forumID=<%=forumID%>&rootID=<%=forumTopic.getRootID()%>&id=<%=forumTopic.getTimes()%>>
						<%=forumTopic.getFollowDateAndTime()%>
						</a>&nbsp;<font color=#990000>|</font>&nbsp;
		
		<a href=javascript:openUser('<%=forumTopic.getFollowUser()%>')><%=forumTopic.getFollowUser()%></a>

	</TD></TR>
	<tr style=display:none id='follow<%=forumTopic.getAnnounceID()%>'><td colspan=5 id='followTd<%=forumTopic.getAnnounceID()%>' style=padding:0px><div style='width:240px;margin-left:18px;border:1px solid black;background-color:lightyellow;color:black;padding:2px' onclick=loadThreadFollow(<%=forumTopic.getAnnounceID()%>)>正在读取关于本主题的跟贴,请稍侯……</div></td></tr>
</TBODY></TABLE>
<%

		}
	}
	catch(ForumTopicNotFoundException e)
	{
	e.printStackTrace();
	out.println("没有帖子!");
	}
	int forumTopicNum=theForum.getForumTopicNum();
	int totalPage=forumTopicNum/perPage+1;
	%>
<table border=0 cellpadding=0 cellspacing=3 width=95% align=center >
	<form method=post action=list.jsp name=frmList2 >
		<input type=hidden name=selTimeLimit value="">
	<tr>
		<td valign=middle><span class=smallFont >页次:<strong><%=Page%></strong>/<strong><%=totalPage%></strong>页 每页<strong><%=perPage%></strong> 主题数<strong><%=forumTopicNum%></strong></td><td valign=middle><div align=right ><p>分页:
	<%
	if (startPage>10) 
	out.println("<a href='list.jsp?forumID="+forumID+"&Page="+(startPage-1)+"' >[<<]</a>");
	
	for(i=startPage;i<startPage+10;i++){
		if (i==Page)
		   	out.println("<font color=gray>["+i+"]</font> ");
	  	else
	      		out.println("<a href='list.jsp?forumID="+forumID+"&Page="+i+"' >["+i+"]</a>   ");
		   
		if(i==totalPage) break;
	}
	if(i<totalPage)
		out.println("<a href='list.jsp?forumID="+forumID+"&Page="+i+"'>[>>]</a>   ");

		out.println("<span class=smallFont >转到:<input type=text name=Page size=3 maxlength=10  value='"+ Page+"'><input type='submit' value=Go   id=button1 name=button1 ></span></p>"+     
					"</div></td></tr>"+
					"<input type=hidden name=forumID value='"+ forumID +"'>"+
					"</form></table>");

%>


<table border=0 cellpadding=0 cellspacing=3 width=95% align=center>
			<tr>
			<td valign=middle nowrap> <div align=right>
			<select  onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value=''>论坛跳转至...</option>
<%
	try{
		Vector gateWayVector=GateWayFactory.getGateWays();
		for( i=0;i<gateWayVector.size();i++)
		{
    			GateWay gateWay=(GateWay)gateWayVector.get(i);
    			int gateWayID=gateWay.getGateWayID();
    			String gateWayName=gateWay.getGateWayName();
				out.println("<option style=BACKGROUND-COLOR:#99ccff>╋ "+gateWayName+"</option>");
				try{
					Vector forumVector=ForumFactory.getForums(gateWayID);
					for(int j=0;j<forumVector.size();j++){
						Forum theListForum=(Forum)forumVector.get(j);
						out.println("<option value=\"list.jsp?forumID="+theListForum.getForumID()+"\"> ├"+theListForum.getForumType()+"</option>");
					}
				}
				catch(Exception e){
					e.printStackTrace();
				}
		}
	}
	catch(Exception e){
		e.printStackTrace();
	}
	%>
			

	
	</select><div></td></tr></form></table>



<table cellspacing=0 cellpadding=0 width=95% align=center bgcolor="<%=tableBackColor%>" border=0>
				<tr><td><table cellspacing=1 cellpadding=3 width=100% border=0><tr bgcolor="<%=tableTitleColor%>">
				<td width=80% ><font color="<%=tableFontColor%>"><b> -=> <%=forumName%>图例</b></font></td>
				<td noWrap width=20% align=right><font color="<%=tableFontColor%>">所有时间均为 - 北京时间 &nbsp;</td>
				</tr><tr><td colspan=3 bgcolor="<%= tableBodyColor%>">
				<table cellspacing=4 cellpadding=0 width=92% border=0 align=center>
				<tr><td><img src=pic/folder.gif> 开放的主题</td>
				<td><img src=pic/hotfolder.gif> 回复超过10贴</td>
				<td><img src=pic/lockfolder.gif> 锁定的主题</td>
				<td><img src=pic/istop.gif> 固定顶端的主题 </td>
				<td> <img src=pic/isbest.gif> 精华帖子 </td>
				</tr><tr><td width=100% colspan=5>
<%
if (theForum.getStrAllowHTML())
	out.println( "HTML标签:<font color=#003399>ON</font>.");
else
	out.println( "HTML标签:<font color=#990000>OFF</font>.");


if (!theForum.getStrAllowForumCode())
	out.println( " UBB标签:<font color=#990000>OFF</font>.");
else
	out.println( " UBB标签:<font color=#003399>ON</font>.");


if (!theForum.getStrIcons())
	out.println( " 贴图标签:<font color=#990000>OFF</font>.");
else
	out.println( " 贴图标签:<font color=#003399>ON</font>.");


if (!theForum.getStrFlash())
	out.println( " Flash标签:<font color=#990000>OFF</font>.");
else
	out.println( " Flash标签:<font color=#003399>ON</font>.");


if (!theForum.getStrIMGInPosts())
	out.println( " 表情字符转换:<font color=#990000>OFF</font>.");
else
	out.println( " 表情字符转换:<font color=#003399>ON</font>.");


if (!"1".equals(uploadFlag)) 
	out.println( " 头像上传:<font color=#990000>OFF</font>.");
else
	out.println( " 头像上传:<font color=#003399>ON</font>.");


if (!"1".equals(titleFlag))
	out.println( " 用户头衔:<font color=#990000>OFF</font>.");
else
	out.println( " 用户头衔:<font color=#003399>ON</font>.");

%>
</td></tr></table></td></tr></table></td></tr></table><BR>
	

<% 	}
	catch(ForumNotFoundException e){
		e.printStackTrace();
	}
%>
<%@ include file="foot.jsp"%>
<iframe width=0 height=0 src="" id="hiddenframe"></iframe>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -