📄 del.asp
字号:
<!--#include file="Config.asp"-->
<head>
<meta http-equiv="refresh" content="2;URL=admin_list.asp">
<link href="yes2.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center"></P>
<p align="center"></P>
<p align="center">
<%if request.cookies("picc")("picc2")<>"" then%>
<%
Dim GetID,ID
GetID = split(Trim(Request.Form("DelID")),",")
Set Fs = Server.CreateObject("Scripting.FileSystemObject")
For each Str in GetID
VarStr = Split(Str,"|")
ID = VarStr(0)
Path = VarStr(1)
myconn.execute("Delete From Info Where ID="&ID)
If Fs.FileExists(server.mappath(Path)) Then
Set Os = Fs.GetFile(server.mappath(Path))
Os.Delete
Response.Write Path&"已被删除!<br>"
Else
Response.Write Path&"此图片不存在!数据已被删除<br>"
End If
Next
%>
</P>
<p align="center">
<a href="admin_list.asp">点击此处返回</a>
</P>
</body>
<%
else
Response.Redirect "index.asp"
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -