📄 banlog.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=banlog">
<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=banlog">
<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="10%">
操作者
</td>
<td width="10%">
用户组
</td>
<td width="10%">
IP 地址
</td>
<td width="10%">
时间
</td>
<td width="10%">
用户名
</td>
<td width="5%">
操作
</td>
<td width="20%">
原用户组/新用户组
</td>
<td width="8%">
有效期
</td>
<td width="17%">
原因
</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=banlog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&lpp=${lpp}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach items="${banloglist}" var="banlog" varStatus="cd">
<tr>
<td width="10%" class="altbg1">
<a href="space.jsp?action=viewpro&username=<jrun:encoding value="${banlog.firstName}"/>" target="_blank">${banlog.firstName}</a>
</td>
<td width="10%" class="altbg2">
${banlog.usergroup}
</td>
<td width="10%" class="altbg1">
${banlog.ipAddress}
</td>
<td width="10%" class="altbg2">
${banlog.operateDate}
</td>
<td width="10%" class="altbg1">
<a href="space.jsp?username=<jrun:encoding value="${banlog.secondName}"/>" target="_blank">${banlog.secondName}</a>
</td>
<td width="5%" class="altbg2">
${banlog.operate}
</td>
<td width="20%" class="altbg1">
${banlog.oldUsergroup}/${banlog.newUsergroup}
</td>
<td width="8%" class="altbg2">
${banlog.periodDate}
</td>
<td width="17%" class="altbg1" id="${cd.count}">
${banlog.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=banlog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&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=banlog&lpp=${lpp}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach items="${banloglist}" var="banlog" varStatus="cd">
<script type="text/javascript">
// <![CDATA[
function toBreakWord(intLen){
var obj=document.getElementById("${cd.count}");
var strContent=obj.innerHTML;
var strTemp="";
while(strContent.length>intLen){
strTemp+=strContent.substr(0,intLen)+" ";
strContent=strContent.substr(intLen,strContent.length);
}
strTemp+=" "+strContent;
obj.innerHTML=strTemp;
}
if(document.getElementById && !document.all) toBreakWord(10)
// ]]>
</script>
</c:forEach>
<jsp:include page="../cp_footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -