📄 register.asp
字号:
<!--#include file="../include/connstr.asp"-->
<%
if request("cur_action")="register" then
sql_addsave="insert into tRegMember(LoginID,PassWord,TrueName,Sex,Company,Tel,Fax,Address,Zip,Email,Question,Answer,AddTime,StateFlag) values('"&request("T_LoginID")&"','"&request("T_PassWord")&"','"&request("T_TrueName")&"','"&request("R_Sex")&"','"&request("T_Company")&"','"&request("T_Tel")&"','"&request("T_Fax")&"','"&request("T_Address")&"','"&request("T_Zip")&"','"&request("T_Email")&"','"&request("T_Question")&"','"&request("T_Answer")&"','"&now()&"',2)"
conn.execute sql_addsave
response.write "<script>alert('恭喜您,您已成功注册,请登录!');location.replace('MemberLogin.asp');</script>"
response.end
end if
%>
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>浙江永嘉诚一阀门有限公司</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
<!-- 浮动层的开始 -->
<SCRIPT language=javascript>
var delta=0.15
var collection;
function floaters() { //添加层的子程序
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:100px; height:240px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play() //调整层的位置
{
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv2',900,100,'<img src=../images/right.jpg usemap="#Map1111111111111" border=0>'); //层名,位置X,位置Y,内容
theFloaters.play();
</SCRIPT>
<!-- 浮动层的结束 -->
</head>
<script src="../include/Jchar.js"></script>
<SCRIPT language=JavaScript>
function Check(){
if(Jtrim(form.T_LoginID.value)==""){
alert("您没有填写会员用户名,请填写用户名!")
form.T_LoginID.focus()
return(false)
}else if(form.T_LoginID.value.length<4||form.T_LoginID.value.length>20){
alert("会员用户名必须是4-20位字符,请重新填写!")
form.T_LoginID.focus()
return(false)
}else if(!IsValidString(form.T_LoginID.value)){
alert("不合规范的用户名,请重新填写!")
form.T_LoginID.focus()
return(false)
}
var Name=document.form.T_LoginID.value;
window.open("CheckUser.asp?name="+Name,"CheckUser","width=200,height=20,status=0,scrollbars=0,resizable=1,menubar=0,toolbar=0,location=0");
}
</SCRIPT>
<body>
<!--#include file="../include/top.asp"-->
<table width="919" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="278" height="502" valign="top" bgcolor="63a639"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="278" height="502">
<param name="movie" value="Images/left.swf">
<param name=quality value=high>
<embed src="Images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="278" height="502"></embed>
</object></td>
</tr>
</table>
<!--#include file="../include/left.asp"-->
</td>
<td width="616" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="96%" height="502" valign="top"><table width="616" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="136" valign="middle" background="Images/Register.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="308" height="80">
<param name="movie" value="../images/shuidi.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="../images/shuidi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="308" height="80" wmode="transparent"></embed>
</object></td>
</tr>
<tr>
<td width="6%"> </td>
<td width="57%" class="biaoti">HOME> 会员专区>会员注册</td>
<td width="37%"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="351" valign="top"><table width="90%" border="0" align="center" cellpadding="2" cellspacing="1">
<form name="form" method="post" action="" onSubmit="return check_data()">
<tr bgcolor="#EFF3E7">
<td width="18%" height="14" align="center" bgcolor="#F8FAF3">登录帐号:</td>
<td width="82%" bgcolor="#F8FAF3"><input name="T_LoginID" type="text" id="T_LoginID" size="20">
<input name="Button" type="button" value="检测用户名" onClick="Check()">
4-20个字符(0-9,a-z,A-Z)<br>
请取一个与公司名相关的、便于记忆且不与其他会员登录名重复;会员用户名不区分大小写。</td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">登陆密码:</td>
<td bgcolor="#F8FAF3"><input name="T_PassWord" type="password" id="T_PassWord" size="20">
注意区分大小写;不能与登录名相同;易记;难猜。</td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">再次输入密码:</td>
<td bgcolor="#F8FAF3"><input name="T_PassWord1" type="password" id="T_PassWord1" size="20"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">密码问题:</td>
<td bgcolor="#F8FAF3"><input name="T_Question" type="text" id="T_Question"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">密码答案:</td>
<td bgcolor="#F8FAF3"><input name="T_Answer" type="text" id="T_Answer"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">您的姓名:</td>
<td bgcolor="#F8FAF3"><input name="T_TrueName" type="text" id="T_TrueName" size="10">
不能超过14个字符(7个汉字)* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">性别:</td>
<td bgcolor="#F8FAF3"><input name="R_Sex" type="radio" value="男" checked>
男
<input type="radio" name="R_Sex" value="女">
女 </td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">公司名称:</td>
<td bgcolor="#F8FAF3"><input name="T_Company" type="text" id="T_Company" size="35">
* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">联系电话:</td>
<td bgcolor="#F8FAF3"><input name="T_Tel" type="text" id="T_Tel" size="20">
* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">传真:</td>
<td bgcolor="#F8FAF3"><input name="T_Fax" type="text" id="T_Fax" size="20"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">地址:</td>
<td bgcolor="#F8FAF3"><input name="T_Address" type="text" id="T_Address" size="50"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">邮编:</td>
<td bgcolor="#F8FAF3"><input name="T_Zip" type="text" id="T_Zip" size="10"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="center" bgcolor="#F8FAF3">Email:</td>
<td bgcolor="#F8FAF3"><input name="T_Email" type="text" id="T_Email" size="25">
请输入有效的邮件地址,以便我们将以后联系 * </td>
</tr>
<tr bgcolor="#F8FAF3">
<td colspan="2" align="center"><input name="cur_action" type="hidden" id="cur_action" value="register">
<input type="submit" name="Submit5" value="注册">
<input type="reset" name="Submit22" value="重新填写"></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="25" valign="bottom" background="../images/about_6.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="52" background="../images/about_6.jpg"><IMG SRC="../images/about_6.jpg" WIDTH=24 HEIGHT=52 ALT=""></td>
</tr>
<tr>
<td height="459" valign="bottom"><IMG SRC="../images/about_8.jpg" WIDTH=24 HEIGHT=337 ALT=""></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="../include/bottom.asp"-->
</body>
</html>
<script language="JavaScript">
function check_data() {
if(Jtrim(form.T_LoginID.value)==""){
alert("您没有填写会员用户名,请填写用户名!")
form.T_LoginID.focus()
return(false)
}else if(form.T_LoginID.value.length<4||form.T_LoginID.value.length>20){
alert("会员用户名必须是4-20位字符,请重新填写!")
form.T_LoginID.focus()
return(false)
}else if(!IsValidString(form.T_LoginID.value)){
alert("不合规范的用户名,请重新填写!")
form.T_LoginID.focus()
return(false)
}
if(Jtrim(form.T_Question.value)==""){
alert("您没有填写密码提示问题 ,请填写!")
form.T_Question.focus()
return(false)
}
if(Jtrim(form.T_Answer.value)==""){
alert("您没有设定密码提示答案 ,请填写!")
form.T_Answer.focus()
return(false)
}
if(Jtrim(form.T_TrueName.value)==""){
alert("您没有填写姓名 ,请填写!")
form.T_TrueName.focus()
return(false)
}
if(Jtrim(form.T_Company.value)==""){
alert("您没有填写公司名称 ,请填写!")
form.T_Company.focus()
return(false)
}
if(!isEmail(form.T_Email.value)){
alert("请填写正确的电子邮箱 !")
form.T_Email.focus()
return(false)
}
}
</script>
<map name="Map1111111111111" id="Map1111111111111">
<area shape="rect" coords="18,62,71,116" href="../News/News.asp">
<area shape="rect" coords="18,125,72,184" href="../aboutus/Cultrue.asp">
<area shape="rect" coords="20,203,73,258" href="../product/Feedback.asp">
<area shape="rect" coords="18,272,77,327" href="../Distribution/Distribution.asp">
<area shape="rect" coords="14,334,81,359" href="../english/main.asp" target="_blank">
</map>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -