product_greatpoint.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:11k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  3. <jsp:useBean id="light_productBeans" class="MyFly.Bean.light_productBeans" scope="request"/>
  4. <HTML><HEAD><TITLE>咨讯中心—产品靓点</TITLE>
  5. <%@ include file ="top.jsp"%>
  6. <STYLE type=text/css>
  7. A {
  8. TEXT-DECORATION: none
  9. }
  10. A:link {
  11. COLOR: #000000
  12. }
  13. A:visited {
  14. COLOR: #000000
  15. }
  16. A:active {
  17. COLOR: #000000
  18. }
  19. A:hover {
  20. COLOR: #ff6600; POSITION: relative; RIGHT: 0px; TOP: 1px
  21. }
  22. BODY {
  23.  FONT-SIZE: 9pt
  24. }
  25. TD {
  26. COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; LINE-HEIGHT: 150%
  27. }
  28. INPUT {
  29. BACKGROUND-COLOR: #fffdfb; BORDER-BOTTOM: #b2c2d7 1px solid; BORDER-LEFT: #b2c2d7 1px solid; BORDER-RIGHT: #b2c2d7 1px solid; BORDER-TOP: #b2c2d7 1px solid; COLOR: #205064; FONT-SIZE: 9pt
  30. }
  31. BUTTON {
  32. FONT-SIZE: 9pt; HEIGHT: 20px
  33. }
  34. SELECT {
  35. FONT-SIZE: 9pt; HEIGHT: 20px
  36. }
  37. .border {
  38. BORDER-BOTTOM: #fb9f47 1px solid; BORDER-LEFT: #fb9f47 1px solid; BORDER-RIGHT: #fb9f47 1px solid; BORDER-TOP: #fb9f47 1px solid
  39. }
  40. .border2 {
  41. BACKGROUND: #dfe6ee; BORDER-BOTTOM: #b2c2d7 1px solid
  42. }
  43. .FootBg {
  44. BACKGROUND: #eaeaea
  45. }
  46. .tdbg {
  47. BACKGROUND: #eaeaea
  48. }
  49. .txt_css {
  50. }
  51. .title_lefttxt {
  52. }
  53. .title_left2 {
  54. }
  55. .tdbg_left2 {
  56. }
  57. .tdbg_leftall {
  58. BACKGROUND: #dfe6ee; BORDER-RIGHT: #b2c2d7 1px solid
  59. }
  60. .title_righttxt {
  61. }
  62. .tdbg_right {
  63. }
  64. .title_right2 {
  65. }
  66. .tdbg_right2 {
  67. }
  68. .tdbg_rightall {
  69. }
  70. .style6 {font-size: 14pt}
  71. .style9 {font-size: 12pt}
  72. </STYLE>
  73. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  74. <META content="MSHTML 5.00.3700.6699" name=GENERATOR></HEAD>
  75. <BODY background="image/bk.jpg" leftMargin=0  topMargin=0 marginwidth="0" marginheight="0">
  76. <TABLE width=768 border=0 align=center cellPadding=0 cellSpacing=0 bgcolor="#d9eada">
  77.   
  78.   <TBODY>
  79.     <TR> 
  80.       <TD width="264" height="619" vAlign=top bgColor=#d5e7d7><BR> <TABLE cellSpacing=0 cellPadding=0 width=262 border=0>
  81.           
  82.           <TBODY>
  83.             <TR> 
  84.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  85.                   width=10 border=0></TD>
  86.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  87.                   width=20 border=0></TD>
  88.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  89.                   width=204 border=0></TD>
  90.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  91.                   width=28 border=0></TD>
  92.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  93.                   width=1 border=0></TD>
  94.             </TR>
  95.             <TR> 
  96.               <TD><IMG id=zsktleft_r1_c1 height=65 alt="" 
  97.                   src="image/zsktleft_r1_c1.jpg" width=10 border=0 
  98.                   name=zsktleft_r1_c1></TD>
  99.               <TD colSpan=3><img id=zsktleft_r1_c2 height=65 alt="" 
  100.                   src="image/jkzxtop10.jpg" width=252 border=0 
  101.                   name=zsktleft_r1_c2></TD>
  102.               <TD><IMG height=65 alt="" src="image/spacer.gif" 
  103.                   width=1 border=0></TD>
  104.             </TR>
  105.             <TR> 
  106.               <TD bgColor=#d5e7d7 rowSpan=11>&nbsp;</TD>
  107.               <TD background=image/zsktleft_r3_c2.jpg 
  108.                 rowSpan=3>&nbsp;</TD>
  109.               <TD vAlign=top bgColor=#e0f2f2 rowSpan=3> <TABLE 
  110.                   style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid" 
  111.                   cellSpacing=0 cellPadding=1 width="100%" border=0>
  112.                   <TBODY>
  113.                     <TR> 
  114.                       <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" 
  115. border=0>
  116.                           <TBODY>
  117.    <% 
  118.     int num=1;
  119.     light_productBeans.getQuery("10");
  120. for(int i=0; i<light_productBeans.getItems(); i++)
  121. {
  122.                          %>
  123.                             <TR> 
  124.                               <TD width=22 height=25> <DIV align=center><IMG height=11 
  125.                               src="image/3.gif" width=10 
  126.                               align=absMiddle></DIV></TD>
  127.                               <TD width=178><a href="product_greatpoint_new.jsp?index=<%=light_productBeans.getLightID(i)%>" target="_blank"><%=light_productBeans.getTitle(i)%></a></TD>
  128.                             </TR>
  129.  <%
  130.           }
  131.          %>
  132.                          
  133.                           </TBODY>
  134.                         </TABLE>
  135.                       </TD>
  136.                     </TR>
  137.                   </TBODY>
  138.                 </TABLE></TD>
  139.               <TD background=image/zsktleft_r4_c4.jpg 
  140.                 rowSpan=3>&nbsp;</TD>
  141.               <TD><IMG height=320 alt="" src="image/spacer.gif" 
  142.                   width=1 border=0></TD>
  143.             </TR>
  144.             <TR> 
  145.               <TD><IMG height=19 alt="" src="image/spacer.gif" 
  146.                   width=1 border=0></TD>
  147.             </TR>
  148.             <TR> 
  149.               <TD><IMG height=14 alt="" src="image/spacer.gif" 
  150.                   width=1 border=0></TD>
  151.             </TR>
  152.             <TR> 
  153.               <TD colSpan=3><IMG id=zsktleft_r5_c2 height=17 alt="" 
  154.                   src="image/zsktleft_r5_c2.jpg" width=252 border=0 
  155.                   name=zsktleft_r5_c2></TD>
  156.               <TD><IMG height=17 alt="" src="image/spacer.gif" 
  157.                   width=1 border=0></TD>
  158.             </TR>
  159.             <TR> </TR>
  160.           </TBODY>
  161.         </TABLE></TD>
  162.       <TD width="504" rowspan="2" vAlign=top> <TABLE width=504 border=0 cellPadding=0 cellSpacing=0 bgcolor="#d5e7d7">
  163.           <!--DWLayoutTable-->
  164.           <!-- fwtable fwsrc="招商动态(2)右.png" fwbase="zsktrig.jpg" fwstyle="Dreamweaver" fwdocid = "1739784415" fwnested="0" -->
  165.           <TBODY>
  166.             <TR> 
  167.               <TD width="8" height="1"><IMG height=1 alt="" src="image/spacer.gif" 
  168.                   width=8 border=0></TD>
  169.               <TD width="483"><IMG height=1 alt="" src="image/spacer.gif" 
  170.                   width=469 border=0></TD>
  171.               <TD width="11"><IMG height=1 alt="" src="image/spacer.gif" 
  172.                   width=11 border=0></TD>
  173.               <TD width="1"><IMG height=1 alt="" src="image/spacer.gif" 
  174.                   width=1 border=0></TD>
  175.               <td width="1"></td>
  176.             </TR>
  177.             <TR> 
  178.               <TD height="81" colSpan=2><IMG id=zsktrig_r1_c1 height=81 alt="" 
  179.                   src="image/zsktrig_r1_c1.jpg" width=491 border=0 
  180.                   name=zsktrig_r1_c1></TD>
  181.               <TD vAlign=bottom bgColor=#d9eada rowSpan=3></TD>
  182.               <TD><IMG height=81 alt="" src="image/spacer.gif" 
  183.                   width=1 border=0></TD>
  184.               <td></td>
  185.             </TR>
  186.             <TR> 
  187.               <TD rowSpan=4 bgcolor="#d9eada">&nbsp;</TD>
  188.               <TD vAlign=top bgColor=#ffffff> <DIV align=center> 
  189.                   <TABLE cellSpacing=0 cellPadding=6 width="100%" align=center 
  190.                   border=0>
  191.                     <TBODY>
  192.                       <TR> 
  193.                         <TD bgColor=#e3cfae> <img src="image/xz07.gif" width="16" height="16"> 
  194.                           <strong>当前位置: </strong><a href="index.jsp">首页</a><strong> 
  195.                           --&gt; </strong>产品靓点 <DIV align=center></DIV></TD>
  196.                       </TR>
  197.                     </TBODY>
  198.                   </TABLE>
  199.                   
  200.                 </DIV>
  201.                 <TABLE cellSpacing=0 cellPadding=0 width=456 align=center 
  202.                   border=0>
  203.                   <TBODY>
  204.                     <TR> 
  205.                       <TD height="355" vAlign=top background="image/bk1.jpg" style="LINE-HEIGHT: 200%"> 
  206.                         <DIV> <br>
  207.                           &nbsp; &nbsp; <%
  208.       int size=15;
  209.       String strNum=request.getParameter("pageNum");
  210.   int cur;
  211.   light_productBeans.init(size);
  212.   int pageNum=light_productBeans.get_pageCount(); //取得总页数
  213.       if(strNum == null || strNum.equals(""))
  214.   {
  215.        cur=1;
  216.   }
  217.   else
  218.   {
  219.            cur=Integer.parseInt(strNum);//取得要显示的页
  220.   }
  221.  if(cur < 1)
  222.  {
  223.     cur = 1;
  224.      }
  225.  if(cur > pageNum)
  226.  {
  227.    cur = pageNum;
  228.  }
  229.   
  230.   light_productBeans.get_pageRow(cur);
  231.   
  232.   for(int i=0; i<light_productBeans.getItems(); i++)
  233.   {
  234.  %>
  235.                           <a href="product_greatpoint_new.jsp?index=<%=light_productBeans.getLightID(i)%>"><%=light_productBeans.getTitle(i)%></a><br>
  236.                           &nbsp;&nbsp;&nbsp; 
  237.                           <%    
  238.   }
  239. %>
  240.                           <br>
  241.                           </p>
  242.                          
  243.                         </DIV></TD>
  244.                     </TR>
  245.                   </TBODY>
  246.                 </TABLE>
  247.                 <table width="100%" border="0">
  248.                   <tr>
  249.                     <td height="56"><div align="center"><a href="product_greatpoint.jsp?pageNum=<%=1%>">首页 
  250.                        
  251.                         </a><a href="product_greatpoint.jsp?pageNum=<%=cur-1 %>">上一页</a> 
  252.                         &nbsp; 
  253.                         
  254.                         <a href="product_greatpoint.jsp?pageNum=<%=cur+1 %>">下一页</a> 
  255.                        
  256.                         <a href="product_greatpoint.jsp?pageNum=<%=pageNum%>">尾页</a>&nbsp;页次: 
  257.                         <STRONG><FONT 
  258.                   color=red><%=cur%></FONT>/<%=pageNum%></STRONG>页 &nbsp;<B><%=size%></B>条/页&nbsp;转到: 
  259.                         <script language="javascript">
  260.    function fun(str)
  261.    {
  262.       window.location.href="product_greatpoint.jsp?pageNum=" +str;
  263.   
  264.    }
  265.    </script>
  266.                         <SELECT name=sel
  267.                   onchange="fun(sel.options[sel.options.selectedIndex].value)" size=cur>
  268.                           <% 
  269.      for(int i=pageNum; i>=1; i--)
  270.  {
  271.  %>
  272.                           <OPTION selected value=<%=i%>>第<%=i%>页</OPTION>
  273.                           <%
  274. }
  275. %>
  276.                         </SELECT>
  277.                       </div></td>
  278.                   </tr>
  279.                 </table>
  280.                 
  281.               </TD>
  282.               <TD height="468"><IMG height=39 alt="" src="image/spacer.gif" 
  283.                   width=1 border=0></TD>
  284.               <td></td>
  285.             </TR>
  286.             <TR> 
  287.               <TD height="68" vAlign=top bgColor=#ffffff><img src="image/tfy.jpg" width="483" height="69"></TD>
  288.               <TD rowspan="4"><IMG height=50 alt="" src="image/spacer.gif" 
  289.                   width=1 border=0> </TR>
  290.           </TBODY>
  291.         </TABLE></TD>
  292.     </TR>
  293.   </TBODY>
  294. </TABLE>
  295. <%@ include file ="foot.jsp"%>
  296. </BODY></HTML>