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

Applet

开发平台:

Java

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