?? scbj.asp
字號:
<!--#include file="pwd.asp" -->
<!--#include file="xmgl_conn.inc" -->
<%
tdm=request("dm")
sql="select * from bjk where bjdm='"&tdm&"'"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open sql, xmgl_Conn
if rs.eof then
response.write("<font color=""#FF0000"">班級代碼“"&tdm&"”不存在,不能刪除!</font>")
%>
<p>
<a href="scbj0.asp">返回</a><p>
<%
rs.close
set rs=nothing
response.end
else
tmc=rs("bjmc") '返回班級名稱
end if
sql="delete * from bjk where bjdm='"&tdm&"'"
xmgl_conn.execute(sql)
rs.close
set rs=nothing
%>
<HTML>
<HEAD><TITLE>刪除班級</TITLE></HEAD>
<BODY BGCOLOR=#FFFFFF>
<font color="#0000FF">
“<%=tmc%>”(<%=tdm%>)刪除成功!</font><p>
<a href="scbj0.asp">返回</a>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -