📄 newsdeleteresult.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>删除确认</title>
<style type="text/css">
<!--
body {
background-image: url(../Picture/index-top_2.gif);
}
a:link {
color: #0033FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #993300;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #FF0000;
}
.STYLE1 {
font-size: 18px;
font-weight: bold;
}
.style2 {color: #0000FF}
-->
</style></head>
<body>
<% Connection con;
String statement="";
// out.println("dfsdsf");
String title = new String(request.getParameter("title").getBytes("ISO8859_1"),"GBK");
try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e){}
try{
con=DriverManager.getConnection("jdbc:odbc:nbos","","");
Statement sql=con.createStatement();
statement="delete * from News where Title='"+title+"'";
sql.executeUpdate(statement);
%>
<table width="356" height="107" border="0">
<tr>
<td width="350" height="22" background="../Picture/topbg.gif"><div align="center"><strong class="STYLE1"> 新闻删除成功 </strong></div></td>
</tr>
<tr>
<td height="58" background="../Picture/l33.gif"><p><strong>你已成功把该新闻从数据库中删除!</strong></p>
<p><strong>如果想继续删除,请<a href="newsdelete.jsp" class="style2">点击这里</a></strong></p></td>
</tr>
<tr>
<td background="../Picture/bottombg.gif"> </td>
</tr>
</table>
<p><strong> </strong></p>
<p><strong>
<% }
catch(Exception e)
{ }
%>
</strong>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -