⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listallarticle.jsp

📁 随着信息技术的飞速发展、网上信息量发布的不断增大。针对文章管理这一环节
💻 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 isChecked(){						document.forms.deleteAdminForm.action="admin.do?method=deleteArticle";											}</script><!--<script type="text/javascript">		function delUser(){				count = getCheckedCount("selItem");				if (count == 0){					alert("至少选一条信息!");					document.forms.deleteUserForm.action="<c:url value='admin.do'/>?method=listArticle";				}else if (confirm("确定删除吗?")==false){					document.forms.deleteUserForm.action="<c:url value='admin.do'/>?method=listArticle";				}else{					document.forms.deleteUserForm.action="<c:url value='admin.do'/>?method=deleteArticle";																}			}	</script>--><script type="text/javascript">			function subPage(){				var page=document.getElementById("page").value;				document.location="<c:url value='/pages/admin.do?method=pages&currentpage=' />"+page;			}			</script></head><body>		<c:if test="${!empty message}" >			<script type="text/javascript">				alert('<c:out value="${requestScope.message}"/>');			</script>			<c:remove var="message" scope="request"/>	</c:if>	  <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" action="admin.do?method=deleteArticle"> 	<tr> 	<td width="5%"><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="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">&nbsp;<input type="checkbox" name="selItem" value="${article.topic }"	    /></div></td>	    <td><div align="center"><a href="admin.do?method=findArticle&topic=${article.topic }"/>&nbsp;${article.topic}</a></div></td>	    <td><div align="center">&nbsp;${article.type}</div></td>	    <td><div align="center">&nbsp;${article.articleFrom}</div></td>	    <td><div align="center">&nbsp;${article.author }</div></td>	    <td><div align="center">&nbsp;${article.senddate }</div></td>	    <td><div align="center">&nbsp;${article.hits }</div></td>	  </tr>   </c:forEach>   <tr>    <td align="left"><input type="submit" name="delete" value="删除" onclick="isChecked()"/></td>		<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='admin.do?method=pages&currentpage=${requestScope.currentpage+1}'"/>下一页</a>               									</c:when>	               									<c:otherwise>               										上一页/<a href="#" onclick="self.location='admin.do?method=pages&currentpage=${requestScope.currentpage+1}'"/>下一页</a>               									</c:otherwise>               								</c:choose>            							</c:when>             		  					<c:when test="${requestScope.currentpage==requestScope.pages}">              		 						<a href="#" onclick="self.location='admin.do?method=pages&currentpage=${requestScope.currentpage-1}'"/>上一页</a>/下一页              	   						</c:when>	      	   	   						<c:otherwise>	      				 					<a href="#" onclick="self.location='admin.do?method=pages&currentpage=${requestScope.currentpage-1}'"/>上一页</a>/<a href="#" onclick="self.location='admin.do?method=pages&currentpage=${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 + -