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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <jsp:useBean id="sale_manageBean" class="MyFly.Bean.sale_manageBean" 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. <%
  14.   request.setCharacterEncoding("gb2312");
  15. %>
  16. <STYLE type=text/css>
  17. BODY {
  18. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  19. }
  20. TABLE {
  21. BORDER-LEFT: 1 px; BORDER-TOP: 1 px
  22. }
  23. TD {
  24. FONT: 12px 宋体;
  25. }
  26. IMG {
  27. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  28. }
  29. A {
  30. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  31. }
  32. A:hover {
  33. COLOR: #428eff; TEXT-DECORATION: underline
  34. }
  35. .sec_menu {
  36. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  37. }
  38. .menu_title {
  39. }
  40. .menu_title SPAN {
  41. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  42. }
  43. .menu_title2 {
  44. }
  45. .menu_title2 SPAN {
  46. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  47. }
  48. .style1 {color: #FF0000}
  49. </STYLE>
  50. <%
  51.     String index=request.getParameter("index");
  52.     if( sale_manageBean.getNew(Integer.parseInt(index))== false)
  53. {
  54. out.println("<Script language=JavaScript>alert('编辑出错');javascript:history.back();</Script>");
  55. }
  56. %>
  57. <html>
  58. <head>
  59. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  60. <title>添加文章</title>
  61. </head>
  62. <body>
  63. <p>&nbsp;</p>
  64. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  65.   <form action="sale_manageUpdate.jsp?index=<%=sale_manageBean.getSelID()%>" method="post" onSubmit = "">
  66.     <tr align="center"> 
  67.       <td height="23" colspan="2"> 
  68.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  69.           <tr> 
  70.             <td height="33" align="center"><div align="center" class="style1">站内短信管理</div> </td>
  71.           </tr>
  72.         </table>
  73.       </td>
  74.     </tr>
  75.     <tr align="center"> 
  76.       <td width="16%" height="32">文章标题</td>
  77.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="title" value="<%=sale_manageBean.getTitle()%>" disabled></td>
  78.     </tr>
  79.   <tr align="center"> 
  80.       <td width="16%" height="32">内容标题</td>
  81.       <td width="84%" align="left">&nbsp; <textarea name="content1" cols="70" disabled><%=sale_manageBean.getContent()%></textarea></td>
  82.     </tr>
  83.    </tr>
  84.   <tr align="center"> 
  85.       <td width="16%" height="32">发表的用户名:</td>
  86.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="username" value="<%=sale_manageBean.getUsername()%>" disabled></td>
  87.     </tr>
  88.     <tr align="center"> 
  89.       <td height="202">回复内容</td>
  90.       <td align="left">&nbsp;
  91.   <input type="hidden" name="content" value="<%=sale_manageBean.getRecontent()%>">
  92.   <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  93.   
  94.   </td></tr>
  95.     <tr align="center"> 
  96.       <td height="45" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  97.           <tr> 
  98.             <td width="17%" align="center">&nbsp;</td>
  99.             <td width="83%" align="center"><div align="left">
  100.   <input type="submit" value="提交">
  101. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input type="reset" value="重置"> 
  102.             </div></td>
  103.           </tr>
  104.       </table></td>
  105.     </tr>
  106.   </form>
  107. </table>
  108. <p>&nbsp;</p>
  109. </body>
  110. </html>