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

📄 dbo_student_reg.asp

📁 作业提交评分管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="tcconn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Management System</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
}
-->
</style>
<link href="css/text1.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">

function CheckEdit(fromname){

	if(trim(document.getElementById(fromname).number.value)== ""){
		alert("学号不能为空!");
		document.getElementById(fromname).number.focus();
		return false;
	}	

   if(trim(document.getElementById(fromname).name.value)== ""){
		alert("姓名不能为空!");
		document.getElementById(fromname).name.focus();
		return false;
	}	
 if(trim(document.getElementById(fromname).college.value)== ""){
		alert("学院不能为空!");
		document.getElementById(fromname).college.focus();
        return false;
		}
if(trim(document.getElementById(fromname).password.value)== ""){
		alert("密码不能为空!");
		document.getElementById(fromname).password.focus();
        return false;
		}

  if(trim(document.getElementById(fromname).sclass.value)== ""){
		alert("年级及专业不能为空!");
		document.getElementById(fromname).sclass.focus();
        return false;
		}
if(trim(document.getElementById(fromname).email.value)== ""){
		alert("E-mail不能为空!");
		document.getElementById(fromname).email.focus();
        return false;
		}
 if(!checkValidEmail(document.getElementById(fromname).email, "email") ){ 
   document.getElementById(fromname).email.focus();
   return  false;
     } 
  if(trim(document.getElementById(fromname).question.value)== ""){
		alert("密码问题不能为空!");
		document.getElementById(fromname).question.focus();
        return false;
		}
}
</script>
</head>
<body>
<div align="center">
<form method="post" action="reg.asp" id="edit" onSubmit="return CheckEdit('edit')">
<input type="hidden" name="action" id="action" value='add' />
<table width="95%" border="0" cellpadding="0" cellspacing="0" class="text1">
  <tr>
    <td height="10"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="text_menu">
      <tr>
        <td height="5" bgcolor="#9CC6FF"></td>
      </tr>
      <tr>
        <td bgcolor="#375C81">&nbsp;&nbsp;&nbsp;&nbsp; 
          注册</td>
      </tr>
      <tr>
        <td height="5" bgcolor="#9CC6FF"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="10"></td>
  </tr>
  <tr>
    <td align="center">
    	<table width="90%" border="0" cellspacing="10" cellpadding="0" class="text1">
		
      <tr>
        <td width="20%">
		学号:	<font  color="#FF0099" size="2">*</font>	</td>
		<td width="30%" >
		<input type="text" name="number" id="number" value='' maxlength="20"/>		</td>
        <td width="20%">
		姓名:<font  color="#FF0099" size="2">*</font>	</td>
        <td>
		<input type="text" name="name" id="name" value='' maxlength="100" />		</td>
        </tr>
      <tr>
        <td>	学院: <font  color="#FF0099" size="2">*</font></td>
        <td>
            	<select name="college" id="college" size="1" style="height:20;">
                      <option value="">选择学院</option>
                      <option value="初阳学院" >初阳学院</option>
                      <option value="法政公管学院" >法政公管学院</option>
                      <option value="教师教育学院" >教师教育学院 </option>
                      <option value="幼师学院" >幼师学院</option>
                      <option value="体育学院" >体育学院</option>
                      <option value="人文学院" >人文学院</option>
                      <option value="外语学院" >外语学院</option>
                      <option value="音乐学院" >音乐学院</option>
                      <option value="美术学院" >美术学院</option>
                      <option value="数理信息学院" >数理信息学院</option>
                      <option value="生化学院" >生化学院</option>
                      <option value="工商学院" >工商学院</option>
                      <option value="旅游学院" >旅游学院</option>
                      <option value="交通学院" >交通学院</option>
                      <option value="职业技术学院" >职业技术学院</option>
                      <option value="国际学院" >国际学院</option>
                      <option value="行知学院" >行知学院</option>
					  <option value="文传学院" >文传学院</option>
        </select>
       	</td>
        <td>	密码:<font  color="#FF0099" size="2">*</font>	</td>
        <td>
		<input type="password" name="password" id="password" value='' maxlength="50"/>		</td>
        </tr>
        
        <tr>
        <td width="20%">
		年级及专业:	<font  color="#FF0099" size="2">*</font>	</td>
		<td width="30%" >
		<input type="text" name="sclass" id="sclass" value='' maxlength="100" />		</td>
        <td width="20%">
		e-mail:<font  color="#FF0099" size="2">*</font>	</td>
        <td>
		<input type="text" name="email" id="email" value='' maxlength="150" />		</td>
        </tr>
        <tr>
         <td>	密码问题:<font  color="#FF0099" size="2">*</font>	</td>
        <td>
		<input type="question" name="question" id="question" value='' maxlength="50"/>		</td>
        <td width="20%">
		</td>
        <td>
		</td>
        </tr>
   </table>
</td>
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

<hr width="90%" align="center" color="#999999" style="height:1px;">
<input type="submit" name="commit" value="注册" />&nbsp;&nbsp;
 &nbsp;<input type="reset" value="取消">
</form>

<br><br><br><br>

⌨️ 快捷键说明

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