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

📄 class_user_del.asp

📁 本系统无论是现在还是将来的升级的版本均免费。学生综合测评分也叫综合分或者纪律分
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="const.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="img/Style.css" rel="stylesheet" type="text/css" />
<title>无标题文档</title>
</head>
<body>
<%
class_id=Session("class_id")
if class_id="" then 
response.Write("<li>登录超时</li>")
response.End()
end if
if(Request("user_no") <> "") then user_no =safeChar(Request("user_no"))
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = dbconn
cmd.CommandText = "DELETE FROM pc_user  WHERE user_no ='" &user_no& "' and class_id="&class_id&""
cmd.CommandType = 1
cmd.CommandTimeout = 0
cmd.Prepared = true
cmd.Execute() 
  
  '需再删除dept_score表中的数据,不过不删除也没关系  
   
if err.number="0" then
response.Write("<script language='javascript'>alert('成功删除编号为"&user_no&"的学生');location=('class_user.asp')</script>")
else 
   response.Write("<li>系统错误</li>")
end if
%>
</body>
</html>
<%dbconn.close%>

⌨️ 快捷键说明

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