productmarkeyEdit.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="productremarkBean" class="MyFly.Bean.productremarkBean" scope="request"/>
  4. <STYLE type=text/css>
  5. BODY {
  6. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  7. }
  8. TABLE {
  9. }
  10. TD {
  11. FONT: 12px 宋体;
  12. border-bottom-color: #CCFFFF;
  13. border-left-style: none;
  14. }
  15. IMG {
  16. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  17. }
  18. A {
  19. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  20. }
  21. A:hover {
  22. COLOR: #428eff; TEXT-DECORATION: underline
  23. }
  24. .sec_menu {
  25. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  26. }
  27. .menu_title {
  28. }
  29. .menu_title SPAN {
  30. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  31. }
  32. .menu_title2 {
  33. }
  34. .menu_title2 SPAN {
  35. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  36. }
  37. .style2 {color: #FF0000}
  38. </STYLE>
  39. <%
  40.     String index=request.getParameter("index");
  41. if(productremarkBean.getNew(Integer.parseInt(index)) == false)
  42. {
  43. out.println("<Script language=JavaScript>alert('编辑出错');javascript:history.back();</Script>");
  44. }
  45. %>
  46. <html>
  47. <head>
  48. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  49. <title>添加文章</title>
  50. </head>
  51. <body>
  52. <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  53.   <form action="productmarkeyUpdate.jsp?index=<%=productremarkBean.getRemarkID()%>" method="post" name="addarticle" onSubmit = "">
  54.    
  55.     <tr align="center"> 
  56.       <td height="23" colspan="2"> 
  57.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  58.           <tr> 
  59.             <td width="79%" height="33" align="center" class="style2">产品评论修改</td>
  60.           </tr>
  61.         </table>
  62.       </td>
  63.     </tr>
  64.     <tr align="center"> 
  65.       <td width="16%" height="32">产品编号</td>
  66.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="productID" value=<%=productremarkBean.getProductID()%>></td>
  67.     </tr>
  68.  <tr align="center"> 
  69.       <td width="16%" height="32">评论标题</td>
  70.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="title" value=<%=productremarkBean.getTitle()%>></td>
  71.     </tr>
  72.     <tr align="center"> 
  73.       <td height="195">评论内容</td>
  74.       <td align="left">&nbsp;
  75.       <textarea rows="12" name="content" cols="70"><%=productremarkBean.getContent()%></textarea></td>
  76.     </tr>
  77.     <tr align="center"> 
  78.       <td height="28">评论时间<br></td>
  79.       <td align="left">&nbsp; <input type="text" size="35" name="origin" value=<%=productremarkBean.getAppendTime()%>> </td>
  80.        
  81.     </tr>
  82.    <tr align="center"> 
  83.       <td height="28"><br></td>
  84.       <td align="left">
  85.  &nbsp; <input type="reset" name="Submit" value="重置">&nbsp;&nbsp;
  86.         <input type="submit" name="Submit" value="提交"> 
  87.      </td>
  88.     </tr>
  89.   </form>
  90. </table>
  91. </body>
  92. </html>