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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <jsp:useBean id="sharesubstanceBean" class="MyFly.Bean.sharesubstanceBean" scope="request"/>
  3. <jsp:useBean id="sharesortBean" class="MyFly.Bean.sharesortBean" scope="request"/>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <%
  6.     String index=request.getParameter("index");
  7. %>
  8. <style type="text/css">
  9. <!--
  10. p{text-indent:2em}
  11. -->
  12. </style>
  13. <%!
  14.  StringBuffer convert(StringBuffer sour){
  15. for(int i=0;i<sour.length();i++){
  16. if(sour.substring(i,i+1).equals("n")){
  17. sour.delete(i,i+1);
  18. sour.insert(i,"</p><p>");
  19. }
  20. }
  21. return sour;
  22. }
  23. %>
  24. <%
  25.     sharesubstanceBean.getNew(Integer.parseInt(index));
  26. %>
  27. <STYLE type=text/css>
  28. BODY {
  29. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  30. }
  31. TABLE {
  32. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  33. }
  34. TD {
  35. FONT: 12px 宋体
  36. }
  37. IMG {
  38. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  39. }
  40. A {
  41. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  42. }
  43. A:hover {
  44. COLOR: #428eff; TEXT-DECORATION: underline
  45. }
  46. .sec_menu {
  47. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  48. }
  49. .menu_title {
  50. }
  51. .menu_title SPAN {
  52. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  53. }
  54. .menu_title2 {
  55. }
  56. .menu_title2 SPAN {
  57. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  58. }
  59. </STYLE>
  60. <html>
  61. <head>
  62. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  63. <title><%=sharesubstanceBean.getTitle()%></title>
  64. </head>
  65. <body>
  66. <table width="372" height="245" border="1" align="center">
  67.   <tr>
  68.     <td height="31" colspan="2" align="center">成功分享信息</td>
  69.   </tr>
  70.   <tr>
  71.     <td width="75" height="30">分享类别:</td>
  72.     <td width="281">&nbsp;
  73. <%
  74. if(sharesortBean.getNew(sharesubstanceBean.getSucceedFxID()))
  75. {
  76.     out.print(sharesortBean.getSucceedFxName());
  77. }
  78. else
  79. {
  80.    out.print("未知");
  81. }
  82. %>
  83. </td>
  84.   </tr>
  85.   <tr>
  86.     <td height="36">分享标题:</td>
  87.     <td>&nbsp;<%=sharesubstanceBean.getTitle()%></td>
  88.   </tr>
  89.   <tr>
  90.     <td height="73">分享内容:</td>
  91.     <td>&nbsp;<%=convert(new StringBuffer(sharesubstanceBean.getContent()))%></td>
  92.   </tr>
  93.   <tr>
  94.     <td height="23">发布者:</td>
  95.     <td>&nbsp;<%=sharesubstanceBean.getName()%></td>
  96.   </tr>
  97.   <tr>
  98.     <td height="16">发布时间:</td>
  99.     <td>&nbsp;<%=sharesubstanceBean.getAppendTime()%></td>
  100.   </tr>
  101. </table>
  102. </body>
  103. </html>