📄 reg.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册新学生用户|毕业设计选题系统</title>
<script language="jscript">
<!--
function Check1()
{
var NotNull
NotNull=true
if (document.form1.textfield1.value=="")
{
window.alert("请输入学号")
NotNull=false
}
if (document.form1.textfield2.value=="")
{
window.alert("请输入密码")
NotNull=false
}
return NotNull
}
function Check2()
{
var NotNull
NotNull=true
if (document.form2.textfield1.value=="")
{
window.alert("注册必须正确输入您的学号")
NotNull=false
}
if (document.form2.textfield2.value=="")
{
window.alert("请输入登录密码")
NotNull=false
}
if (document.form2.textfield3.value=="")
{
window.alert("请再次输入登录密码")
NotNull=false
}
if (document.form2.textfield3.value!=document.form2.textfield2.value)
{
window.alert("两次输入的密码不一致")
NotNull=false
}
if (document.form2.textfield4.value=="")
{
window.alert("必须输入您的真实姓名")
NotNull=false
}
return NotNull
}
//-->
</script>
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<BODY leftMargin=0 topMargin=0 marginwidth="0">
<!--#include file=../top.asp-->
<div align="center">
<table width="770" height="34" border="0" background="../image/dh_bj.jpg">
<tr>
<td><div align="right">
<a href="http://www.wh.cn/"><FONT color=#ffffff>邮电与信息工程学院 | </FONT></a><a href="http://10.2.2.2/"><FONT color=#ffffff>图书馆 | </FONT></a><a href="http://www.tjcu.edu.cn/zsjy/index.htm"><FONT color=#ffffff>招生就业 |</FONT></a><a href="http://www.tjcu.edu.cn/zsjy/index.htm"><font color="#ffffff"></font></a><a href="mailto:jiaxin_li08@163.com"><FONT color=#ffffff> 联系我们</FONT></a>
</div></td>
</tr>
</table>
</div>
<div align="center"><td><table width="768" border="0" bgcolor="#FFFFFF"><tr><td><div align="left">
<%
Dim conn
Set conn=Server.CreateObject("ADODB.RecordSet")
conn.ActiveConnection = "DSN=hw;User ID=sa"
conn.Source = "select * from dbo.system where sys_config='studentreg' "
conn.CursorType = 0
conn.LockType = 1
conn.Open()
If conn("sys_state")="1" Then
%>
<p>如果您已经注册过学生用户,请使用您的学号和密码进行登录。</p>
<form id="form1" name="form1" method="post" action="login.asp" onsubmit="return Check1()">
<label>学号
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield1" />
</label>
<label>密码
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield2" />
</label>
<label>
<input type="submit" name="Submit1" value="提交" />
</label>
<label>
<input type="reset" name="Submit2" value="重置" />
</label>
</form>
<p>如果你没有注册过学生用户,请填写下表进行注册 。 </p>
<form id="form2" name="form2" method="post" action="reg2.asp" onsubmit="return Check2()">
学号:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield1" />
* 输入学校对学生的统一编号,务必输入自己的学号<br>
登录密码:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield2" />
* 输入登录密码<br>
确认密码:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield3" />
* 再次输入登录密码以便确认<br>
姓名:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield4" />
* 输入你的真实姓名<br>
性别:
<select name="select1">
<option value="男">男</option>
<option value="女">女</option>
</select>
*<br>
专业:
<select name="select2">
<option value="计算机" selected="selected">计算机</option>
<option value="通信工程">通信工程</option>
<option value="自动化">自动化</option>
<option value="电子商务">电子商务</option>
<option value="信息">信息</option>
</select>
*<br>
班级:
<select name="select3">
<option value="一班" selected="selected">一班</option>
<option value="二班">二班</option>
</select>
*<br>
电话:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield5" /><br>
邮件:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield6" /><br>
Q Q :
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="text" name="textfield7" /><br>
<input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit3" value="重置" />
</form>
<p class="notetext">注:带 * 号的项目必须填写</p>
<% Else %>
系统关闭了学生注册功能,具体情况请联系管理员。<br>
<a href="../index.asp">点击这里返回首页</a>
<%
End If
conn.Close()
Set conn = Nothing
%>
</div></td></tr></table></td></div>
<!--#include file=../botton.asp-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -