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

📄 msg_d.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: msg_d.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 : 周秋舫
'  日 期 : 2002-05-13
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 删除消息
'  版 本 :
'************************************************************************************************
'option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>

<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../include/emp.inc" -->

<!-- #include file="msg.inc" -->

<%
'call CheckSecurity()

'********************************************************************************************************
' 服务器端代码
dim pMsgSerial	: pMsgSerial = GetParam("msg_serial")
dim pOption		: pOption = GetParam("option")
if IsEmpty(pMsgSerial) then
	Response.Clear
	Server.Transfer("../common/error.asp")
	Response.End
end if

dim sSQL, sFolder
sFolder = DLookUp(dbLocal, "t_msg", "folder", "serial = " & pMsgSerial & " and emp_serial = " & GetEmpSerial)

'' 如果消息已经在回收站中,则删除就等于永久删除
if InFolderTrash(sFolder) = true then pOption = "perdelete"

if pOption = "delete" then				'' 更新folder
	sSQL = "update t_msg set folder = folder + 1000 where serial = " & pMsgSerial & " and emp_serial = " & GetEmpSerial
elseif pOption = "perdelete" then		'' 删除消息
	sSQL = "delete from t_msg where serial = " & pMsgSerial & " and emp_serial = " & GetEmpSerial
end if
call ExecuteSQL(dbLocal, sSQL)
%>

<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">

</head>

<body>

<script language="javascript">window.close();</script>

</body>
</html>

⌨️ 快捷键说明

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