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

📄 adminjg_delete.asp

📁 轻燕工作室中学人事管理系统最新的V5.0版本!
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->

<%
if session("admin_id")=""then
 	response.write "<script language=JavaScript>{window.alert('对不起,您尚未登录或登录超时!');window.location.href='index.asp';}</script>"
  response.end 
  end if
  if session("adminleverhigh")="1" or session("adminleverjgdel")="1" then
%>
<%
requestid=request("id")
img=request("img")
set rs=server.createobject("adodb.recordset")
sql="delete from jg where id="&requestid&""
rs.open sql,conn
 on error resume next
 set DelObj=Server.CreateObject("Scripting.FileSystemObject")
 filepath="upload/"&img ' 修改相片路径
  Delpath=server.mappath(filepath)

 set DelFi=DelObj.getfile(Delpath)
 DelFi.Delete
 set Delobj=nothing
  '-----------------------***************
	  ip111 = Request.ServerVariables("HTTP_X_FORWARDED_FOR") ' 代理IP
ip222 =Request.ServerVariables("REMOTE_ADDR") 
if ip111 = "" then
ipupdate = ip222
else
ipupdate = ip111
end if
jgpcname=Request.ServerVariables("HTTP_USER_AGENT")
sql_jgupddiary="select * from deljgdiary"
set rs_jgupddiary=server.CreateObject("adodb.recordset")
rs_jgupddiary.open sql_jgupddiary,conn,1,2
rs_jgupddiary.addnew
     
	   rs_jgupddiary("jg_name")=rs("name") '教工姓名
      rs_jgupddiary("lastupduser")=session("adminlogin")
      rs_jgupddiary("lastupdname")=session("adminname")
      rs_jgupddiary("lastupddate")=now
      rs_jgupddiary("lastupdip")=ipupdate
	  rs_jgupddiary("os")=jgpcname
      rs_jgupddiary.update
	  rs_jgupddiary.close
	  set rs_jgupddiary=nothing
	  '------------------------------********************
response.Write "<script language=javascript>{window.alert('恭喜您,该教工的资料和相片全部成功删除');window.history.go(-2);}</script>"
rs.close
	  set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>

</body>
</html>
<% 
else 
response.write "<script language=JavaScript>{window.alert('对不起,您没有访问该页面的权限!系统自动返回...');window.history.go(-1);}</script>"
  response.end
  end if
%>

⌨️ 快捷键说明

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