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

Applet

开发平台:

Java

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