📄 regok.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<%
if webreg2<>"yes" then
response.write"暂停新员工注册,请联系管理员开通。"
response.End
end if
name=request("name")
pass=request("pass")
sex=request("sex")
age=request("age")
gong=request("gong")
yin=request("yin")
shen=request("shen")
tel=request("tel")
qq=request("qq")
email=request("email")
add=request("add")
if name="" or pass="" or sex="" or age="" or gong="" or shen="" or yin="" or tel="" or qq="" or email="" or add="" then
Response.write "<script>alert('所有信息必须填写完成,否则无法注册。');javascript:history.back(1)</script>"
Response.end
end if
If not conn.Execute("Select id From [user] where name='"&request("name")&"'" ).eof Then
response.write"<script>alert('用户名已被注册,点“确定”返回。');javascript:history.back(1)</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from [user]"
rs.open sql,conn,1,3
rs.addnew
rs("name")=name
rs("pass")=md5(pass,32)
rs("sex")=sex
rs("age")=age
rs("gong")=gong
rs("shen")=shen
rs("yin")=yin
rs("tel")=tel
rs("qq")=qq
rs("email")=email
rs("add")=add
if webreg3="no" then
rs("ok")="yes"
else
rs("ok")="no"
end if
rs.update
rs.close
%>
<HTML><HEAD><TITLE><%=webname%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="css.css" rel=stylesheet type=text/css>
<LINK href="text.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
background-image: url(Images/bj.gif);
}
.STYLE1 {color: #FF0000}
.STYLE3 {color: #FF0000; font-weight: bold; }
-->
</style></HEAD>
<BODY leftMargin=0 topMargin=0>
<TABLE width=562 height=402
border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#f4f4f4>
<TBODY>
<TR>
<TD vAlign=center align=middle>
<TABLE cellSpacing=0 cellPadding=0 width=560 border=0>
<TBODY>
<TR>
<TD><IMG height=40 alt="" src="images/index_01.gif"
width=142></TD>
<TD><IMG height=40 alt="" src="images/index_02.gif"
width=171></TD>
<TD><IMG height=40 alt="" src="images/index_03.gif"
width=130></TD>
<TD><IMG height=40 alt="" src="images/index_04.gif"
width=117></TD>
</TR>
<TR>
<TD><IMG height=49 alt="" src="images/index_05.gif"
width=142></TD>
<TD colSpan=2>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="10%"><IMG height=49 alt=""
src="images/index_06.gif" width=90></TD>
<TD width="90%"><IMG height=49 alt=""
src="images/index_07.gif"
width=211></TD>
</TR>
</TBODY>
</TABLE></TD>
<TD><IMG height=49 alt="" src="images/index_08.gif"
width=117></TD>
</TR>
<TR>
<TD><IMG height=55 alt="" src="images/index_09.gif"
width=142></TD>
<TD><IMG height=55 alt="" src="images/index_10.gif"
width=171></TD>
<TD><IMG height=55 alt="" src="images/index_11.gif"
width=130></TD>
<TD><IMG height=55 alt="" src="images/index_12.gif"
width=117></TD>
</TR>
<TR>
<TD colSpan=4>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="25%"><IMG height=62 alt=""
src="images/index_13.gif" width=142></TD>
<TD vAlign=center align=middle width="61%" bgColor=#f4f4f4
rowSpan=2><table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#aaaaaa">
<tr>
<td bgcolor="#f9f9f9"><form name="form1" method="post" action="login.asp">
<input name="username" type="hidden" value="<%=name%>">
<input name="password" type="hidden" value="<%=pass%>">
<input name="login" type="hidden" value="yuangong">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><div align="center" class="f12"><strong>注册成功</strong></div></td>
</tr>
<tr>
<td><span class="STYLE3">恭喜您,注册成功,您的信息如下:</span><br>
帐号:<%=name%><br>
密码:<%=pass%><br>
<%if webreg3="no" then%>
<%end if%></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="点此登陆">
<span class="STYLE1">如果不能登录,请等待管理员审核。</span></div></td>
</tr>
</table>
</form></td>
</tr>
</table></TD>
<TD width="14%"><IMG height=62 alt=""
src="images/index_15.gif" width=117></TD>
</TR>
<TR>
<TD><IMG height=108 alt=""
src="images/index_16.gif" width=142></TD>
<TD><IMG height=108 alt=""
src="images/index_18.gif"
width=117></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD><IMG height=44 alt="" src="images/index_19.gif"
width=142></TD>
<TD><IMG height=44 alt="" src="images/index_20.gif"
width=171></TD>
<TD><IMG src="images/index_21.gif" alt=""
width=130 height=44 border="0" usemap="#Map"></TD>
<TD><IMG height=44 alt="" src="images/index_22.gif"
width=117></TD>
</TR>
<TR>
<TD><IMG height=42 alt="" src="images/index_23.gif"
width=142></TD>
<TD><IMG height=42 alt="" src="images/index_24.gif"
width=171></TD>
<TD><IMG height=42 alt="" src="images/index_25.gif"
width=130></TD>
<TD><IMG height=42 alt="" src="images/index_26.gif"
width=117></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<map name="Map"><area shape="rect" coords="76,2,129,16" href="index.asp" alt="返回首页">
</map></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -