<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="connoklin.asp" -->
<%if session("linok")="" then
response.redirect "index.asp"
response.end
end if%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员资料修改-凯萨洗衣</title>
<link href="pic/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
<!--
function checkuserinfo()
{
    if(checkspace(document.userinfo.password.value) || document.userinfo.password.value.length < 6 || document.userinfo.password.value.length >20) {
	document.userinfo.password.focus();
    alert("密码长度不能不能这空，在6位到20位之间，请重新输入！");
	return false;
  }
    if(document.userinfo.password.value != document.userinfo.password2.value) {
	document.userinfo.password.focus();
	document.userinfo.password.value = '';
	document.userinfo.password2.value = '';
    alert("两次输入的密码不同，请重新输入！");
	return false;
  }
   if(document.userinfo.email.value.length!=0)
  {
    if (document.userinfo.email.value.charAt(0)=="." ||        
         document.userinfo.email.value.charAt(0)=="@"||       
         document.userinfo.email.value.indexOf('@', 0) == -1 || 
         document.userinfo.email.value.indexOf('.', 0) == -1 || 
         document.userinfo.email.value.lastIndexOf("@")==document.userinfo.email.value.length-1 || 
         document.userinfo.email.value.lastIndexOf(".")==document.userinfo.email.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.email.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.email.focus();
   return false;
   }
   if(checkspace(document.userinfo.cname.value)) {
	document.userinfo.cname.focus();
    alert("对不起，请填写公司名字！");
	return false;
  }
   if(checkspace(document.userinfo.personame.value)) {
	document.userinfo.personame.focus();
    alert("对不起，请填写联系人！");
	return false;
  }
   if(checkspace(document.userinfo.tel.value)) {
	document.userinfo.tel.focus();
    alert("对不起，请填写联系电话！");
	return false;
  }
   if(checkspace(document.userinfo.addr.value)) {
	document.userinfo.addr.focus();
    alert("对不起，请填写联系地址！");
	return false;
  }
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
</head>

<body>
<!--#include file="ttop.asp" -->
<table width="993" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="D9F2F3">
  <tr>
<!--#include file="lleft.asp" -->
    <td width="12"></td>
    <td width="740" valign="top"> 
      <table width="739" border="0" cellspacing="0" cellpadding="0">
        <tr><td height="8"></td></tr>
        <tr>
          <td width="739" height="37" align="left" valign="top"  background="pic/555.gif" class="gblin"> 
            <table width="97%" border="0" align="right" cellpadding="0" cellspacing="0">
			<tr><td height="7"></td></tr>
              <tr>
    <td class="gblin">&nbsp;会员注册</td>
  </tr>
</table>
           </td>
        </tr>
        <tr>
          <td width=739 height="850" valign="top" background="pic/1bg.gif">
		 <% set rs=server.createobject("adodb.recordset")
SQL ="Select * From regUser where username='"&session("linok")&"'"
rs.open sql,conn,1,1
if rs.eof then
response.write "出错了"
response.end
end if
%>

		  
		  <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td align="center"><br> <font color="#FF0000">*请详细填写加盟申请表并按提交键执行。</font> 
                </td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top"> <form name=userinfo method=post action=regedit_ok.asp>
                    <table width="550" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#01c3c4">
                      <tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          用 户 名：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <font color="#FF0000"><%=rs("username")%></font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td class="gb" align="right" bgcolor="#e7e7e7"> 密 码：</td>
                        <td width="84%" class="gb" bgcolor="#F5F9FE"> <input name="password" type="password" class="box" id="password" value="******" size="20"> 
                          <font color="#FF0000">* <br>
                          长度必须大于6个字符小于20个字符</font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td class="gb" align="right" bgcolor="#e7e7e7"> 确认密码：</td>
                        <td width="84%" class="gb" bgcolor="#F5F9FE"> <input name="password2" type="password" class="box" id="password2" size="20" value="******"> 
                          <font color="#FF0000">*</font> <br> <font color="#FF0000">请将输入的密码再次输入，以免设置密码出错。</font> 
                        </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          Email：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <input type="text" name="email" class="box" size="20" id="email" value="<%=rs("email")%>"> 
                          <font color="#FF0000">*</font></td>
                      </tr>
					   <tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          公司名字：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <input type="text" name="cname" class="box" size="20" id="cname" value="<%=rs("cname")%>"> 
                          <font color="#FF0000">*</font></td>
                      </tr><tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          联系人：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <input type="text" name="personame" class="box" size="20" id="personame" value="<%=rs("personame")%>"> 
                          <font color="#FF0000">*</font></td>
                      </tr><tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          联系电话：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <input type="text" name="tel" class="box" size="20" id="tel" value="<%=rs("tel")%>"> 
                          <font color="#FF0000">*</font></td>
                      </tr><tr bgcolor="#FFFFFF"> 
                        <td width="25%" height="26" class="gb" align="right" bgcolor="#e7e7e7"> 
                          联系地址：</td>
                        <td width="84%" height="26" class="gb" bgcolor="#F5F9FE"> 
                          <input type="text" name="addr" class="box" size="20" id="addr" value="<%=rs("addr")%>"> 
                          <font color="#FF0000">*</font></td>
                      </tr>
                    </table>
                    <br>
                    <p align="center" class="gb"> 
                      <input name="Submit3" type="submit" class="go-wenbenkuang" value="提交信息" onClick="return checkuserinfo();">
                      <input name="Submit22" type="reset" class="go-wenbenkuang" value="重置">
                      <br>
                      <br>
                    </p>
                  </form></td>
              </tr>
            </table> </td>
        </tr>
        <tr>
          <td><img src="pic/1end.gif"></td>
        </tr>
      </table>
	  
    </td>
    <td width="11"></td>
  </tr>
</table>
<!--#include file="eend.asp" -->
</body>
</html>
