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

Applet

开发平台:

Java

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