【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“selectSfzy.jsp”一文,供大家参考学习
<%@ page contentType="text/html; charset=gb2312" errorPage=""%>
<%@ page import="java.
sql.*"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="com.domain.FfzyForm"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>省份表</title>
<style type="text/css">
<!--
body {
background-color: #000000;
margin-left: 0px;
margin-top: 0px;
}
td{
font-size:9pt;
}
.style1 {font-size: 11pt}
-->
</style>
</head>
<body>
<table width="579" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> </td>
</tr>
</table>
<table width="579" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="28"> </td>
<td width="9%" background="images/circle.jpg"> </td>
<td width="89%" bgcolor="#FFFFFF"><span class="style1">省份表</span></td>
</tr>
<tr style="line-height:2px">
<td width="2%" height="5"> </td>
<td height="5" colspan="2" bgcolor="#D4D0C8"> </td>
</tr>
<tr align="center" valign="top" bgcolor="#FFFFFF">
<td height="454" colspan="3"><br>
<%int maxPage=0;
List list=(List)request.getAttribute("sfzylist");
int total=Integer.parseInt((String)request.getAttribute("total"));
int iCount=Integer.parseInt((String)request.getAttribute("iCount"));
maxPage=total;
if(maxPage%8==0){
maxPage=maxPage/8;
}else{
maxPage=maxPage/8+1;
}
%>
<br>
<table width="513" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr align="center" bgcolor="#ffcc33">
<td width="130" height="24">省份编号</td>
<td width="123">省份名称</td>
<td width="244">操作</td>
</tr>
<%for (int i=0;i<list.size();i++){
FfzyForm form =(FfzyForm)list.get(i);
%>
<tr bgcolor="#FFFFFF">
<td height="24"><%=form.getSfzy_id()%></td>
<td><%=form.getSfzy_sfmc()%></td>
<td align="center"><a href="querySfzySelectOne.do?id=<%=form.getSfzy_id()%>&iCount=<%=iCount%>">查看地理位置</a> <a href="csxxSelect.do?province=<%=form.getSfzy_sfmc()%>&iCount=<%=iCount%>">查看具体城市</a></td>
</tr>
<%}%>
</table>
<p>
<%if(iCount<=1){%>
<%}else{%>
<a href="querySfzyFenYe.do?iCount=<%=iCount-1%>">上一页</a>
<%}%>
<%if(iCount>=maxPage){%>
<%}else{%>
<a href="querySfzyFenYe.do?iCount=<%=iCount+1%>">下一页</a>
<%}%>
</p>
<p>共<%=maxPage%>页第<%=iCount%>页 </p>
<%if(iCount<=1){%> <%}else{%>
<p><a href="querySfzySelect.do">回到第一页</a> </p>
<%}%>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>