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

📄 article.jsp

📁 一个bbs论坛系统
💻 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>&nbsp;&nbsp;
	<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>&nbsp;&nbsp;&nbsp;${sessionScope.publish.title}
			<div id="lefts"><br />
				&nbsp;<IMG alt=离线 src="images/offline.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;
				<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 />
				威望:&nbsp;${sessionScope.publish.publishMan.prestige}<BR>
				级别:&nbsp;${sessionScope.publish.publishMan.level.levelNum}<BR>
				荣誉:&nbsp;${sessionScope.publish.publishMan.level.name}<BR>
				积分:&nbsp;${sessionScope.publish.publishMan.score}<BR>
				现金:&nbsp;${sessionScope.publish.publishMan.wealth}<BR>
				发帖数:&nbsp;${param.publishNum}&nbsp;篇<BR>
			</div>
			<div id="rights"><br /><br />
				<div id="chakan">&nbsp;&nbsp;
					<IMG alt=你未登录 src="images/read/message.gif" width="16" height="16">消息&nbsp;
					<A title=查看admin的相关信息 href="http://localhost:8888/yhbbs/User.htm?uId=1">
						<IMG  src="../images/read/profile.gif" width="16" height="16" border=0>&nbsp;查看
					</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 />
				&nbsp;<IMG alt=离线 src="images/offline.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;
				<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 />
				威望:&nbsp;${reply.replyMan.prestige}<BR>
				级别:&nbsp;${reply.replyMan.level.levelNum}<BR>
				荣誉:&nbsp;${reply.replyMan.level.name}
				积分:&nbsp;${reply.replyMan.score}<BR>
				现金:&nbsp;${reply.replyMan.wealth}<BR>
				发帖数:&nbsp;${param.publishNum}&nbsp;篇<BR>
			</div>
			<div id="rights"><br /><br />
				<div id="chakan">&nbsp;&nbsp;
					<IMG alt=你未登录 src="images/read/message.gif" width="16" height="16">消息&nbsp;
					<A title=查看admin的相关信息 href="http://localhost:8888/yhbbs/User.htm?uId=1">
						<IMG  src="../images/read/profile.gif" width="16" height="16" border=0>&nbsp;查看
					</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 
      &nbsp;&nbsp;&nbsp;Processed in 0.031 s
		</div>
		</div>
</body>
</html>

⌨️ 快捷键说明

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