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

📄 page1.jsp

📁 SSH开发的电子政务系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<!--分页开始-->
<table border="0" cellspacing="3" cellpadding="0" align="left" width="565">
	<tr align="center">
		<td width="80%"></td>
		<td nowrap class="pageStyle">共<font color="red"><%=allCount%></font>记录</td>
		<td nowrap class="pageStyle">第<font color="red"><%=currentPage%></font>/<%=allPage%>页
		<td nowrap class="pageStyle">
		  <% if(currentPage>1){ %>
		  <a href="<%=request.getRequestURI()%>?currentpage=1&currentId=<%=currentId%>">首页</a>
		  <% }else{ %>首页<%}%>
		</td>
		<td nowrap class="pageStyle">
		  <% if(currentPage>1){ %>
		  <a href="<%=request.getRequestURI()%>?currentPage=<%=currentPage-1%>&currentId=<%=currentId%>">上一页</a>
		  <% }else{ %>上一页<%}%>
		</td>
		<td nowrap class="pageStyle">
		  <% if(currentPage<allPage){ %>
		  <a href="<%=request.getRequestURI()%>?currentPage=<%=currentPage+1%>&currentId=<%=currentId%>">下一页</a>
		  <% }else{ %>下一页<%}%>
		</td>
		<td nowrap class="pageStyle">
		  <% if(currentPage<allPage){ %>
		  <a href="<%=request.getRequestURI()%>?currentPage=<%=allPage%>&currentId=<%=currentId%>">尾页</a>
		  <% }else{ %>尾页<%}%>
		</td>
		<td nowrap class="pageStyle">第
		  <select name="select2" onchange="location.href='<%=request.getRequestURI()%>?currentId=<%=currentId%>&currentPage='+this.options[this.selectedIndex].value;">
			<%
			  String selectedOption = "";
			  for(int i=1;i<=allPage;i++){
			   if(i==currentPage){
				   selectedOption = "selected";
			   }else{
				   selectedOption = "";
			   }
			%>
				<option value="<%=i%>" <%=selectedOption%>><%=i%></option>
			<%}%>
		  </select> 页
		</td>
	</tr>
</table>
<!--分页结束-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -