【JSP开源代码栏目提醒】:网学会员为广大网友收集整理了,selectSfzyCity.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.CsxxForm"%>
<%@ page import="com.tool.Chinese"%>
<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">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" 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">具体城市</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"><p><br>
<%int iCount=Integer.parseInt((String)request.getParameter("iCount"));%>
<%
String province=Chinese.str(request.getParameter("province"));
int maxPage=0;
List list=(List)request.getAttribute("form");
int total=Integer.parseInt((String)request.getAttribute("totalCity"));
int number=Integer.parseInt((String)request.getAttribute("number"));
maxPage=total;
if(maxPage%8==0){
maxPage=maxPage/8;
}else{
maxPage=maxPage/8+1;
}
%>
<%=province%><br>
<br>
</p>
<table width="542" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr align="center" bgcolor="#ffcc33">
<td width="109">省份简称</td>
<td width="210">城市名称</td>
<td width="101">邮编</td>
<td width="101">电话区号</td>
</tr>
<%for(int i=0;i<list.size();i++){
CsxxForm form =(CsxxForm)list.get(i);
%>
<tr bgcolor="#FFFFFF">
<td><%=form.getCxss_csjc()%></td>
<td><%=form.getCsxx_csmc()%></td>
<td><%=form.getCsxx_yb()%></td>
<td><%=form.getCsxx_dhph()%></td>
</tr>
<%}%>
</table>
<p>
<%if(number<=1){%>
<%}else{%>
<a href="csxxFenYe.do?number=<%=number-1%>&province=<%=province%>&iCount=<%=iCount%>">上一页</a><%}%>      
<%if(number>=maxPage){%>
<%}else{%>
<a href="csxxFenYe.do?number=<%=number+1%>&province=<%=province%>&iCount=<%=iCount%>">下一页</a><%}%></p>
<p> 共<%=maxPage%>页第<%=number%>页<br>
<br><%if(number<=1){%> <%}else{%>
<p><a href="csxxSelect.do?province=<%=province%>&iCount=<%=iCount%>">回到第一页</a> <%}%>
<%if(iCount<=1){%>
<a href="querySfzySelect.do">返回</a>
<%}else{%>
<a href="querySfzyFenYe.do?iCount=<%=iCount%>">返回</a>
<%}%></p>
<br>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
上一篇:
selectSfzy.jsp
下一篇:
白色姜花,略微开了