admin_news_del2.asp

来自「强大的后台文章编辑器的功能」· ASP 代码 · 共 37 行

ASP
37
字号
<%
if session("admin__user")="" then
  Response.Redirect "login.asp?id=8"
end if
%>
<!--#include file = admin_chk.asp -->
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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>
</head>

<!--#include file = admin_conn.asp -->

<%
id=trim(request("id"))
if id<>"" then

   conn.Execute = "delete from news where id="&id
   conn.Execute = "delete from newspl where newsid="&CInt(ID)
   
end if
conn.close
set conn=nothing
Response.Redirect "admin_news_list.asp"
%>

⌨️ 快捷键说明

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