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

📄 index.jsp

📁 一个bbs论坛系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ page import="com.lovo.po.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/indexshow.css">
	<style type="text/css">
	#newMessage{
		border: 1px red solid;
		width: 100px;
		height: 100px;
	}
</style>
</head>
  <body>
		<div id="rightWraper">
			<div id="foruminfo" class="text">
			<div class="info">
					<div>新注册会员:</div>
					<c:forEach items="${sessionScope.fiveNewReg}" var="user">
					<div>${user.name}</div>
					</c:forEach>
				</div>
				<div class="info">
					<div>财富排名:</div>
					<c:forEach items="${sessionScope.fiveWealth}" var="user">
					<div>${user.name}</div>
					</c:forEach>
				</div>
				<div class="info">
					<div>刚出炉的帖子:</div>
					<c:forEach items="${sessionScope.newFivePubList}" var="publish">
					<div><a href="servlet/ArticleDO?publishId=${publish.id}">${publish.title}</a></div>
					</c:forEach>
				</div>
			</div>
			<div id="interactive" class="text">
				<div class="info">
					<div>最新帖子</div>
					<div><img src="images/file/multipage.gif" width="11" height="11" border=0 />&nbsp;&nbsp;
					<c:if test="${sessionScope.theNewestPublish.id < 0}">
					<a href="servlet/ArticleDO?publishId=${sessionScope.theNewestPublish.id}">${sessionScope.theNewestPublish.title}</a>
					</c:if>
					<c:if test="${sessionScope.theNewestPublish.id == 0}">
					${sessionScope.theNewestPublish.title}
					</c:if>
					</div>
				</div>
				<div class="info">
					<div>最新精华</div>
					<c:if test="${sessionScope.theNewestDigestPublish.id < 0}">
					<div><a href="servlet/ArticleDO?publishId=${sessionScope.theNewestDigestPublish.id}">${sessionScope.theNewestDigestPublish.title}</a></div>
					</c:if>
					<c:if test="${sessionScope.theNewestDigestPublish.id == 0}">
					<div>${sessionScope.theNewestDigestPublish.title}</div>
					</c:if>
				</div>
				<div class="info">
					<div>最新推荐</div>
					<c:if test="${sessionScope.theNewestRecommendPublish.id < 0}">
					<div><a href="servlet/ArticleDO?publishId=${sessionScope.theNewestRecommendPublish.id}">${sessionScope.theNewestRecommendPublish.title}</a></div>
					</c:if>
					<c:if test="${sessionScope.theNewestRecommendPublish.id == 0}">
					<div>${sessionScope.theNewestRecommendPublish.title}</div>
					</c:if>
				</div>
			</div>
			<c:forEach items="${sessionScope.allAreaList}" var="area">
			<div id="bullSession" class="text">
				<div id="forumName">${area.name}</div><hr size="1"/>
					<c:forEach items="${area.blockList}" var="block">
						<div id="new">
							<img src="images/new.gif" width="25" height="27" />
						</div>
						<div id="newThread">
							<img src="images/thread/new.gif" width="20" height="20" />
						</div>
						<div>
							<span>
								<a href="servlet/QueryBlockPublishDO?areaId=${area.id}&blockId=${block.id}&page=1">${block.name}</a><br />
								<img src="images/page_next.gif" width="9" height="9" />&nbsp;&nbsp;aa
							</span>
							<span id="title" >主题:Exception</span>
						</div>
						<div id="reply">回复:admin</div>
						<div id="four">
							<span>版主:</span>
							<c:forEach items="${area.areaAdminList}" var="areaAdmin">
							<span>${areaAdmin.name}</span>
							<c:if test="${area.areaAdminList == null}"></c:if>
							<span>等待斑竹</span>
							</c:forEach>
							<span id="msg">
								<span>今日&nbsp;1</span>
								<span>昨日&nbsp;0</span>
								<span>主题&nbsp;1</span>
								<span id="rep">回复&nbsp;1</span>
							</span>
						</div>
						<hr size="1"/>
				</c:forEach>
				</div>
			</c:forEach>
			<div id="systemInformation" class="text">
				<div id="icon">目前论坛总在线${applicationScope.onLineNum}人。&nbsp;其中注册用户${sessionScope.regNum}人, 访客${applicationScope.onLineNum - sessionScope.regNum}人。<BR>在线名单图例: <IMG 
            src="images/group/4.gif" width="14" height="14" border=0> 论坛坛主 &nbsp;<IMG 
            src="images/group/5.gif" width="14" height="14" border=0> 论坛总版主 &nbsp;<IMG 
            src="images/group/6.gif" width="14" height="14" border=0> 论坛版主 &nbsp;<IMG 
            src="images/group/10.gif" width="14" height="14"  border=0> 特殊会员 &nbsp;<IMG 
            src="images/group/8.gif"  border=0> 一般用户 &nbsp;<IMG 
            src="images/group/9.gif"  border=0> 待认证用户&nbsp;<IMG 
            src="images/group/16.gif"  border=0> 客人
				</div>
			</div>
		</div>
</body>
</html>

⌨️ 快捷键说明

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