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