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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.* "%>
  3. <script language="javascript" src="../js/new.js"></script>
  4. <jsp:useBean id="succeedcaseBean" class="MyFly.Bean.succeedcaseBean" scope="request"/>
  5. <%!
  6.    String Zhuan(String str)
  7.    {
  8.         str=str.replaceAll("&", "&amp;");
  9.         str=str.replaceAll(""", "&quot;");
  10.         str=str.replaceAll("<", "&lt;");
  11. str=str.replaceAll(">", "&gt;");
  12. return str;
  13.    }
  14. %>
  15. <%
  16.   request.setCharacterEncoding("GB2312");
  17. %>
  18. <STYLE type=text/css>
  19. BODY {
  20. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  21. }
  22. TABLE {
  23. }
  24. TD {
  25. FONT: 12px 宋体;
  26. border-bottom-color: #CCFFFF;
  27. border-left-style: none;
  28. }
  29. IMG {
  30. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  31. }
  32. A {
  33. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  34. }
  35. A:hover {
  36. COLOR: #428eff; TEXT-DECORATION: underline
  37. }
  38. .sec_menu {
  39. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  40. }
  41. .menu_title {
  42. }
  43. .menu_title SPAN {
  44. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  45. }
  46. .menu_title2 {
  47. }
  48. .menu_title2 SPAN {
  49. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  50. }
  51. .style1 {color: #FF0000}
  52. </STYLE>
  53. <%
  54.     
  55.     String index=request.getParameter("index");
  56. if(succeedcaseBean.getNew(Integer.parseInt(index)) == false)
  57. {
  58. out.println("<Script language=JavaScript>alert('编辑出错');javascript:history.back();</Script>");
  59. }
  60. %>
  61. <html>
  62. <head>
  63. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  64. <title>添加文章</title>
  65. </head>
  66. <body>
  67. <p>&nbsp;</p>
  68. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  69.   <form action="succeedcaseUpdate.jsp?index=<%=succeedcaseBean.getSucceedID()%>" method="post" name="addarticle" onSubmit = "return check(this)">
  70.    
  71.     <tr align="center"> 
  72.       <td height="23" colspan="2"> 
  73.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  74.           <tr> 
  75.             <td width="79%" height="33" align="center"><span class="style1">成功事例修改</span></td>
  76.           </tr>
  77.         </table>
  78.       </td>
  79.     </tr>
  80.     <tr align="center"> 
  81.       <td width="16%" height="32">主题</td>
  82.   
  83.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="topic" value=<%=succeedcaseBean.getTopic()%>></td>
  84.     </tr>
  85.     <tr align="center"> 
  86.       <td height="195">文章内容</td>
  87.       <td align="left">&nbsp;
  88.       
  89.  <input type="hidden" name="content" value="<%=Zhuan(succeedcaseBean.getContent())%>">
  90.      <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  91.  
  92.     </tr>
  93.     <tr align="center"> 
  94.       <td height="28">出处<br></td>
  95.       <td align="left"> <input type="text" size="35" name="origin" value=<%=succeedcaseBean.getOrigin()%>> </td>
  96.        
  97.     </tr>
  98.    <tr align="left"> 
  99.       <td height="28" colspan="2"><br>
  100.    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" name="Submit" value="重置">
  101. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  102. <input type="submit" name="Submit" value="提交">     </td>
  103.     </tr>
  104.   </form>
  105. </table>
  106. </body>
  107. </html>