add_edit.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <title>编辑</title>
  8. <style type="text/css">
  9. <!--
  10. @import url("style.css");
  11. -->
  12. </style>
  13. </head>
  14. <%
  15. if(session.getAttribute("adminname")==null)
  16. {response.sendRedirect("sorry.jsp");}
  17. %>
  18. <%
  19. String MessageID=new String(request.getParameter("id").getBytes("ISO-8859-1"));
  20. String condition="select * from users where id='"+MessageID+"'";
  21. rs=stmt.executeQuery(condition);
  22. rs.first();
  23. %>
  24. <body background="img/beijing.gif">
  25. <br>
  26. <table width="650" border="0" align="center" cellpadding="0" cellspacing="1">
  27.   <tr>
  28.     <td>
  29. <form name="form1" method="POST" action="add_edit_operate.jsp?id=<%=MessageID%>">
  30.         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle3">
  31.           <tr> 
  32.             <td width="12%"><img src="img/top1.gif" width="81" height="22"></td>
  33.             <td width="86%" background="img/top2.gif">&nbsp;</td>
  34.             <td width="2%"><img src="img/top3.gif" width="47" height="22"></td>
  35.           </tr>
  36.         </table>
  37.         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle0">
  38.           <tr bgcolor="#FFFFFF"> 
  39.             <td width="117" height="30" align="center" bgcolor="#F5F5F5" class="font0">姓名:</td>
  40.             <td width="531" align="center" bgcolor="#F5F5F5"> 
  41.               <input name="name" type="text" value="<%=rs.getString("name")%>" size="70" style="border:1px double rgb(187,185,185);font:9pt"> 
  42.             </td>
  43.           </tr>
  44.           <tr bgcolor="#F5F5F5"> 
  45.             <td width="117" height="80" align="center" bgcolor="#FFFFFF" class="font0">留言:</td>
  46.             <td width="531" align="center" bgcolor="#FFFFFF"> 
  47.               <textarea name="content" cols="70" rows="5" style="border:1px double rgb(187,185,185);font:9pt"><%=rs.getString("content")%></textarea> 
  48.             </td>
  49.           </tr>
  50.           <tr bgcolor="#FFFFFF"> 
  51.             <td width="117" height="80" align="center" bgcolor="#F5F5F5" class="font0">回复:</td>
  52.             <td width="531" align="center" bgcolor="#F5F5F5"> 
  53.               <textarea name="recontent" cols="70" rows="5" style="border:1px double rgb(187,185,185);font:9pt"><%=rs.getString("recontent")%></textarea> 
  54.             </td>
  55.           </tr>
  56.           <tr bgcolor="#FFFFFF"> 
  57.             <td height="40" colspan="2" align="center"> 
  58.               <input type="submit" name="Submit" value="提交" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
  59.              
  60.               <input type="reset" name="Submit2" value="取消" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
  61.             </td>
  62.           </tr>
  63.           <tr valign="top"> 
  64.           </tr>
  65.         </table>
  66.       
  67.         <table border="0" width="650" cellspacing="0" cellpadding="0" height="7" align="center">
  68.           <tr> 
  69.             <td width="2%" align="center"><img src="img/end1.gif" width="12" height="14"></td>
  70.             <td width="89%" align="center" background="img/end2.gif"></td>
  71.             <td width="9%" align="center"><img src="img/end3.gif" width="65" height="14"></td>
  72.           </tr>
  73.         </table>
  74.       
  75.       </form></td>
  76.   </tr>
  77. </table>
  78. </body>
  79. </html>