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

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

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link rel="stylesheet" href="css.css" type="text/css">
  7. <title>删除新闻</title>
  8. </head>
  9. <%
  10. if(session.getAttribute("adminname")==null)
  11. {response.sendRedirect("sorry.jsp");}
  12. %>
  13. <%
  14. String MessageID=new String(request.getParameter("id").getBytes("ISO-8859-1"));
  15. String condition="select * from art where art_id='"+MessageID+"'";
  16. rs=stmt.executeQuery(condition);
  17. rs.first();
  18. %> 
  19. <body background="img/beijing.gif">
  20. <p>&nbsp;</p>
  21. <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  22.   <tr>
  23.     <td>
  24. <form name="form1" method="POST" action="news_del_operate.jsp?id=<%=MessageID%>">
  25.         
  26.         <table width="100%" border="0" cellspacing="0" cellpadding="0">
  27.           
  28.           <tr>
  29.             <td align="center">
  30. <input type="submit" name="Submit" value="确定删除" style="border:1 solid #BBB9B9;background:#ffffff" class="button"></td>
  31.           </tr>
  32.         </table>
  33.       
  34.        
  35.       </form></td>
  36.   </tr>
  37. </table>
  38. </body>
  39. </html>