?? 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 + -