📄 forumrecommend.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://www.jsprun.cn/jrun-tag" prefix="jrun"%>
<jsp:include page="../cp_header.jsp" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td><a href="#" onclick="parent.menu.location='admincp.jsp?action=menu'; parent.main.location='admincp.jsp?action=home';return false;">系统设置首页</a> » 版主推荐管理</td></tr>
</table>
<br />
<logic:empty name="notfirst">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="tableborder">
<tr class="header">
<td colspan="2">
版主推荐管理
</td>
</tr>
<tr class="altbg2">
<td>
论坛:
</td>
<td>
<select
onchange="if(this.options[this.selectedIndex].value != '') {window.location.href=('admincp.jsp?action=fromforumrecommend&fid='+this.options[this.selectedIndex].value+'');}">
<option value="0">
无
</option>
<c:forEach var="f" items="${forumlist}">
<option value="${f.fid}">
${f.name}
</option>
</c:forEach>
</select>
</td>
</tr>
</table>
</logic:empty>
<br />
<!-- 当非第一次显示表单 -->
<logic:notEmpty name="notfirst">
<form method="post" action="admincp.jsp?action=batchpruneforum">
<input type="hidden" name="formhash" value="427b26aa">
<input type="hidden" name="fid" value="${fid}">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="tableborder">
<tr class="header">
<td colspan="10">
版主推荐管理
</td>
</tr>
<tr align="center" class="category">
<td width="6%">
<input type="checkbox" name="chkall" class="checkbox"
onclick="checkall(this.form)">
删?
</td>
<td width="8%">
显示顺序
</td>
<td width="11%">
版块名称
</td>
<td width="40%">
标题
</td>
<td width="10%">
作者
</td>
<td width="10%">
推荐版主
</td>
<td width="15%">
到期时间
</td>
</tr>
<!-- ***************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > 10}">
<div class="pages">
<em> ${logpage.totalSize} </em>
<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<a href="admincp.jsp?action=pageforumrecommend&page=1&fid=${fid}"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=pageforumrecommend&page=${logpage.prePage}&fid=${fid}" class="prev">‹‹</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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=pageforumrecommend&page=${num}&fid=${fid}">${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=pageforumrecommend&page=${num}&fid=${fid}">${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=pageforumrecommend&page=${num}&fid=${fid}">${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=pageforumrecommend&page=${num}&fid=${fid}">${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="admincp.jsp?action=pageforumrecommend&page=${logpage.nextPage}&fid=${fid}"
class="next">››</a>
</c:if>
<!-- 如果超过一定范围则显示... -->
<c:if test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
<a
href="admincp.jsp?action=pageforumrecommend&page=${logpage.totalPage}&fid=${fid}"
class="last">... ${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='admincp.jsp?action=pageforumrecommend&fid=${fid}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach var="f" items="${showList}">
<tr align="center">
<td class="altbg1">
<input type="checkbox" class="checkbox" name="delete[${f.tid}]"
value="20">
</td>
<td class="altbg2">
<input type="text" size="3" name="${f.tid}"
value="${f.displayorder}"
onchange="displayorder.value=displayorder.value+this.name+','">
</td>
<td class="altbg1">
${f.name}
</td>
<td class="altbg2">
<a href="viewthread.jsp?tid=${f.tid}" target="_blank">${f.subject}</a>
</td>
<td class="altbg1">
<a href="space.jsp?uid=${f.authorid}" target="_blank">${f.author}
</td>
<td class="altbg2">
<c:if test="${f.moderatorid == 0}">
System
</c:if>
<c:if test="${f.moderatorid ==1}">
${f.username}
</c:if>
</td>
<td class="altbg1">
<c:choose>
<c:when test="${f.expiration == 0}">
不限制
</c:when>
<c:otherwise>
<jrun:showTime timeInt="${f.expiration}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
<input type="hidden" name="sb" value="${sb}">
<input type="hidden" name="displayorder" value="">
<!-- 分页显示 -->
<c:if test="${totalsize > 10}">
<div class="pages">
<em> ${totalsize} </em>
<c:if test="${currentPage != 1}">
<a
href="posts.do?postsaction=pageForumrecommend&page=${currentPage-1}"
class="prev">‹‹</a>
</c:if>
<c:forEach var="num" begin="1" end="${totalPage}" step="1">
<c:choose>
<c:when test="${currentPage == num}">
<strong>${currentPage}</strong>
</c:when>
<c:otherwise>
<a href="posts.do?postsaction=pageForumrecommend&page=${num}">${num
}</a>
</c:otherwise>
</c:choose>
</c:forEach>
<c:if test="${currentPage != totalPage}">
<a
href="posts.do?postsaction=pageForumrecommend&page=${currentPage+1}"
class="next">››</a>
</c:if>
</div>
</c:if>
<!-- 分页结束 -->
<br />
<center>
<input type="submit" class="button" name="recommendsubmit"
value="提 交">
</center>
</form>
</logic:notEmpty>
<br />
<jsp:include page="../cp_footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -