📄 adddepartok.asp
字号:
<!--#include file="a25175_conn.asp"-->
<%
dim depart,showID
depart=trim(request.Form("depart"))
showID=trim(request.Form("ShowID"))
if depart="" then
response.write"<script>alert('输入院系名称呀!');location='adddepart.asp'</script>"
'防止非法的登陆
else
strsql="select * from department where SHOWID="&showid
set rs=db.execute(strsql)
if not rs.eof then
response.write"<script>alert('已经有此显示顺序的院系了,请更换显示顺序!');location='adddepart.asp'</script>"
response.End()
end if
'编号不能相同
strsql="insert into department(department,SHOWID) values('"&depart&"',"&showID&")"
db.execute(strsql)
response.write"<script>alert('添加院系成功!');location='adddepart.asp'</script>"
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -