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

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="succeedcasePageBean" class="MyFly.Bean.succeedcasePageBean" scope="request"/>
  4. <jsp:useBean id="succeedcaseBean" class="MyFly.Bean.succeedcaseBean" scope="request"/>
  5. <%@ include file="top.jsp" %>
  6. <%
  7.     String index=request.getParameter("index");
  8. %>
  9. <HTML><HEAD><TITLE>星海图书网</TITLE>
  10. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  11. href="image/buyok_shop.css" type=text/css 
  12. rel=stylesheet><LINK href="image/table.css" type=text/css 
  13. rel=stylesheet><LINK href="image/buyok_shop.css" 
  14. type=text/css rel=stylesheet>
  15. <STYLE type=text/css>BODY {
  16. MARGIN: 0px
  17. }
  18. .STYLE1 {
  19. COLOR: #ff3300
  20. }
  21. .STYLE2 {
  22. COLOR: #ff0000
  23. }
  24. </STYLE>
  25. <%!
  26.  StringBuffer convert(StringBuffer sour){
  27. for(int i=0;i<sour.length();i++){
  28. if(sour.substring(i,i+1).equals("n")){
  29. sour.delete(i,i+1);
  30. sour.insert(i,"</p><p>");
  31. }
  32. }
  33. return sour;
  34. }
  35. %>
  36. <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
  37. <BODY>
  38. <CENTER>
  39. <STYLE type=text/css>BODY {
  40. FONT-SIZE: 12px
  41. }
  42. TD {
  43. FONT-SIZE: 12px
  44. }
  45. TH {
  46. FONT-SIZE: 12px
  47. }
  48. BODY {
  49. MARGIN: 0px
  50. }
  51. </STYLE>
  52. <LINK href="image/buyok_shop.css" type=text/css 
  53. rel=stylesheet>
  54. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  55. bgColor=#ffffff border=0>
  56.   <TBODY>
  57.   <TR>
  58.       <TD vAlign=top align=left height=55><IMG height=55 src="image/yzdt1.gif" width=255></TD>
  59.                         
  60.   </TR>
  61.   <TR>
  62.     <TD vAlign=top align=left width=210 bgColor=#fafafa>
  63.  <TABLE width="238" height="22" 
  64. border=0 cellPadding=0 cellSpacing=0>
  65.                           <TBODY>
  66.     <% 
  67.      int num=1;
  68.      succeedcasePageBean.getQuery("10");
  69.  for(int i=0; i<succeedcasePageBean.getItems(); i++)
  70.  {
  71.                          %>
  72.                             <TR> 
  73.                               <TD width=22 height=22> <DIV align=center><IMG height=11 
  74.                               src="image/jt_2.gif" width=10 
  75.                               align=absMiddle></DIV></TD>
  76.                               <TD width=178><a href="disBook.jsp?index=<%=succeedcasePageBean.getSucceedID(i)%>" target="_blank"><%=succeedcasePageBean.getTopic(i)%></a></a></TD>
  77.                             </TR>
  78.                            
  79.         <%
  80. }
  81. %>
  82.                           </TBODY>
  83.         </TABLE>                
  84.              
  85.       </TD>
  86.     <TD class=left vAlign=top align=middle width=550 bgColor=#fdfdfd>
  87.       <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
  88.         <TBODY>
  89.         <TR>
  90.           <TD align=right width=24 height=30><IMG height=11 
  91.             src="image/jt_2.gif" width=11></TD>
  92.           <TD width=510>当前位置:<A 
  93.             href="default.jsp">首页</A> &gt; 
  94.            精彩评书 &gt; 
  95.         浏览新闻</TD></TR>
  96.         <TR>
  97.           <TD align=middle background="image/bgline.gif" 
  98.           colSpan=2 height=1></TD></TR></TBODY></TABLE>
  99.       <TABLE cellSpacing=0 cellPadding=1 width="95%" align=center 
  100.       bgColor=#ffffff border=0>
  101.         <TBODY>
  102.         <TR align=center>
  103.           <TD><B><FONT color=#ff6600>
  104.      <%   
  105. if(index != null && succeedcaseBean.getNew(Integer.parseInt(index)))
  106.  {
  107.   %>
  108.             <DIV style="FONT-SIZE: 15pt; LINE-HEIGHT: 250%"> <%=succeedcaseBean.getTopic()%></DIV>
  109.           </FONT></B></TD></TR>
  110.         <TR>
  111.           <TD align=middle><FONT color=#448697><IMG 
  112.             src="image/xie.gif" border=0>出处:<%=succeedcaseBean.getOrigin()%>&nbsp; 
  113.             发布日期:&nbsp;【<%=succeedcaseBean.getAppendTime()%>】 </FONT></TD>
  114.         </TR>
  115.         <TR>
  116.           <TD height=25></TD></TR>
  117.         <TR>
  118.           <TD vAlign=center bgColor=#ffffff>
  119.             <DIV style="LINE-HEIGHT: 180%">
  120.             <%=convert(new StringBuffer(succeedcaseBean.getContent()))%> 
  121.                           <%
  122. }
  123. %></DIV></TD></TR></TBODY></TABLE><BR><BR></TD></TR></TBODY></TABLE>
  124. <%@ include file ="foot.jsp" %>
  125. </CENTER></BODY></HTML>