prinfSelectSfzy.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:3k
- <%@ 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="343" 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="167">操作</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="prinfCxss.do?province=<%=form.getSfzy_sfmc()%>&iCount=<%=iCount%>">打印确定</a></td>
- </tr>
- <%}%>
- </table>
- <p>
- <%if(iCount<=1){%>
- <%}else{%>
- <a href="prinfSfzySelectFenYe.do?iCount=<%=iCount-1%>">上一页</a>
- <%}%>
-
- <%if(iCount>=maxPage){%>
- <%}else{%>
- <a href="prinfSfzySelectFenYe.do?iCount=<%=iCount+1%>">下一页</a>
- <%}%>
- </p>
- <p>共<%=maxPage%>页 第<%=iCount%>页 </p>
- <%if(iCount<=1){%> <%}else{%>
- <p><a href="prinfSfzySelect.do">回到第一页</a> </p>
- <%}%>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>