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

📄 infodelt.asp

📁 财务管理系统 报账等基本功能实现 有完整的实现
💻 ASP
字号:
<!--#include file="../../conndb.asp"-->
<html>
<head>
<title>删除资料信息</title>
</head>
<body>
<%
  Dim ino
  ino = Request.QueryString("id")
  '判断入库是否存在此信息
  sql = "Select * From InfoIn Where InfoNo='" & ino & "'"
  Set rs = Conn.Execute(sql)
  If Not rs.EOF Then
    Response.Write "<Script>alert('资料入库表中存在此资料信息不能删除!');window.close();</Script>"
    Response.End()
  End If
  '判断借阅表是否存在此信息
  sql = "Select * From InfoLend Where InfoNo='" & ino & "'"
  Set rs = Conn.Execute(sql)
  If Not rs.EOF Then
    Response.Write "<Script>alert('资料借阅表中存在此资料信息不能删除!');window.close();</Script>"
    Response.End()
  End If
  sql = "Delete From Information Where InfoNo='" & ino & "'"
  Set rs = Conn.Execute(sql)
  Response.Write "<h3>资料信息成功删除</h3>"
  Set rs = Nothing
%>
</body>
<script language="javascript">
  // 刷新父级窗口,延迟此关闭
  opener.location.reload();
  setTimeout("window.close()",600);
</script>
</html>

⌨️ 快捷键说明

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