selectSfzy.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:4k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" errorPage=""%>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="java.util.List"%>
  4. <%@ page import="java.util.ArrayList"%>
  5. <%@ page import="com.domain.FfzyForm"%>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  9. <title>省份表</title>
  10. <style type="text/css">
  11. <!--
  12. body {
  13. background-color: #000000;
  14. margin-left: 0px;
  15. margin-top: 0px;
  16. }
  17. td{
  18. font-size:9pt;
  19. }
  20. .style1 {font-size: 11pt}
  21. -->
  22. </style>
  23. </head>
  24. <body> 
  25. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  26.   <tr> 
  27.     <td>&nbsp;</td> 
  28.   </tr> 
  29. </table> 
  30. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  31.   <tr> 
  32.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  33.         <tr> 
  34.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  35.               <tr> 
  36.                 <td width="2%" height="28">&nbsp;</td> 
  37.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  38.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">省份表</span></td> 
  39.               </tr> 
  40.               <tr style="line-height:2px"> 
  41.                 <td width="2%" height="5">&nbsp;</td> 
  42.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  43.               </tr> 
  44.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  45.                 <td height="454" colspan="3"><br> 
  46.                   <%int maxPage=0;
  47. List list=(List)request.getAttribute("sfzylist");
  48. int total=Integer.parseInt((String)request.getAttribute("total"));
  49. int iCount=Integer.parseInt((String)request.getAttribute("iCount"));
  50. maxPage=total;
  51. if(maxPage%8==0){
  52. maxPage=maxPage/8;
  53. }else{
  54. maxPage=maxPage/8+1;
  55. }
  56. %> 
  57.                  
  58.                   <br> 
  59.                   <table width="513" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666"> 
  60.                     <tr align="center" bgcolor="#ffcc33"> 
  61.                       <td width="130" height="24">省份编号</td> 
  62.                       <td width="123">省份名称</td> 
  63.                       <td width="244">操作</td> 
  64.                     </tr> 
  65.                     <%for (int i=0;i<list.size();i++){
  66. FfzyForm form =(FfzyForm)list.get(i);
  67. %> 
  68.                     <tr bgcolor="#FFFFFF"> 
  69.                       <td height="24"><%=form.getSfzy_id()%></td> 
  70.                       <td><%=form.getSfzy_sfmc()%></td> 
  71.                       <td align="center"><a href="querySfzySelectOne.do?id=<%=form.getSfzy_id()%>&iCount=<%=iCount%>">查看地理位置</a>&nbsp;&nbsp;&nbsp;<a href="csxxSelect.do?province=<%=form.getSfzy_sfmc()%>&iCount=<%=iCount%>">查看具体城市</a></td> 
  72.                     </tr> 
  73.                     <%}%> 
  74.                   </table> 
  75.                   <p> 
  76.                     <%if(iCount<=1){%> 
  77.                     <%}else{%> 
  78.                     <a href="querySfzyFenYe.do?iCount=<%=iCount-1%>">上一页</a> 
  79.                     <%}%> 
  80.                       
  81.                     <%if(iCount>=maxPage){%> 
  82.                     <%}else{%> 
  83.                     <a href="querySfzyFenYe.do?iCount=<%=iCount+1%>">下一页</a> 
  84.                     <%}%> 
  85.                   </p> 
  86.                   <p>共<%=maxPage%>页  第<%=iCount%>页 </p> 
  87. <%if(iCount<=1){%> <%}else{%> 
  88.   <p><a href="querySfzySelect.do">回到第一页</a> </p> 
  89.  <%}%>
  90.             </table></td> 
  91.         </tr> 
  92.       </table></td> 
  93.   </tr> 
  94. </table> 
  95. </body>
  96. </html>