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

📄 home.jsp

📁 雷霆论坛是用J2EE技术开发的功能强大、扩展性强、易于定制
💻 JSP
字号:
<!--home.jsp-->
<%@page language="java" contentType="text/html; charset=GB2312" import="lightningboard.util.*,lightningboard.bean.*,java.util.Iterator"%>
<jsp:useBean id="homeBean" scope="request" class="lightningboard.bean.HomeBean"/>
<%@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">&nbsp;<%=FORUM_NAME%></b>
		</td>
	</tr>
</table>

<!--login bar-->
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5" >
	<tr>
		<td align="left">
			<%
			LoginBean loginBean=(LoginBean)session.getAttribute("loginBean");
			if (loginBean==null){
			%>
			Welcome, Guest. Please <A HREF="login.jsp">Login</A> or <A HREF="register.jsp">Register</A>.
			<%
			}else{
			%>
			Welcome, <%=loginBean.getU_name()%>. <A HREF="userEdit.do">Edit Profile</A> / <A HREF="logout.do">Logout</A>
			<%
			}
			%>
		</td>
		<td align="right">
			Members: <%=homeBean.getUserSum()%><BR>
			Topics: <%=homeBean.getTopicSum()%>  |  Messages: <%=homeBean.getMessageSum()%>
		</td>
	</tr>
</table>

<!--forums-->
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5" bgcolor="<%=TABLE_BGCOLOR%>">
  <tr bgcolor="<%=TH_BGCOLOR%>">
	 <td nowrap><font color="<%=TH_TEXT_COLOR%>">::</font></td>
	 <td width="80%" ><font color="<%=TH_TEXT_COLOR%>">Forum</font></td>
	 <td nowrap><font color="<%=TH_TEXT_COLOR%>">Topics</font></td>
	 <td nowrap><font color="<%=TH_TEXT_COLOR%>">Messsages</font></td>
	 <td nowrap><font color="<%=TH_TEXT_COLOR%>">Last Post</font></td>
	 <td nowrap width="20%"><font color="<%=TH_TEXT_COLOR%>">Moderator</font></td>
  </tr>
  <!--loop begin-->
<%
  Iterator forums=homeBean.getForums().iterator();
                        while(forums.hasNext()){
                          Forum forum=(Forum)forums.next();
%>
<tr>
	<td  bgcolor="<%=TD_BGCOLOR%>">:.</td>
	<td  bgcolor="<%=TD_BGCOLOR2%>">
		<A HREF="forum.do?f_id=<%=forum.getF_id()%>"><%=forum.getF_name()%></A><BR>
		<%=forum.getF_info()%>
	</td>
	<td  bgcolor="<%=TD_BGCOLOR%>"><%=forum.getF_topics()%></td>
	<td  bgcolor="<%=TD_BGCOLOR2%>"><%=forum.getF_messages()%></td>
	<td nowrap bgcolor="<%=TD_BGCOLOR%>" align="right">
		<%=DateTimeUtil.shortFmt(forum.getF_lasttime())%><BR>
		by <A HREF="user.do?u_id=<%=forum.getF_u_id2()%>"><%=StringUtil.escapeHTMLTags(forum.getU_name2())%>
	</td>
	<td  bgcolor="<%=TD_BGCOLOR2%>"><A HREF="user.do?u_id=<%=forum.getF_u_id()%>"><%=forum.getU_name()%></A></td>
</tr>
<%
  }
%>
<!--loop end-->
</table>
<!--personal info-->
<BR>
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5" bgcolor="<%=TABLE_BGCOLOR%>">
	 <tr bgcolor="<%=TH_BGCOLOR%>">
		<td>
			<font color="<%=TH_TEXT_COLOR%>">Personal infomation:</font>
		</td>
	</tr>

	<tr>
		<td bgcolor="<%=TD_BGCOLOR%>">
			<%=request.getRemoteAddr()%>&nbsp;<%=request.getHeader("User-Agent")%>
		</td>
	</tr>
</table>
<!--Links-->
<BR>
<table width="95%" align="center" border="0" cellspacing="1" cellpadding="5" bgcolor="<%=TABLE_BGCOLOR%>">
	 <tr bgcolor="<%=TH_BGCOLOR%>">
		<td>
			<font color="<%=TH_TEXT_COLOR%>">Links:</font>
		</td>
	</tr>

	<tr  bgcolor="<%=TD_BGCOLOR%>">
		<td>
		<a href="#" >LightningBoard</a>
		</td>
	</tr>

</table>
<center>
<!------- Start of HTML Code -------><form action="http://www.hotscripts.com/cgi-bin/rate.cgi" method="POST"><input type="hidden" name="ID" value="17300"><table BORDER="0" CELLSPACING="0" bgcolor="#800000"><tr><td><table border="0" cellspacing="0" width="100%" bgcolor="#EFEFEF" cellpadding="3"><tr><td align="center"><font face="arial, verdana" size="2"><b>If you like LightningBoard, please
rate it at  HotScripts.com</b></font></td><td align="center"><select name="ex_rate" size="1"><option value="5" selected>Excellent!</option><option value="4">Very Good</option><option value="3">Good</option><option value="2">Fair</option><option value="1">Poor</option></select></td><td align="center"><input type="submit" value="Go!"></td></tr></table></td></tr></table></form><!------- End of HTML Code ------->
</center>
<%@include file="inc/footer.jsp"%>

⌨️ 快捷键说明

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