⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deleteall.asp

📁 功能齐全的oa系统
💻 ASP
字号:
<!-- #include virtual="include/DataEnvi.asp" -->

<%
Dim ObjDB
Dim StrSQL
Dim IntToID,Infosel
IntToID=Request.QueryString ("IntToID")
Infosel=Request.QueryString ("Infosel")
set ObjDB=server.CreateObject ("Adodb.Connection")
OpenDB ObjDB
if Infosel=1 then
StrSQL="delete from t_OA_Work_UserMessage Where (FromID ="&session("AccountID")&" And ToID = " & IntToID & ") Or (ToID ="&session("AccountID")& "And FromID = " & IntToID & ") "
elseif Infosel=2 then
StrSQL="delete from t_OA_Work_UserMessage where FromID =0 And ToID = " & Session("AccountID")
else
   StrSQL="delete from t_OA_Work_UserMessage"
end if
ObjDB.Execute (StrSQL)
ObjDB.Close 
if Infosel=1 then
   Response.Redirect "history.asp"
elseif Infosel=2 then
   Response.Redirect "logview.asp"
else
   Response.Redirect "allhistory.asp"
end if
%>

⌨️ 快捷键说明

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