?? article.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
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>主題</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" rev="stylesheet" href="css/block.css" />
<style type="text/css">
<!--
#top{
height: 30px;
}
#sbody{
border: red 1px solid;
width: 85%;
height: 10%;
}
#lefts{
width: 20%;
height: 90%;
float: left;
}
#rights{
width: 80%;
height: 90%x;
float: left;
}
#chakan{
border-bottom: 1px solid #DCDCDC;
border-top: 1px solid #DCDCDC;
height: 30px;
}
#tiezi,#tiezi1{
height: 120px;
border-bottom: 1px solid #DCDCDC;
}
#roots{
width: 85%;
text-align: center;
}
.topicBg {
background-color: #FFE1FF;
margin-bottom: 10px;
}
#pageform {
text-align: right;
position: relative;
right: 120px;
}
#page {
width: 30px;
}
-->
</style>
</head>
<body>
<div id="rightWraper">
<div class="text">
<c:if test="${sessionScope.isLogSuc == true && sessionScope.user.lockFlag == 0}">
<a href="web/jsp/post.jsp?blockId=${sessionScope.block.id}">
<IMG alt=發表新帖子 src="images/post.png" border="0">
</a>
<a href="web/jsp/reply.jsp?publishId=${sessionScope.publish.id}&publishTitle=${sessionScope.publish.title}">
<IMG alt=回復此帖 src="images/reply.png" border=0>
</a><br /><br />
</c:if>
<c:if test="${sessionScope.replyPage.currPage == 1 || sessionScope.currPage == 0}">
<div id="con">
<div id="sbody" class="topicBg">
<span>* 貼子主題:</span> ${sessionScope.publish.title}
<div id="lefts"><br />
<IMG alt=離線 src="images/offline.gif" border=0>
<A href="http://localhost:8888/yhbbs/User.htm?uId=1">${sessionScope.publish.publishMan.name}</A><br /><br />
<IMG src="images/avatars/15.gif" width="48" height="48" border=0><br />
威望: ${sessionScope.publish.publishMan.prestige}<BR>
級別: ${sessionScope.publish.publishMan.level.levelNum}<BR>
榮譽: ${sessionScope.publish.publishMan.level.name}<BR>
積分: ${sessionScope.publish.publishMan.score}<BR>
現金: ${sessionScope.publish.publishMan.wealth}<BR>
發帖數: ${param.publishNum} 篇<BR>
</div>
<div id="rights"><br /><br />
<div id="chakan">
<IMG alt=你未登錄 src="images/read/message.gif" width="16" height="16">消息
<A title=查看admin的相關信息 href="http://localhost:8888/yhbbs/User.htm?uId=1">
<IMG src="../images/read/profile.gif" width="16" height="16" border=0> 查看
</A>
</div>
<div id="tiezi">
${sessionScope.publish.content}
</div>
<c:if test="${sessionScope.isLogSuc == true && sessionScope.user.lockFlag == 0}">
<c:forEach items="${sessionScope.fileList}" var="file">
<a href="servlet/Download?url=<c:url value='${file.url}' />">${file.name}</a>
</c:forEach>
</c:if>
</div>
</div>
</c:if>
<c:forEach items="${sessionScope.replyList}" var="reply">
<div id="sbody">
<div id="lefts"><br />
<IMG alt=離線 src="images/offline.gif" border=0>
<A href="http://localhost:8888/yhbbs/User.htm?uId=1">${reply.replyMan.name}</A><br /><br />
<IMG src="images/avatars/15.gif" width="48" height="48" border=0><br />
威望: ${reply.replyMan.prestige}<BR>
級別: ${reply.replyMan.level.levelNum}<BR>
榮譽: ${reply.replyMan.level.name}
積分: ${reply.replyMan.score}<BR>
現金: ${reply.replyMan.wealth}<BR>
發帖數: ${param.publishNum} 篇<BR>
</div>
<div id="rights"><br /><br />
<div id="chakan">
<IMG alt=你未登錄 src="images/read/message.gif" width="16" height="16">消息
<A title=查看admin的相關信息 href="http://localhost:8888/yhbbs/User.htm?uId=1">
<IMG src="../images/read/profile.gif" width="16" height="16" border=0> 查看
</A>
</div>
<div id="tiezi">
${reply.content}
</div>
</div>
</div>
</c:forEach>
<form id="pageform" action="servlet/ArticleDO?publishId=${sessionScope.publish.id}" method="post">
<span><a
href="servlet/ArticleDO?page=1&publishId=${sessionScope.publish.id}">首頁</a>
</span>
<span><a
href="servlet/ArticleDO?page=${sessionScope.replyPage.currPage - 1}&publishId=${sessionScope.publish.id}">上頁</a>
</span>
<span><a
href="servlet/ArticleDO?page=${sessionScope.replyPage.currPage + 1}&publishId=${sessionScope.publish.id}">下頁</a>
</span>
<span><a
href="servlet/ArticleDO?page=${param.maxPages}&publishId=${sessionScope.publish.id}">末頁</a>
</span> 到
<input type="text" name="page" id="page" />
頁
<input type="submit" value="GO">
<span>第${sessionScope.replyPage.currPage}頁</span>
<span>共${param.maxPages}頁</span>
</form>
</div>
<div id="roots">
中文版權所有<br />
本論壇言論純屬發表者個人意見,與 『 』立場無關<br />
Powered by <A href="mailto:yyhweb@126.com">stephen</A> Ver 2.0
Processed in 0.031 s
</div>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -