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

📄 space_myfavforums.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="space_header.jsp" />
<div class="outer">
	<table class="main" border="0" cellspacing="0">
		<tr>
			<td id="main_layout0">
				<jsp:include flush="true" page="space_module_userinfo.jsp" />
			</td>

			<td id="main_layout1">
				<table class="module" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="header">
							<div class="title">
								收藏的版块
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div id="module_myfavforums">
								<table cellspacing="0" cellpadding="0" width="100%">
									<tr class="list_category">
										<td class="forum">
											版块
										</td>
										<td class="threads">
											主题
										</td>
										<td class="posts">
											帖数
										</td>
										<td class="todayposts">
											今日
										</td>
									</tr>
									<c:forEach items="${myfavforums}" var="forums">
										<tr class="list_category">
										<td class="forum">
											<c:choose><c:when test="${forumdisplayurl}"><a href="forum-${forums.fid}-1.html" target="_blank">${forums.name}</a></c:when><c:otherwise><a href="forumdisplay.jsp?fid=${forums.fid}" target="_blank">${forums.name}</a></c:otherwise></c:choose>
										</td>
										<td class="threads">
											${forums.threads}
										</td>
										<td class="posts">
											${forums.posts}
										</td>
										<td class="todayposts">
											${forums.todayposts}
										</td>
									</tr>
									</c:forEach>
								</table>
								<div class="line"></div>
					<!-- ***************下面显示分页内容************************* -->		
						<c:if test="${logpage.totalSize > 10}">
							<div class="p_bar">
								<a class="p_total">&nbsp;${logpage.totalSize}&nbsp;</a>
								<a class="p_pages">&nbsp;${logpage.currentPage}/${logpage.totalPage}&nbsp;</a>
								<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
								<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
									<a href="space.jsp?action=myfavforums&uid=66&amp;page=1"
										class="p_pages">1 ...</a>
								</c:if>
								<!-- 如果当前页不是第一页面,则显示<< -->
								<c:if test="${logpage.currentPage != logpage.prePage}">
									<a href="space.jsp?action=myfavforums&uid=66&amp;page=${logpage.prePage}" class="p_redirect">&lsaquo;&lsaquo;</a>
								</c:if>
								<c:choose>
									<c:when
										test="${logpage.totalPage>10 && logpage.currentPage>=4 && logpage.totalPage-(logpage.currentPage-2)>=10}">
										<!-- 显示滚动的页码信息 -->
										<c:forEach var="num" begin="${logpage.currentPage-2}"
											end="${(logpage.currentPage-2)+9}" step="1">
											<c:choose>
												<c:when test="${logpage.currentPage == num}">
													<a class="p_curpage">${logpage.currentPage}</a>
												</c:when>
												<c:otherwise>
													<a href="space.jsp?action=myfavforums&uid=66&amp;page=${num}" class="p_num">${num}</a>
												</c:otherwise>
											</c:choose>
										</c:forEach>
									</c:when>
									<c:otherwise>
										<c:choose>
											<c:when
												test="${logpage.totalPage>10 && logpage.currentPage>=4}">
												<!-- 显示后半部分信息 -->
												<c:forEach var="num" begin="${logpage.totalPage-9}"
													end="${logpage.totalPage}" step="1">
													<c:choose>
														<c:when test="${logpage.currentPage == num}">
														<a class="p_curpage">${logpage.currentPage}</a>
														</c:when>
														<c:otherwise>
															<a href="space.jsp?action=myfavforums&uid=66&amp;page=${num}" class="p_num">${num}</a>
														</c:otherwise>
													</c:choose>
												</c:forEach>
											</c:when>
											<c:otherwise>
												<c:choose>
													<c:when test="${logpage.totalPage>10}">
													<!-- 显示前半部分值 -->
														<c:forEach var="num" begin="1" end="10" step="1">
															<c:choose>
																<c:when test="${logpage.currentPage == num}">
																	<a class="p_curpage">${logpage.currentPage}</a>
																</c:when>
																<c:otherwise>
																	<a href="space.jsp?action=myfavforums&uid=66&amp;page=${num}" class="p_num">${num}</a>
																</c:otherwise>
															</c:choose>
														</c:forEach>
													</c:when>
													<c:otherwise>
													<!-- 如果不够10页则显示 -->
														<c:forEach var="num" begin="1" end="${logpage.totalPage}"
															step="1">
															<c:choose>
																<c:when test="${logpage.currentPage == num}">
																	<a class="p_curpage">${logpage.currentPage}</a>
																</c:when>
																<c:otherwise>
																	<a href="space.jsp?action=myfavforums&uid=66&amp;page=${num}" class="p_num">${num}</a>
																</c:otherwise>
															</c:choose>
														</c:forEach>
													</c:otherwise>
												</c:choose>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
								<!-- 如果当前页不是最后页面,则显示 《 《-->
								<c:if test="${logpage.currentPage != logpage.nextPage}">
									<a
										href="space.jsp?action=myfavforums&uid=66&amp;page=${logpage.nextPage}"
										class="p_redirect">&rsaquo;&rsaquo;</a>
								</c:if>
								<!-- 如果超过一定范围则显示... -->
								<c:if test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
									<a
									href="space.jsp?action=myfavforums&uid=66&amp;page=${logpage.totalPage}"
									class="p_pages">... ${logpage.totalPage}</a>
								</c:if>
								<!-- 如果页数大于10则显示此框-->
								<c:if test="${logpage.totalPage>10}">
									<kbd>
									<input type="text" name="custompage" size="3" 
										onkeydown="if(event.keyCode==13) {window.location='space.jsp?action=myfavforums&uid=66&amp;page='+this.value; return false;}" />
								</kbd>
								</c:if>
						</c:if>
				<!-- ******************************分页结束********************************* -->
							</div>
						</td>
					</tr>
				</table>
			</td>

		</tr>
	</table>
</div>
<jsp:include flush="true" page="space_footer.jsp" />

⌨️ 快捷键说明

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