📄 adddepart.asp
字号:
<!--#include file="connection.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加教师信息</title>
<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-size: 18px;
font-weight: bold;
}
-->
</style>
<script language="vbscript">
sub submitok()
if f1.xino.value="" or f1.xiname.value="" then
alert("系编号及名称不可以为空!")
f1.xino.focus
else
f1.submit
end if
end sub
</script>
<script language="vbscript">
sub zhuanyeok()
if f2.xino1.value="--选择系--" then
alert("请选择所属的系!")
f2.xino1.focus
else if f2.zhuanyeno1.value="" then
alert("专业编号不可以为空!")
f2.zhuanyeno1.focus
else if f2.zhuanyename1.value="" then
alert("专业名称不可以为空!")
f2.zhuanyename1.focus
else
f2.submit
end if
end if
end if
end sub
</script>
</head>
<%
sqlstr="select distinct xino,xiname from 系"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sqlstr,CN
%>
<body bgcolor="#FBC2AD">
<div align=center>
<form name="f1" action="adddepartz.asp" method="post">
<table width="144" height="84">
<tr>
<td> </td>
</tr>
</table>
<table width="311" border="0" cellpadding="3" cellspacing="1" bordercolor="#000000" bgcolor="#000000" class="sft">
<tr>
<td height="30" colspan="2" bgcolor="#FF903C"><div align="center" class="STYLE1">添加系部信息</div> </td>
</tr>
<tr>
<td width="114" height="30" bgcolor="#FF903C"><div align="center">系部编号:</div></td>
<td width="182" height="30" bgcolor="#FFFFFF"><input name="xino" type="text" id="xino"style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"></td>
</tr>
<tr>
<td height="28" bgcolor="#FF903C"><div align="center">系部名称:</div></td>
<td height="28" bgcolor="#FFFFFF"><input name="xiname" type="text" id="xiname"style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"> </td>
</tr>
<tr>
<td height="20" colspan="2" bgcolor="#FFFFFF"><div align="center">
<input type="button" name="s" value="添加系部信息" onclick="submitok()" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
</div></td>
</tr>
</table>
</form>
<p class=sft>
</div>
<div align=center>
<form name="f2" action="addzhuanyez.asp" method="post">
<table width="311" border="0" cellpadding="3" cellspacing="1" bordercolor="#000000" bgcolor="#000000" class="sft">
<tr>
<td height="30" colspan="2" bgcolor="#FF903C"><div align="center" class="STYLE1">添加专业信息</div> </td>
</tr>
<tr>
<td height="30" bgcolor="#FF903C"><div align="center">所在系:</div></td>
<td height="30" bgcolor="#FFFFFF"><select name="xino1" size="1" id="xino1" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
<option value="--选择系--" selected>--选择系--</option>
<%
do while not rs.eof
%>
<option value="<%=rs("xino")%>" selected><%=rs("xiname")%></option>
<% rs.movenext
loop
%>
</select></td>
</tr>
<tr>
<td width="114" height="30" bgcolor="#FF903C"><div align="center">专业编号:</div></td>
<td width="182" height="30" bgcolor="#FFFFFF"><input name="zhuanyeno1" type="text" id="zhuanyeno1"style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"></td>
</tr>
<tr>
<td height="28" bgcolor="#FF903C"><div align="center">专业名称:</div></td>
<td height="28" bgcolor="#FFFFFF"><input name="zhuanyename1" type="text" id="zhuanyename1"style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"> </td>
</tr>
<tr>
<td height="20" colspan="2" bgcolor="#FFFFFF"><div align="center">
<input type="button" name="s1" value="添加专业信息" onclick="zhuanyeok()" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
</div></td>
</tr>
</table>
</form>
<p class=sft>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -