<!--#include file="header.asp"-->
<script language="javascript">
function checkname(){
	if(document.boon.pwd.value==""){
	alert("密码不能为空");
	document.boon.pwd.focus();
	return false
	}
	if(document.boon.name.value==""){
	alert("姓名不能为空");
	document.boon.name.focus();
	return false
	}
	if(document.boon.tel.value==""){
	alert("电话不能为空");
	document.boon.tel.focus();
	return false
	}
	}
</script>
<%
if request.QueryString("action")="save" then 
pwd=server.HTMLEncode(trim(request.Form("pwd")))
name=server.HTMLEncode(trim(request.Form("name")))
addres=server.HTMLEncode(trim(request.Form("address")))
repwd=server.HTMLEncode(trim(request.Form("repwd")))
tel=server.HTMLEncode(trim(request.Form("tel")))
mobile=server.HTMLEncode(trim(request.Form("mobile")))
if pwd="" or repwd="" or name="" then 
response.write "<script>alert('请填写相关信息!');history.go(-1);</Script>"
elseif pwd<>repwd then
response.write "<script>alert('两次密码不一致!');history.go(-1);</Script>"
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from member"
rs.open sql,conn,1,3
rs.addnew
rs("u_user")=name
rs("u_pwd")=pwd
rs("u_addres")=addres
rs("u_tel")=tel
rs("u_mobile")=mobile
rs.update
rs.close
set rs=nothing
response.write "<script>alert('注册成功,请点击确认，然后输入用户名和密码登陆会员中心!');location='index.asp';</Script>"
end if
end if
%>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="781" colspan="3"><img src="images/bixin0002.gif" width="778" height="196" /></td>
  </tr>
  <tr>
    <td height="8" colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="29%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/iceweb.cn_05.gif" width="228" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_07.gif" width="228" height="168" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_10.gif" width="228" height="11" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="1%" valign="top"></td>
        <td width="70%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/iceweb.cn_06_01.gif" width="25" height="33" /></td>
                <td width="17%" background="images/iceweb.cn_06_02.gif">关于碧新</td>
                <td width="13%"><img src="images/iceweb.cn_06_03.gif" width="69" height="33" /></td>
                <td width="64%" background="images/iceweb.cn_06_04.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="61%">&nbsp;</td>
                    <td width="39%" height="20">首页-关于碧新
                      <%if request("t")<>"" then response.Write("-"&request("t")) end if%></td>
                    </tr>
                </table></td>
                <td width="1%"><img src="images/iceweb.cn_06_06.gif" width="15" height="33" /></td>
              </tr>
            </table></td>
          </tr>
          
          <tr>
            <td background="images/iceweb.cn_09_bg.gif" height="300" valign="top"><p>&nbsp;</p>
            <form action="?action=save" method="post" name="boon" onSubmit="return checkname();">
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="3">
              <tr>
                <td width="21%" height="20" align="right">用 户 名：</td>
                <td width="79%" height="20"><label>
                  <input name="name" type="text" class="input" id="name" maxlength="30" />
                </label></td>
              </tr>
              <tr>
                <td height="20" align="right">密&nbsp;&nbsp;&nbsp; 码：</td>
                <td height="20"><input name="pwd" type="password" class="input" id="pwd" maxlength="30" /></td>
              </tr>
              <tr>
                <td height="20" align="right">确认密码：</td>
                <td height="20"><input name="repwd" type="password" class="input" id="repwd" maxlength="30" /></td>
              </tr>
              <tr>
                <td height="20" align="right">电&nbsp;&nbsp;&nbsp; 话：</td>
                <td height="20"><input name="tel" type="text" class="input" id="tel" maxlength="30" /></td>
              </tr>
              <tr>
                <td height="20" align="right">手&nbsp;&nbsp;&nbsp; 机：</td>
                <td height="20"><input name="mobile" type="text" class="input" id="mobile" maxlength="10" /></td>
              </tr>
              
              <tr>
                <td height="20" align="right">地&nbsp;&nbsp;&nbsp; 址：</td>
                <td height="20"><label>
                  <input name="address" type="text" class="input" id="address" size="45" maxlength="30" />
                </label></td>
              </tr>
              <tr>
                <td height="20">&nbsp;</td>
                <td height="20"><label>
                  <input name="button" type="submit" id="button" value=" 提  交 " />
                </label></td>
              </tr>
            </table>
            </form></td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif">&nbsp;</td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif">&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="74%"><img src="images/iceweb_r1_c1.gif" width="402" height="41" /></td>
                <td width="9%"><a href="javascript:window.print()"><img src="images/iceweb_r1_c2.gif" width="73" height="41" border="0" /></a></td>
                <td width="17%"><a href="#top"><img src="images/iceweb_r1_c3.gif" width="70" height="41" border="0" /></a></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="footer.asp"-->