⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inf_input_pro.asp

📁 一个修改过的ASP学籍管理系统,用javascript+ado写的
💻 ASP
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="verifyTeacher.asp"-->
<%
	var collegeRs;
	collegeRs=Server.CreateObject("ADODB.Recordset");
	collegeRs.ActiveConnection=Conn;
	collegeRs.CursorLocation=3;
	collegeRs.Source="SELECT * FROM college";
	collegeRs.Open();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="link.asp"-->
<title>输入新专业</title>
<script language="javascript" type="text/javascript">
function FormTest()
{
    if(document.proform.ProName.value=="")
	   {
	       alert("请填写专业名称!");
		   document.proform.ProName.focus();
		   return false;
	   }
	if(document.proform.ColName.value=="")
	   {
	       alert("请填写院系名称!");
		   document.proform.ColName.focus();
		   return false;
	   }
	if(document.proform.TableName.value=="")
	   {
	       alert("请填写数据库表名!");
		   document.proform.TableName.focus();
		   return false;
	   }
}
</script>
</head>
<body>
<!--#include file="top.asp"-->
<table border="1" width="760" cellPadding=0 cellSpacing=0 bgcolor="#00FFFF" borderColor="#111111"             
       borderColorDark="#000000" borderColorLight="#000000" style="BORDER-COLLAPSE: collapse" height="520">
  <tr>
    <td width="760" height="20" background="images/bar.gif" colspan="7"><div align="center"><font size="2" color="#FF0000"><img src="images/t1.gif"><a href="unlogin.asp">退出登陆</a></font></div></td>
  </tr>
  <tr>
    <td width="20" rowspan="20" height="460"></td>
    <td width="100" height="460" rowspan="20"><img border="0" src="images/ZhuanYeLeft.gif" width="100" height="460"></td>
    <td width="20" rowspan="20" height="460"> </td>
    <td width="80" height="20"> </td>
    <td width="20" rowspan="20" height="460"> </td>
    <td width="500" rowspan="20" height="460">
  <form action="inf_input_pro_result.asp" method="post" name="proform" id="proform">
  <table border="1" width="500" cellSpacing=1 cellPadding=1 bgcolor="#FFFFFF" bordercolor="#000000">
    <tr>
      <td width="498" height="50" colspan="2"><div align=center><font size="6" color="#FF0000">填加新专业</font></div></td>
    </tr>
    <tr>
      <td width="498" height="20" colspan="2"></td>
    </tr>
    <tr>
      <td width="180" height="20"><div align=center><font size="2" color="#FF0000">请输入新的专业名称:</font></div></td>
      <td width="316" height="20"><input size=12 name="ProName" id="ProName">
        <font size="2" color="#FF0000">**请用中文填写(不能有重复专业)</font></td> 
    </tr> 
    <tr> 
      <td colspan="2" height="20" width="498"></td> 
    </tr> 
    <tr> 
      <td height="20" width="180"><div align=center><font size="2" color="#FF0000">请输入所属的院系名称:</font></div></td> 
      <td width="316">
      	<select name="college">
        	<%
				while(!collegeRs.EOF){
					Response.Write("<option value="+collegeRs("id")+">"+collegeRs("name")+"</option>");
					collegeRs.MoveNext;
				}
			%>
        </select>
      </td> 
    </tr> 
    <tr> 
      <td colspan="2" height="20" width="498"></td> 
    </tr> 
    <tr> 
      <td width="180" height="20"><div align=right><input type="submit" value=确定 onClick="return FormTest()"></div></td> 
      <td width="316" height="20"><input type="reset" value=清空></td> 
    </tr> 
  </table> 
  </form> 
  </td> 
    <td width="20" rowspan="20" height="460"></td> 
  </tr> 
  <tr> 
    <td width="80" background="images/bar1.gif" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20"></td> 
  </tr> 
  <tr> 
    <td width="80" height="20" background="images/bar1.gif"></td> 
  </tr> 
  <tr> 
    <td width="760" height="20" background="images/bar.gif" colspan="7"></td> 
  </tr> 
  <tr> 
    <td width="760" height="20" colspan="7"></td> 
  </tr> 
</table> 
 
</body> 
 
</html> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -