?? block.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 'block.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="styles.css">
<link rel="stylesheet" rev="stylesheet" href="css/block.css" />
<style type="text/css">
.bodys{
width: 90%;
text-align: center;
}
.top{
height: 70px;
padding-top: 35px;
font-size: 30px;
font-style: italic;
font-family: 宋體;
}
.menu{
}
.login{
height: 150px;
}
.model{
}
.count{
height: 100px;
}
#menulist{
list-style-type: none;
}
#menulist li{
float: left;
margin-left: 10px;
border-left: 1px black dotted;
padding-left: 10px;
padding-top: 10px;
}
#manage{
height: 100px;
width: 200px;
float: left;
margin-top: 30px;
}
#loginForm{
padding-left: 0px;
}
#sou{
width: 250px;
height: 100px;
float: right;
margin-top: 30px;
}
a:link,a:visited{
color: Black;
text-decoration: none;
}
a:hover{
color: Red;
text-decoration: underline;
}
#myTime{
}
#rpicon {
width: 98px;
height: 28px;
}
#rpicon img {
border: 1px solid red;
margin-left: 20px;
position: relative;
right: 290px;
margin-bottom: 5px;
}
#opration a {
float: right;
padding-left: 10px;
}
#page {
width: 30px;
}
#pageTurning {
margin-top: 5px;
}
</style>
</head>
<body>
<div id="rightWraper">
<div class="bodys">
<div class="menu"> </div>
<div class="login">
<div id="manage"> <span id="huanying">歡迎${sessionScope.user.name}進入${sessionScope.block.name}版塊</span><br />
該版的版主斑竹有
<c:forEach items="${sessionScope.blockAdminList}" var="blockAdmin">
<span>${blockAdmin.name}</span>
</c:forEach>
<br />
您當前進入時間是:<br />
${sessionScope.nowTime}</div>
<br />
<div id="sou">
<form id="form1">
<input name="button" type="button" value="搜索" />
<input name="text" type="text" />
<br />
<br />
請選擇你要進入的版塊
<select name="select">
<option >1111</option>
<option >1111</option>
<option >1111</option>
<option >1111</option>
</select>
</form>
</div>
</div>
<c:if test="${sessionScope.isLogSuc == true && sessionScope.user.lockFlag == 0}">
<div id="rpicon">
<a href="web/jsp/post.jsp?blockId=${sessionScope.block.id}">
<img src="images/post.png" border="0"/></a>
</div>
</c:if>
<div class="model">
<table width=87% border="1">
<c:forEach items="${sessionScope.publishList}" var="publish">
<c:if test="${publish.stick == 1}">
<tr>
<td width="20" ><a href="article.html"></a><img src="images/off.gif" width="20" height="20" alt="1" /></td>
<td><a href="servlet/ArticleDO?publishId=${publish.id}"><span>${publish.title}</span></a>
<c:if test="${publish.digest == 1}">
<img src="images\file\digest_1.gif"/>
</c:if>
<c:if test="${publish.recommend == 1}">
<img src="images\read\emailto.gif"/>
</c:if>
<c:if test="${publish.finish == 1}">
<img src="images\file\attc.gif"/>
</c:if>
</td>
<td align="center">${publish.publishDate}</td>
</tr>
</c:if>
</c:forEach>
</table>
<table width=87% border="1">
<tr>
<td colspan="3" align="left">通用模塊</td>
</tr>
<c:forEach items="${sessionScope.publishList}" var="publish">
<tr height="5">
<td width="20" ><a href="article.html"></a><img src="images/off.gif" width="20" height="20" alt="1" /></td>
<td>
<a href="servlet/ArticleDO?publishId=${publish.id}"><span>${publish.title}</span></a>
<c:if test="${publish.digest == 1}">
<img src="images\file\digest_1.gif"/>
</c:if>
<c:if test="${publish.recommend == 1}">
<img src="images\read\emailto.gif"/>
</c:if>
<c:if test="${publish.finish == 1}">
<img src="images\file\attc.gif"/>
</c:if>
<c:if test="${sessionScope.user.blockFlag == 1 && sessionScope.user.block.id == sessionScope.block.id}">
<span id="opration" style="font-size:12px;">
<c:if test="${publish.digest == 0}">
<a href="servlet/DigestDO?publishId=${publish.id}">加精</a>
</c:if>
<c:if test="${publish.recommend == 0}">
<a href="servlet/RecommendDO?publishId=${publish.id}">推薦</a>
</c:if>
<c:if test="${publish.stick == 0}">
<a href="servlet/StickDO?publishId=${publish.id}">置頂</a>
</c:if>
<c:if test="${publish.digest == 1}">
<a href="servlet/DelDigestDO?publishId=${publish.id}">消精</a>
</c:if>
<c:if test="${publish.recommend == 1}">
<a href="servlet/DelRecommendDO?publishId=${publish.id}">取消推薦</a>
</c:if>
<c:if test="${publish.stick == 1}">
<a href="servlet/DelStickDO?publishId=${publish.id}">消頂</a>
</c:if>
<a href="servlet/FinishDO?publishId=${publish.id}">結貼</a>
</span>
</c:if>
</td>
<td align="center">${publish.publishDate}</td>
</tr>
</c:forEach>
</table>
<div id="pageTurning">
<form action="servlet/QueryBlockPublishDO">
<span><a href="servlet/QueryBlockPublishDO?page=1&blockId=${sessionScope.block.id}">首頁</a></span>
<span><a href="servlet/QueryBlockPublishDO?page=${sessionScope.pubPage.currPage - 1}&blockId=${sessionScope.block.id}">上頁</a></span>
<span><a href="servlet/QueryBlockPublishDO?page=${sessionScope.pubPage.currPage + 1}&blockId=${sessionScope.block.id}">下頁</a></span>
<span><a href="servlet/QueryBlockPublishDO?page=${param.maxPages}&blockId=${sessionScope.block.id}">末頁</a></span>
到<input type="text" name="page" id="page"/>頁
<input type="submit" value="GO">
<span>第${sessionScope.pubPage.currPage}頁</span>
<span>共${param.maxPages}頁</span>
</form>
</div>
<br />
</div>
<br />
<div class="count">
</div>
</div>
<div class="text"></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -