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

📄 class_del.asp

📁 c++builder开发系统实现了成绩查寻
💻 ASP
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="session_0.asp" -->
<!--#include file="Connections/conn1.asp" -->
<% 
Response.Write("<script language='javascript'>if(confirm('真的要删除该班吗?请慎重!')==true) {} else {window.alert('您没有删除该班!');history.go(-1);}</script>")
%>
<%
if(String(Request("classid")) != "undefined"){ Command1__classid1 = String(Request("classid"));}
%>
<%
var Command1 = Server.CreateObject("ADODB.Command");
Command1.ActiveConnection = MM_conn1_STRING;
 {
  Command1.CommandText = "DELETE FROM admin  WHERE classid ="+ Command1__classid1 + "";
  Command1.CommandType = 1;
  Command1.CommandTimeout = 0;
  Command1.Prepared = true;
  Command1.Execute();
  }
 {
   Command1.CommandText = "DELETE FROM class  WHERE classid ="+ Command1__classid1+ "";
   Command1.CommandType = 1;
   Command1.CommandTimeout = 0;
   Command1.Prepared = true;
   Command1.Execute();
  }
  
 {Command1.CommandText = "DELETE FROM user WHERE classid ="+ Command1__classid1+ "";
  Command1.CommandType = 1;
  Command1.CommandTimeout = 0;
  Command1.Prepared = true;
  Command1.Execute();
 }
 
 {Command1.CommandText = "DELETE FROM score WHERE classid ="+ Command1__classid1+ "";
  Command1.CommandType = 1;
  Command1.CommandTimeout = 0;
  Command1.Prepared = true;
  Command1.Execute();
 }

{Response.Write("<script language='javascript'>window.alert('已成功删除!');location=('allclass_list.asp');</script>");
 Response.End();
}
%>

⌨️ 快捷键说明

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