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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <script language="javascript" src="../js/project_new.js"></script>
  3. <jsp:useBean id="xnldBean" class="MyFly.Bean.xnldBean" 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="xnldInsert.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. <%
  70.     if(xnldBean.getNew(1))
  71. {
  72. %>
  73. <tr align="center"> 
  74.       <td width="12%" height="32">文章标题</td>
  75.       <td width="88%" align="left">&nbsp; 
  76.   <input type="text" size="70" name="title" value="<%=xnldBean.getTitle()%>">
  77.   </td>
  78.     </tr>
  79.     <tr align="center"> 
  80.       <td height="202">文章内容</td>
  81.       <td align="left">&nbsp;
  82.   <input type="hidden" name="content" value="<%=Zhuan(xnldBean.getContent())%>">
  83.       <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  84.   </td>
  85.     </tr>
  86. <%
  87. }
  88. else
  89. {
  90. %>
  91. <tr align="center"> 
  92.       <td width="12%" height="32">文章标题</td>
  93.       <td width="88%" align="left">&nbsp; 
  94.   <input type="text" size="70" name="title">
  95.   </td>
  96.     </tr>
  97.     <tr align="center"> 
  98.       <td height="202">文章内容</td>
  99.       <td align="left">&nbsp;
  100.   <input type="hidden" name="content" value="在此添加内容">
  101.       <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  102.   </td>
  103.     </tr>
  104. <%
  105. }
  106. %>
  107.     <tr align="center"> 
  108.       <td height="26" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  109.           <tr> 
  110.             <td width="16%" align="center">&nbsp;</td>
  111.             <td width="84%" align="center"><div align="left">
  112.   <input type="submit" value="提交">
  113. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input type="reset" value="重置"> 
  114.             </div></td>
  115.           </tr>
  116.         </table></td>
  117.     </tr>
  118.   </form>
  119. </table>
  120. </body>
  121. </html>