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

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="newBean" class="MyFly.Bean.newBean" scope="request"/>
  4. <jsp:useBean id="newBeans" class="MyFly.Bean.newBeans" scope="request"/>
  5. <%@ include file ="top.jsp" %>
  6. <%
  7.     String index=request.getParameter("index");
  8. %>
  9. <style type="text/css">
  10. <!--
  11. p{text-indent:2em}
  12. -->
  13. </style>
  14. <%!
  15.  StringBuffer convert(StringBuffer sour){
  16. for(int i=0;i<sour.length();i++){
  17. if(sour.substring(i,i+1).equals("n")){
  18. sour.delete(i,i+1);
  19. sour.insert(i,"</p><p>");
  20. }
  21. }
  22. return sour;
  23. }
  24. %>
  25. <HTML>
  26. <HEAD>
  27. <TITLE>新闻详情</TITLE>
  28. <STYLE type=text/css>
  29. A {
  30. TEXT-DECORATION: none
  31. }
  32. A:link {
  33. COLOR: #000000
  34. }
  35. A:visited {
  36. COLOR: #000000
  37. }
  38. A:active {
  39. COLOR: #000000
  40. }
  41. A:hover {
  42. COLOR: #ff6600; POSITION: relative; RIGHT: 0px; TOP: 1px
  43. }
  44. BODY {
  45.  FONT-SIZE: 9pt
  46. }
  47. TD {
  48. COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; LINE-HEIGHT: 150%
  49. }
  50. INPUT {
  51. 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
  52. }
  53. BUTTON {
  54. FONT-SIZE: 9pt; HEIGHT: 20px
  55. }
  56. SELECT {
  57. FONT-SIZE: 9pt; HEIGHT: 20px
  58. }
  59. .border {
  60. BORDER-BOTTOM: #fb9f47 1px solid; BORDER-LEFT: #fb9f47 1px solid; BORDER-RIGHT: #fb9f47 1px solid; BORDER-TOP: #fb9f47 1px solid
  61. }
  62. .border2 {
  63. BACKGROUND: #dfe6ee; BORDER-BOTTOM: #b2c2d7 1px solid
  64. }
  65. .FootBg {
  66. BACKGROUND: #eaeaea
  67. }
  68. .title {
  69.  HEIGHT: 28px
  70. }
  71. .tdbg {
  72. BACKGROUND: #eaeaea
  73. }
  74. .txt_css {
  75. }
  76. .title_lefttxt {
  77. }
  78. .title_left {
  79.   HEIGHT: 34px
  80. }
  81. .tdbg_left {
  82. BACKGROUND: #f3f1f1; BORDER-BOTTOM: #fb9f47 1px solid; BORDER-LEFT: #fb9f47 1px solid; BORDER-RIGHT: #fb9f47 1px solid; BORDER-TOP: #fb9f47 1px solid
  83. }
  84. .title_left2 {
  85. }
  86. .tdbg_left2 {
  87. }
  88. .tdbg_leftall {
  89. BACKGROUND: #dfe6ee; BORDER-RIGHT: #b2c2d7 1px solid
  90. }
  91. .title_righttxt {
  92. }
  93. .title_right {
  94.  HEIGHT: 32px
  95. }
  96. .tdbg_right {
  97. }
  98. .title_right2 {
  99. }
  100. .tdbg_right2 {
  101. }
  102. .tdbg_rightall {
  103. }
  104. .style6 {font-size: 14pt}
  105. .style9 {font-size: 12pt}
  106. </STYLE>
  107. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  108. <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
  109. <BODY leftMargin=0  topMargin=0 marginheight="0" marginwidth="0" background="image/bk.jpg">
  110. <TABLE width=768 border=0 align=center cellPadding=0 cellSpacing=0 bgcolor="#d9eada">
  111.   <!--DWLayoutTable-->
  112.   <TBODY>
  113.     <TR> 
  114.       <TD width="264" height="619" vAlign=top bgColor=#d5e7d7><BR> <TABLE cellSpacing=0 cellPadding=0 width=262 border=0>
  115.           <!-- fwtable fwsrc="招商动态(2)左.png" fwbase="zsktleft.jpg" fwstyle="Dreamweaver" fwdocid = "1739784415" fwnested="0" -->
  116.           <TBODY>
  117.             <TR> 
  118.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  119.                   width=10 border=0></TD>
  120.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  121.                   width=20 border=0></TD>
  122.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  123.                   width=204 border=0></TD>
  124.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  125.                   width=28 border=0></TD>
  126.               <TD><IMG height=1 alt="" src="image/spacer.gif" 
  127.                   width=1 border=0></TD>
  128.             </TR>
  129.             <TR> 
  130.               <TD><IMG id=zsktleft_r1_c1 height=65 alt="" 
  131.                   src="image/zsktleft_r1_c1.jpg" width=10 border=0 
  132.                   name=zsktleft_r1_c1></TD>
  133.               <TD colSpan=3><img id=zsktleft_r1_c2 height=65 alt="" 
  134.                   src="image/xwdttop10.jpg" width=252 border=0 
  135.                   name=zsktleft_r1_c2></TD>
  136.               <TD><IMG height=65 alt="" src="image/spacer.gif" 
  137.                   width=1 border=0></TD>
  138.             </TR>
  139.             <TR> 
  140.               <TD bgColor=#d5e7d7 rowSpan=11>&nbsp;</TD>
  141.               <TD background=image/zsktleft_r3_c2.jpg 
  142.                 rowSpan=3>&nbsp;</TD>
  143.               <TD vAlign=top bgColor=#e0f2f2 rowSpan=3> <TABLE 
  144.                   style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid" 
  145.                   cellSpacing=0 cellPadding=1 width="100%" border=0>
  146.                   <TBODY>
  147.                     <TR> 
  148.                       <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" 
  149. border=0>
  150.                           <TBODY>
  151.    <% 
  152.     int num=1;
  153.     newBeans.getQuery("10");
  154. for(int i=0; i<newBeans.getItems(); i++)
  155. {
  156.                          %>
  157.                             <TR> 
  158.                               <TD width=22 height=25> <DIV align=center><IMG height=11 
  159.                               src="image/3.gif" width=10 
  160.                               align=absMiddle></DIV></TD>
  161.                               <TD width=178><a href="news.jsp?index=<%=newBeans.getNewID(i)%>"><%=newBeans.getTopic(i)%></a></TD>
  162.                             </TR>
  163.                            
  164.         <%
  165. }
  166. %>
  167.                           </TBODY>
  168.                         </TABLE>                
  169.                 </TD>
  170.                     </TR>
  171.                   </TBODY>
  172.                 </TABLE></TD>
  173.               <TD background=image/zsktleft_r4_c4.jpg 
  174.                 rowSpan=3>&nbsp;</TD>
  175.               <TD><IMG height=320 alt="" src="image/spacer.gif" 
  176.                   width=1 border=0></TD>
  177.             </TR>
  178.             <TR> 
  179.               <TD><IMG height=19 alt="" src="image/spacer.gif" 
  180.                   width=1 border=0></TD>
  181.             </TR>
  182.             <TR> 
  183.               <TD><IMG height=14 alt="" src="image/spacer.gif" 
  184.                   width=1 border=0></TD>
  185.             </TR>
  186.             <TR> 
  187.               <TD colSpan=3><IMG id=zsktleft_r5_c2 height=17 alt="" 
  188.                   src="image/zsktleft_r5_c2.jpg" width=252 border=0 
  189.                   name=zsktleft_r5_c2></TD>
  190.               <TD><IMG height=17 alt="" src="image/spacer.gif" 
  191.                   width=1 border=0></TD>
  192.             </TR>
  193.             <TR> </TR>
  194.           </TBODY>
  195.         </TABLE></TD>
  196.       <TD width="504" rowspan="2" vAlign=top> <TABLE width=504 border=0 cellPadding=0 cellSpacing=0 bgcolor="#d5e7d7">
  197.           <!--DWLayoutTable-->
  198.           <!-- fwtable fwsrc="招商动态(2)右.png" fwbase="zsktrig.jpg" fwstyle="Dreamweaver" fwdocid = "1739784415" fwnested="0" -->
  199.           <TBODY>
  200.             <TR> 
  201.               <TD width="8" height="1"><IMG height=1 alt="" src="image/spacer.gif" 
  202.                   width=8 border=0></TD>
  203.               <TD width="483"><IMG height=1 alt="" src="image/spacer.gif" 
  204.                   width=469 border=0></TD>
  205.               <TD width="11"><IMG height=1 alt="" src="image/spacer.gif" 
  206.                   width=11 border=0></TD>
  207.               <TD width="1"><IMG height=1 alt="" src="image/spacer.gif" 
  208.                   width=1 border=0></TD>
  209.               <td width="1"></td>
  210.             </TR>
  211.             <TR> 
  212.               <TD height="81" colSpan=2><IMG id=zsktrig_r1_c1 height=81 alt="" 
  213.                   src="image/zsktrig_r1_c1.jpg" width=491 border=0 
  214.                   name=zsktrig_r1_c1></TD>
  215.               <TD vAlign=bottom bgColor=#d9eada rowSpan=3></TD>
  216.               <TD><IMG height=81 alt="" src="image/spacer.gif" 
  217.                   width=1 border=0></TD>
  218.               <td></td>
  219.             </TR>
  220.             <TR> 
  221.               <TD rowSpan=4 bgcolor="#d9eada">&nbsp;</TD>
  222.               <TD vAlign=top bgColor=#ffffff> <DIV align=center> 
  223.                   <TABLE cellSpacing=0 cellPadding=6 width="100%" align=center 
  224.                   border=0>
  225.                     <TBODY>
  226.                       <TR> 
  227.                         <TD bgColor=#e3cfae height=20> 
  228.   <%
  229.      if(newBean.getNew(Integer.parseInt(index)))
  230.  {
  231.   %>
  232. <DIV align=center><SPAN 
  233.                         style="FONT-SIZE: 16px; COLOR: #050099"><B><%=newBean.getTopic()%></B></SPAN></DIV></TD>
  234.                       </TR>
  235.                     </TBODY>
  236.                   </TABLE>
  237.                   <SPAN 
  238.                   class=S><BR>
  239.                   发布者:<%=newBean.getOrigin()%> &nbsp;发布时间:【<%=newBean.getAppendTime()%>】 
  240.                   <BR>
  241.                   &nbsp; </SPAN></DIV>
  242.                 <TABLE cellSpacing=0 cellPadding=0 width=456 align=center 
  243.                   border=0>
  244.                   <TBODY>
  245.                     <TR> 
  246.                       <TD height="416" vAlign=top background="image/bk1.jpg" style="LINE-HEIGHT: 200%"> 
  247.                         <DIV><%=convert(new StringBuffer(newBean.getContent()))%> 
  248.                           <%
  249. }
  250. %>
  251.                           <br>
  252.                         </DIV>
  253.                       </TD>
  254.                     </TR>
  255.                   </TBODY>
  256.                 </TABLE>
  257.                 <p align="right"><A 
  258.                         href="javascript:window.print()">打印本页</A> || <A 
  259.                         href="javascript:window.close()">关闭窗口</A></p></TD>
  260.               <TD height="39"><IMG height=39 alt="" src="image/spacer.gif" 
  261.                   width=1 border=0></TD>
  262.               <td></td>
  263.             </TR>
  264.             <TR> 
  265.               <TD height="68" vAlign=top bgColor=#ffffff><img src="image/tfy.jpg" width="483" height="69"></TD>
  266.               <TD rowspan="4"><IMG height=50 alt="" src="image/spacer.gif" 
  267.                   width=1 border=0> </TR>
  268.           </TBODY>
  269.         </TABLE></TD>
  270.     </TR>
  271.   </TBODY>
  272. </TABLE>
  273. <%@ include file ="foot.jsp"%>
  274. </BODY></HTML>