📄 ratelog.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jrun-tag.tld" 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 />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="tableborder">
<tr class="header">
<td colspan="3">
用户评分记录
</td>
</tr>
<form method="post" action="admincp.jsp?action=ratelog">
<input type="hidden" name="caction" value="lpp">
<tr class="altbg2">
<td width="25%">
每页显示记录数量
</td>
<td width="55%">
<input type="text" name="lpp" size="40" maxlength="40"
value="${lpp}">
</td>
<td width="20%">
<input class="button" type="submit" value="提 交">
</td>
</tr>
</form>
<form method="post" action="admincp.jsp?action=ratelog">
<input type="hidden" name="caction" value="keyword">
<tr class="altbg2">
<td>
记录全文搜索
</td>
<td>
<input type="text" name="keyword" size="40" value="${keys}">
</td>
<td>
<input class="button" type="submit" value="提 交">
</td>
</tr>
</form>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="tableborder">
<tr class="header">
<td width="13%">
用户名
</td>
<td width="12%">
用户组
</td>
<td width="12%">
时间
</td>
<td width="13%">
被评价用户
</td>
<td width="14%">
分数
</td>
<td width="23%">
标题
</td>
<td width="13%">
原因
</td>
</tr>
<!-- ***************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > lpp}">
<div class="pages">
<em> ${logpage.totalSize} </em>
<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.prePage}" 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=ratelog&lpp=${lpp}&page=${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${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="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.nextPage}"
class="next">››</a>
</c:if>
<!-- 如果超过一定范围则显示... -->
<c:if test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
<a
href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.totalPage}"
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=ratelog&lpp=${lpp}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach items="${reteloglist}" var="rate">
<tr>
<td width="13%" class="altbg1">
<a href="space.jsp?username=<jrun:encoding value="${rate.firstUsername}"/>" target="_black">${rate.firstUsername}</a>
</td>
<td width="12%" class="altbg2">
${rate.usergroup}
</td>
<td width="12%" class="altbg1">
${rate.operateTime}
</td>
<td width="13%" class="altbg2">
<a href="space.jsp?username=<jrun:encoding value="${rate.secondUsername}"/>" target="_black">${rate.secondUsername}</a>
</td>
<td width="14%" class="altbg1">
${rate.markValue}
</td>
<td width="23%" class="altbg2">
<c:choose>
<c:when test="${rate.tid!=0}"><a href="viewthread.jsp?tid=${rate.tid}" target="_balck">${rate.title}</a></c:when>
<c:otherwise>${rate.title}</c:otherwise>
</c:choose>
</td>
<td width="13%" class="altbg1">
${rate.reason}
</td>
</tr>
</c:forEach>
</table>
<!-- ****************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > lpp}">
<div class="pages">
<em> ${logpage.totalSize} </em>
<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.prePage}" 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=ratelog&lpp=${lpp}&page=${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${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}">
<strong>${logpage.currentPage}</strong>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${num}">${num}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<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=ratelog&lpp=${lpp}&page=${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="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.nextPage}"
class="next">››</a>
</c:if>
<c:if test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
<a
href="admincp.jsp?action=ratelog&lpp=${lpp}&page=${logpage.totalPage}"
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=ratelog&lpp=${lpp}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<jsp:include page="../cp_footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -