📄 department_delx.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="forbidon.asp" -->
<!--#include file="conn.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" />
<title>无标题文档</title>
<link href="../imag/cs.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="top.asp" -->
<table width="80%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="atable">
<tr>
<td bgcolor="#FFFFFF">
<%
/* Response.Write("<script language='javascript'>if(confirm('真的要删除该部门及其相关的数据吗?')==true) {} else {window.alert('您没有删除该部门!');history.go(-1);}</script>")*/
%>
<%
if(String(Request("id")) != "undefined"){ Command1__id1 = String(Request("id"));}
%>
<%
var Command1 = Server.CreateObject("ADODB.Command");
Command1.ActiveConnection = MM_conn_STRING;
{
Command1.CommandText = "DELETE FROM department WHERE departmentid ="+ Command1__id1 + "";
Command1.CommandType = 1;
Command1.CommandTimeout = 0;
Command1.Prepared = true;
Command1.Execute();
}
{
Command1.CommandText = "DELETE FROM all_user WHERE departmentid="+ Command1__id1+ "";
Command1.CommandType = 1;
Command1.CommandTimeout = 0;
Command1.Prepared = true;
Command1.Execute();
}
{
Command1.CommandText = "DELETE FROM score WHERE departmentid ="+ Command1__id1+ "";
Command1.CommandType = 1;
Command1.CommandTimeout = 0;
Command1.Prepared = true;
Command1.Execute();
}
{Response.Write("<script language='javascript'>window.alert('已成功删除!');location=('department.asp');</script>");
Response.End();
}
%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -