📄 tags.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 />
<c:choose>
<c:when test="${empty notfirst}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="2">标签管理</td></tr>
<tr>
<td class="altbg2">
标签总数: ${count} (锁定 ${closecount})<br />
热门标签:<br />
<c:forEach var="tag" items="${hottag}">
<a href="tag.jsp?name=<jrun:encoding value="${tag.tagname}"/>" target="_blank">${tag.tagname}<em>(${tag.total})</em></a>
</c:forEach>
</td>
</tr>
</table>
<br />
<form method="post" action="admincp.jsp?action=tags&search=yes">
<input type="hidden" name="formhash" value="427b26aa">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="2">搜索标签</td></tr>
<tr>
<td class="altbg1" width="45%">标签:</td>
<td align="right" class="altbg2" width="40%">不区分大小写 <input type="checkbox" name="cins" value="1" class="checkbox">
<br /><input type="text" name="tagname" size="40" value=""></td>
</tr>
<tr>
<td class="altbg1" width="45%">主题数 低于:</td>
<td align="right" class="altbg2" width="40%"><input type="text" name="threadnumlower" size="40" value=""></td>
</tr>
<tr>
<td class="altbg1" width="45%">主题数 高于:</td>
<td align="right" class="altbg2" width="40%"><input type="text" name="threadnumhigher" size="40" value=""></td>
</tr>
<tr>
<td class="altbg1" width="45%">状态:</td>
<td align="right" class="altbg2" width="40%">
<input type="radio" name="status" value="-1" class="radio" checked> 全部
<input type="radio" name="status" value="1" class="radio"> 锁定
<input type="radio" name="status" value="0" class="radio"> 开放
</td>
</tr>
</table>
<br />
<center><input name="tagsearchsubmit" class="button" type="submit" value="搜索标签"></center>
</form>
</c:when>
<c:otherwise>
<form method="post" action="admincp.jsp?action=tags&batch=yes&page=1">
<input type="hidden" name="formhash" value="427b26aa">
<input type="hidden" name="tagname" value="${tagname}">
<input type="hidden" name="threadnumlower" value="${threadnumlower}">
<input type="hidden" name="threadnumhigher" value="${threadnumhigher}">
<input type="hidden" name="status" value="0">
<input type="hidden" name="hiddenSB" value="${hiddenSB}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="3">标签管理</td></tr>
<tr class="category">
<td>标签</td>
<td>主题数</td>
<td width="300">
<input class="button" type="button" value="全部删除" onclick="checkalloption(this.form, '-1')">
<input class="button" type="button" value="全部锁定" onclick="checkalloption(this.form, '1')">
<input class="button" type="button" value="全部开放" onclick="checkalloption(this.form, '0')">
</td>
</tr>
<!-- ***************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > 100}">
<div class="pages">
<em> ${logpage.totalSize} </em>
<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<a
href="admincp.jsp?action=tags&seachpage=yes&page=1&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}"
class="first">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a
href="admincp.jsp?action=tags&seachpage=yes&page=${logpage.prePage}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}"
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=tags&seachpage=yes&page=${num}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}">${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=tags&seachpage=yes&page=${num}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}">${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=tags&seachpage=yes&page=${num}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}">${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=tags&seachpage=yes&page=${num}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}">${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=tags&seachpage=yes&page=${logpage.nextPage}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}"
class="next">››</a>
</c:if>
<!-- 如果超过一定范围则显示... -->
<c:if
test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
<a
href="admincp.jsp?action=tags&seachpage=yes&page=${logpage.totalPage}&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}"
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=tags&seachpage=yes&tagname=${tagname}&threadnumlower=${threadnumlower}&threadnumhigher=${threadnumhigher}&status=${status}&cins=${cins}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<c:forEach items="${tagsList}" var="tag">
<tr>
<td class="altbg1"><a href="tag.jsp?name=<jrun:encoding value="${tag.tagname}"/>" target="_blank">${tag.tagname}</a></td>
<td class="altbg2">${tag.total}</td>
<td class="altbg1" style="text-align: center"><input name="tag[${tag.tagname}]" type="radio" class="radio" value="-1" ${tag.closed == -1?"checked":""}> 删除 <input name="tag[${tag.tagname}]" type="radio" class="radio" value="1" ${tag.closed == 1?"checked":""}> 锁定 <input name="tag[${tag.tagname}]" type="radio" class="radio" value="0" ${tag.closed == 0?"checked":""}> 开放</td>
</tr>
</c:forEach>
</table>
<br />
<center><input name="tagsubmit" class="button" type="submit" value="提 交"></center>
</form>
</c:otherwise>
</c:choose>
<jsp:include page="../cp_footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -