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

📄 left.jsp

📁 一个成熟的论坛
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib prefix="ww" uri="/WEB-INF/webwork.tld" %>
<%@ taglib prefix="cache" uri="/WEB-INF/oscache.tld" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<LINK href="images/newCss.css" type=text/css rel=stylesheet>
<script>
	function logoff()
	{
		this.top.window.location.href = '<ww:url action="logoff" />';
	}
</script>
</HEAD>

<BODY>
<div id="root">
	<div id="left">
		<div id="panel">星网娱乐论坛 &gt&gt ${parentForum.forumName } (贴数:${parentForum.forumCount })</div>
		<div id="panel">
		<ww:if test="${pageList.curPage <= 1}">首页</ww:if>
		<ww:else><a href=<ww:url action="thread!loadThreadList" />?pageNo=1&forumID=${forumID }>首页</a></ww:else>
		<ww:if test="${pageList.curPage <= 1}">上一页</ww:if>
		<ww:else><a href="<ww:url action="thread!loadThreadList" />?pageNo=${pageList.prePage}&forumID=${forumID }" >上一页</a></ww:else>
		<c:forEach items="${pageList.pageIndex}" var="i">
		<ww:if test="${i == pageList.curPage}">[<font color="black"><b>${i}</b>]</font></ww:if>
		<ww:else><a href="<ww:url action="thread!loadThreadList" />?pageNo=${i }&forumID=${forumID }" >${i }</a></ww:else>  		
		</c:forEach>
		<ww:if test="${pageList.curPage >= pageList.totalPages}">下一页</ww:if>
		<ww:else><a href="<ww:url action="thread!loadThreadList" />?pageNo=${pageList.nextPage}&forumID=${forumID }" >下一页</a></ww:else>
		<ww:if test="${pageList.curPage == pageList.totalPages}">尾页</ww:if>
		<ww:else>
		<a href="<ww:url action="thread!loadThreadList" />?pageNo=${pageList.totalPages }&forumID=${forumID }">尾页</a>
		</ww:else>
		
		 | <a target="right" href="<ww:url action="thread!doDefault" />?forumID=${forumID }&pageNo=${pageNo }">发表主题</a>
		
		</div>
		<div id="threads">
		<table border="0" width="100%" class="table1" cellpadding="0" cellspacing="0">
			<tr class="tr2">
				<td height="20" align="center">标题</td>
				<td height="20" width="14%" align="center">作者</td>
				<td height="20" width="8%" align="center">浏/回</td>
				<td height="20" width="18%" align="center">时间</td>
			</tr>
			<ww:iterator value="pageList.items" status="ind">
			<tr class="tr${ind.count % 2 }">
				<td height="20"><img alt="" src="images/array.gif"> 
				<a target="right" href=<ww:url action="reply!loadReplyList" />?threadID=${id }&pageNo=${pageNo }&forumID=${parentForum.id }>
				<ww:property value="postTitle" />
				</a>
				</td>
				<td height="20" align="center"><ww:property value="postUser" /></td>
				<td height="20" align="center"><ww:property value="postReply" /></td>
				<td height="20" align="center"><ww:date name="postCtime" format="yyyy-MM-dd HH:mm:ss" /></td>
			</tr>
			</ww:iterator>
		</table>
		</div>
		<div id="login">
		<ww:if test="${sessionScope['userID'] == null}">
		<form action="<ww:url action="login" />" style="margin: 0px auto">
			<font color="#2F4D6B"><strong>用户登陆:</strong></font> 帐号:<input type="text" name="userID"> 密码:<input type="password" name="password"> <input type="submit" value="登录" class="button" onclick="popUp(this);">
		</form>
		</ww:if>
		<ww:else>
		用户ID:<ww:property value="${sessionScope['userID']}" /> | 用户昵称:<c:out value="${sessionScope['userName']}" /> [<a href="#" onclick="logoff();">注销</a>]
		</ww:else>
		</div>
	</div>
</div>
</BODY>
</HTML>

⌨️ 快捷键说明

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