📄 magiclog.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="tableborder">
<tr class="header"><td colspan="3">道具操作记录</td></tr>
<form method="post" action="admincp.jsp?action=magiclog">
<input type="hidden" name="caction" value="lpp">
<tr class="altbg2"><td width="20%">每页显示记录数量</td>
<td width="62%"><input type="text" name="lpp" size="40" maxlength="40" value="${lpp}"></td>
<td width="18%"><input class="button" type="submit" value="提 交"></td></tr>
</form>
<form method="post" action="admincp.jsp?action=magiclog">
<input type="hidden" name="caction" value="magicname">
<tr class="altbg1"><td>道具种类</td><td>
<select name="magicid">
<option value="0">所有道具</option>
<c:forEach items="${magicList}" var="magic">
<option value="${magic.magicid}" <c:if test="${magicid==magic.magicid}">selected</c:if>>${magic.name}</option>
</c:forEach>
</select></td>
<td><input class="button" type="submit" value="提 交"></td></tr>
</form>
<form method="post" action="admincp.jsp?action=magiclog">
<input type="hidden" name="caction" value="opertar">
<c:forEach items="${operations}" var="opertion">
<c:if test="${opertion=='1'}">
<c:set scope="page" var="a" value="${opertion}"></c:set>
</c:if>
<c:if test="${opertion=='2'}">
<c:set scope="page" var="b" value="${opertion}"></c:set>
</c:if>
<c:if test="${opertion=='3'}">
<c:set scope="page" var="c" value="${opertion}"></c:set>
</c:if>
<c:if test="${opertion=='4'}">
<c:set scope="page" var="d" value="${opertion}"></c:set>
</c:if>
<c:if test="${opertion=='5'}">
<c:set scope="page" var="e" value="${opertion}"></c:set>
</c:if>
</c:forEach>
<tr class="altbg2"><td>动作</td>
<td>
<input class="checkbox" type="checkbox" name="operations" value="1" <c:if test="${a=='1'}">checked</c:if>> 购买记录
<input class="checkbox" type="checkbox" name="operations" value="2" <c:if test="${b=='2'}">checked</c:if>> 使用记录
<input class="checkbox" type="checkbox" name="operations" value="3" <c:if test="${c=='3'}">checked</c:if>> 赠送/获增记录
<input class="checkbox" type="checkbox" name="operations" value="4" <c:if test="${d=='4'}">checked</c:if>> 黑市出售记录
<input class="checkbox" type="checkbox" name="operations" value="5" <c:if test="${e=='5'}">checked</c:if>> 黑市购买记录
</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="16%">用户名</td>
<td width="16%">名称</td>
<td width="17%">时间</td>
<td width="16%">数量</td>
<td width="15%">价格</td>
<td width="20%">动作</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=magiclog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&lpp=${lpp}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach items="${magicloglist}" var="magiclog">
<tr align="center">
<td class="altbg1">
<a href="space.jsp?action=viewpro&username=<jrun:encoding value="${magiclog.username}"/>" target="_blank">${magiclog.username}
</td>
<td class="altbg2">${magiclog.magicname}</td>
<td class="altbg1">${magiclog.datetime}</td>
<td class="altbg2">${magiclog.amount}</td>
<td class="altbg1">${magiclog.price}</td>
<td class="altbg2">${magiclog.opertar}</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=magiclog&lpp=${lpp}&page=1"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="admincp.jsp?action=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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=magiclog&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 + -