yns_tdel.asp
资源名称:gov_1.0.rar [点击查看]
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:2k
源码类别:
电子政务应用
开发平台:
HTML/CSS
- <%@LANGUAGE="VBSCRIPT"%>
- <!--#include file="Connections/conn_news.asp" --> <% '请尊重作者劳动成果不要删除以上信息 '业一新闻系统3.0正式版 '主页:http://yeyi.net '论坛:http://bbs.yeyi.net '业一网络 承接各种网站制作 '程序开发 软件开发业务 '业务联系 '电话: 13007310512 '联系人:郝亚平 'QQ:24344842 (只谈业务,技术问题请访问论坛) '请尊重作者劳动成果不要删除以上信息 %>
- <%
- ' *** Restrict Access To Page: Grant or deny access to this page
- MM_authorizedUsers="3"
- MM_authFailedURL="default.asp"
- MM_grantAccess=false
- If Session("MM_Username") <> "" Then
- If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
- (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
- MM_grantAccess = true
- End If
- End If
- If Not MM_grantAccess Then
- MM_qsChar = "?"
- If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
- MM_referrer = Request.ServerVariables("URL")
- if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
- MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
- Response.Redirect(MM_authFailedURL)
- End If
- %>
- <%
- if(request.form("t_iid") <> "") then Command1__varid = request.form("t_iid")
- %>
- <%
- if(request.form("t_iid") <> "") then Command2__varid = request.form("t_iid")
- %>
- <%
- set Command1 = Server.CreateObject("ADODB.Command")
- Command1.ActiveConnection = MM_conn_news_STRING
- Command1.CommandText = "DELETE FROM t_type WHERE t_id = " + Replace(Command1__varid, "'", "''") + " "
- Command1.CommandType = 1
- Command1.CommandTimeout = 0
- Command1.Prepared = true
- Command1.Execute()
- %>
- <%
- set Command2 = Server.CreateObject("ADODB.Command")
- Command2.ActiveConnection = MM_conn_news_STRING
- Command2.CommandText = "DELETE FROM t_news WHERE n_tid = " + Replace(Command2__varid, "'", "''") + " "
- Command2.CommandType = 1
- Command2.CommandTimeout = 0
- Command2.Prepared = true
- Command2.Execute()
- %>
- <%
- f_path=request.Form("t_iid")
- Set fso = CreateObject("Scripting.FileSystemObject")
- Fso.DeleteFolder(server.mappath(f_path))
- Set fso = nothing
- %>
- <html>
- <head>
- <meta http-equiv="Refresh" content="1 url=yns_type.asp">
- <title>业一新闻系统3.0正式版-------业一网络Yeyi.net制作</title>
- </head>
- <body>
- 数据删除中...
- </body>
- </html>
English
