📄 listallarticle.jsp
字号:
<%@page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/c.tld" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../../css/shct10000.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function subPage(){ var page=document.getElementById("page").value; document.location="<c:url value='/pages/user.do?method=pages¤tpage=' />"+page; } </script>
</head>
<body>
<table width="776" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="card1" width="776" align="center" bgcolor="#3D84CD" style="cursor:hand; color:#ffffff; font-size:14px; font-weight:bold">
所有文章</td>
</tr>
</table>
<table width="96%" border="1" cellspacing="0" cellpadding="0">
<form name="deleteAdminForm" method="post">
<tr>
<td width="15%"><div align="center"><strong>主题</strong></div></td>
<td width="15%"><div align="center"><strong>类别</strong></div></td>
<td width="20%"><div align="center"><strong>出处</strong></div></td>
<td width="15%"><div align="center"><strong>作者</strong></div></td>
<td width="15%"><div align="center"><strong>上传时间</strong></div></td> <td width="15%"><div align="center"><strong>点击次数</strong></div></td>
</tr>
<c:forEach var="article" items="${requestScope.articles}" >
<tr>
<td><div align="center"><a href="user.do?method=addhits&topic=${article.topic }"/> ${article.topic}</a></div></td>
<td><div align="center"> ${article.type}</div></td>
<td><div align="center"> ${article.articleFrom }</div></td>
<td><div align="center"> ${article.author }</div></td>
<td><div align="center"> ${article.senddate }</div></td>
<td><div align="center"> ${article.hits }</div></td>
</tr>
</c:forEach>
<tr> <td colspan="6" align="center">共 <span class="fontred">${requestScope.adminnum}</span> 条信息 当前第 <span class="fontred">${requestScope.currentpage}</span> 页 共有 <span class="fontred">${requestScope.pages}</span> 页 <c:choose> <c:when test="${requestScope.currentpage==1}"> <c:choose> <c:when test="${requestScope.currentpage==1}" > 上一页/<a href="#" onclick="self.location='user.do?method=pages¤tpage=${requestScope.currentpage+1}'"/>下一页</a> </c:when> <c:otherwise> 上一页/<a href="#" onclick="self.location='user.do?method=pages¤tpage=${requestScope.currentpage+1}'"/>下一页</a> </c:otherwise> </c:choose> </c:when> <c:when test="${requestScope.currentpage==requestScope.pages}"> <a href="#" onclick="self.location='user.do?method=pages¤tpage=${requestScope.currentpage-1}'"/>上一页</a>/下一页 </c:when> <c:otherwise> <a href="#" onclick="self.location='user.do?method=pages¤tpage=${requestScope.currentpage-1}'"/>上一页</a>/<a href="#" onclick="self.location='user.do?method=pageAdmin¤tpage=${requestScope.currentpage+1}'"/>下一页</a> </c:otherwise> </c:choose> 转到 <select name="select" id="page" onchange="subPage();" style="width: 50;height: 25"> <c:forEach begin="1" end="${requestScope.pages}" var="num"> <c:choose> <c:when test="${requestScope.currentpage==num}"> <option value="${num}" selected>${num}</option> </c:when> <c:otherwise> <option value="${num}" >${num}</option> </c:otherwise> </c:choose> </c:forEach> </select> </td> </tr> </form> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -