📄 writedepart.asp
字号:
<!--#include file=conn.asp-->
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<%
xs_xb=request("xs_xb")
xs_zl=request("xs_zl")
action=request("action")
If action="add" Then
If xs_xb="" Or xs_zl="" Then
Response.Write "<script>alert('非法操作:系别和系主任不能为空!!');this.location.href='writedepart.asp';</SCRIPT>"
Else
sqlstr="Insert Into department(系别,系主任) values('"&xs_xb&"','"&xs_zl&"')"
set rs=conn.execute(sqlstr)
response.Write "<script>alert('添加成功!!');this.location.href='depart.asp';</SCRIPT>"
End If
End If
%>
<p align="center">添加院系</p>
<table align="center">
<form name="form10" method="post" action="?action=add">
<tr>
<td>系别:</td>
<td><input type="text" name="xs_xb"></td>
</tr>
<tr>
<td>系主任:</td>
<td><input type="text" name="xs_zl"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="添加"> <input type="reset" value="重置"> <a href="depart.asp">返回</a>
</td>
</tr>
</form>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -