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

📄 newposttopiccontents.jsp

📁 struts+hibernate BBS mysql数据库 功能基本齐全
💻 JSP
字号:
<%@ page language="java" import="java.util.List" pageEncoding="gbk"%>
<%@ page import="com.elan.forum.model.ForumTopic"%>
<%@ page import="com.elan.forum.model.Forumpiece"%>
<%
	Integer pageSize = (Integer) (request.getAttribute("pageSize"));
	Forumpiece piece = null;
	List<ForumTopic> list = (List<ForumTopic>) request
			.getAttribute("topicList");
	if (list.size() > 0) {
		piece = ((ForumTopic) list.get(0)).getPiece();
	}
%>
<div class="bodywidth">
	<table width="100%" border="0" cellspacing="2" cellpadding="0">
		<tr>
			<td height="25">
				<a
					href="<%=request.getContextPath()%>/forum/topic.do?action=newForm&pieceId=<%=piece.getId()%>"><img
						src="/ElanNet/forum/view/skin/default/newtopic.gif" width="99"
						height="28" border="0" /> </a>
				<a href="<%=request.getContextPath()%>/forum/view/ForumError.jsp"></a>
			</td>
			<td height="30" colspan="2" align="right">
			<div class='forum_page'>
				<strong>最多显示最新的<%=pageSize%>条 </strong>
			</div>
			</td>
		</tr>
	</table>
	<table width='100%' border='0' cellspacing='0' cellpadding='0'
		class='topic_list_tb'>
		<tr class='topic_list_mt'>
			<td class='topic_list_mt_status'></td>
			<td class='topic_list_mt_title'>
				标题
			</td>
			<td class='topic_list_mt_author'>
				作者
			</td>
			<td class='topic_list_mt_reply'>
				回复/查看
			</td>
		</tr>
		<tr class='topic_list_commontitle'>
			<td colspan='5'>
				版块帖子列表
			</td>
		</tr>
		<%
			for (int i = 0; i < list.size(); i++) {
				ForumTopic fa = (ForumTopic) list.get(i);
		%>
		<tr class='topic_list_tr'
			onmouseover="this.className='topic_list_over'"
			onmouseout="this.className='topic_list_tr'">
			<td class='topic_list_icon'>
				<img src="/ElanNet/forum/view/skin/default/folder_new.gif"
					alt="论坛帖子" border="0">
			</td>
			<td class='topic_list_title'>
				<a
					href='/ElanNet/forum/topic.do?action=showTopic&topicId=<%=fa.getId()%>'><%=fa.getTitle()%></a>
			<td class='topic_list_author'>
				<cite><a href='/User/ShowUser.asp?UserID=1'><%=fa.getAuthor()%></a>
				</cite><em><%=fa.getCreateTime()%></em>
			</td>
			<td class='topic_list_reply_hits'>
				<strong class='topic_list_reply'><%=fa.getReply()%></strong>/
				<strong class='topic_list_hits'><%=fa.getClick()%></strong>
			</td>
		</tr>
		<%
			}
		%>
	</table>

	<table width="100%" border="0" cellspacing="2" cellpadding="0">
		<tr>
			<td height="30" colspan="2" align="right">
			</td>
		</tr>

		<tr>
			<td width="44%" height="30">
				<form name="search" action="/Forum/Search.asp" method="get">
					论坛搜索:
					<input name="keyword" type="text" id="keyword" />
					<input type="submit" value="搜索" />
					<input name="ModuleType" type="hidden" id="ModuleType" value="-1" />
				</form>
			</td>
			<td width="56%" align="right">
				版块跳转:
				<select name="select"
					onchange="location.href='/Forum/ShowBoard.asp?BoardID='+this.value">
					<script language="JavaScript" src="/Forum/js/BoardOptions.js"
						type="text/javascript"></script>
				</select>
			</td>
		</tr>
	</table>
</div>

⌨️ 快捷键说明

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