?? index.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 />
<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" /> 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>今日 1</span>
<span>昨日 0</span>
<span>主題 1</span>
<span id="rep">回復 1</span>
</span>
</div>
<hr size="1"/>
</c:forEach>
</div>
</c:forEach>
<div id="systemInformation" class="text">
<div id="icon">目前論壇總在線${applicationScope.onLineNum}人。 其中注冊用戶${sessionScope.regNum}人, 訪客${applicationScope.onLineNum - sessionScope.regNum}人。<BR>在線名單圖例: <IMG
src="images/group/4.gif" width="14" height="14" border=0> 論壇壇主 <IMG
src="images/group/5.gif" width="14" height="14" border=0> 論壇總版主 <IMG
src="images/group/6.gif" width="14" height="14" border=0> 論壇版主 <IMG
src="images/group/10.gif" width="14" height="14" border=0> 特殊會員 <IMG
src="images/group/8.gif" border=0> 一般用戶 <IMG
src="images/group/9.gif" border=0> 待認證用戶 <IMG
src="images/group/16.gif" border=0> 客人
</div>
</div>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -