admin_lm_del.asp

来自「1.理解Winsock编程模型; 2.掌握Winsock编程的基本方法」· ASP 代码 · 共 36 行

ASP
36
字号
<%
 if session("uname")="" then
%>
<script language="javascript">
				if 	(confirm("您进行的是非法登录,请重新登录!"))
				  location.href="admin.asp";			
				</script>
<%
end if
%>
<style>
<!--
a:link       { font-size: 9pt; font-family: 宋体; color: #000000;text-decoration: none; }
a:visited    { color: #000000; font-family: 宋体; font-size: 9pt;text-decoration: none; }
a:hover      { font-size: 9pt; font-family: 宋体; color: #000000;TEXT-DECORATION: underline; }
body         { font-family: 宋体; color: #000000; font-size: 9pt }
p            { color: #000000; font-family: 宋体; font-size: 9pt }
td           { font-size: 9pt; font-family: 宋体; color: #000000 }
input        { font-size: 9pt; font-family: 宋体; color: #000000 }

-->
</style>

<!--#include file = conn.asp -->
<%
id=trim(request("id"))
if id<>"" then

   conn.Execute = "delete from lm where id="&id
   conn.Execute = "delete from lm where lmid='"&id&"'"
   conn.Execute = "delete from news where lm='"&id&"'"
   end if
conn.close
set conn=nothing
Response.Redirect "admin_news_lm.asp"
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?