?? 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 + -