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

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