<!--#include file="head.asp"-->
<!--#include file="subleft.asp"-->

<script>document.getElementById('o_1').setAttribute("class", "ed"); document.getElementById("t_1").style.display="";document.getElementById('s_1_2').setAttribute("class", "ed4");</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<%
'暂时未启用
response.End()

Function RndNumber(Min,Max) 
Randomize 
RndNumber=Int((Max - Min + 1) * Rnd() + Min) 
End Function 
today=Date 
suiji=Year(today)&Right("0" & Month(today),2)&Right("0" & Day(today),2)&RndNumber(1000000,9999999)
%>



<title><%=webname%>-完善账户信息</title>

			 
<script language="javascript">
function checkedit()
{ 
	
		if (document.form1.aytrueuser.value=="")
		{
		alert("请填写姓名")
  	    return false;
		}
	
		if (document.form1.aymail.value=="")
		{
		alert("请填写常用邮箱")
  	    return false;
		}
		
		var myReg = /^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/; 
		if(myReg.test(document.form1.aymail.value)==false) 
		{ 
		alert("请正确填写邮箱")
		return false; 
		}
  
		if (document.form1.aytel.value=="")
		{
		alert("请填写常用手机号码")
  	    return false;
		}
		
		var regu =/^[1][2-8][0-9]{9}$/; 
		var re = new RegExp(regu); 
		if (re.test(document.form1.aytel.value)==false) 
		{ 
		alert("请正确填写手机号码")
		return false; 
		} 
		
		
		
		if (document.form1.ayqq.value=="")
		{
		alert("请填写常用QQ号码")
  	    return false;
		}
		
		
		if((document.form1.ayqq.value.length<4)||(document.form1.ayqq.value.length>12))
		{
		alert("请正确填写QQ号码")
		return false;
		}
		
		var regu = /^[-]{0,1}[0-9]{1,}$/; 
		if(regu.test(document.form1.ayqq.value)==false) 
		{
		alert("请正确填写QQ号码")
		return false;
		}

  

}
 </script>	 
 
			 


 
 
<%

act=SafeRequestform("act")
if act="edit" then
call chkwurl()
sql="select ayisguolv,ayguolvcon from ayquanju" 
rs.open sql,conn,1,1
ayisguolv=rs("ayisguolv")
ayguolvcon=trim(rs("ayguolvcon"))
rs.close


aytel=trim(SafeRequestform("aytel"))
ayqq=trim(SafeRequestform("ayqq"))
aymail=trim(SafeRequestform("aymail"))
aytrueuser=trim(SafeRequestform("aytrueuser"))


if aytel="" or ayqq="" or aymail="" or aytrueuser="" then call PopErr("请填写完整")

sql="select * from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,3

rs("aytel")=aytel
rs("ayqq")=ayqq
rs("aymail")=aymail
rs("aytrueuser")=aytrueuser

rs.update
rs.close
call logadd(request.Cookies("aynameid"),"买家账户信息完善成功",0,0)
call PopErr2("账户信息完善成功","myname")
end if

%>
<br>
<DIV id=main2> 
<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>

<H2><SPAN>完善账户信息</SPAN></H2>
<DIV class=main3>
<%
sql="select * from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,1
isbu="no"
if rs("ayqq")="" or isnull(rs("ayqq"))=true then isbu="yes"
if rs("aytel")="" or isnull(rs("aytel"))=true then isbu="yes"
if trim(rs("ayshenfenzheng"))="" or isnull(trim(rs("ayshenfenzheng")))=true then isbu="yes"
if trim(rs("aymail"))="" or isnull(trim(rs("aymail")))=true then isbu="yes"
if trim(rs("aywebname"))="" or isnull(trim(rs("aywebname")))=true then isbu="yes"
if isbu="no" then 
response.Write"数据错误"
response.end
end if	
%>
<form action="buchong" method="post" name="form1" id="form1" onSubmit="return checkedit()">
  <TABLE width="800" align="center" class=table_style_home_info>
  <TBODY>
  <TR>
    <TD width=102 align="center"></TD>
    <TD width="178">&nbsp;</TD>
    <TD width="504">&nbsp;</TD>
  </TR>
  <TR>
    <TD align="center"><span style="font-size: 13px">用户名：</span></TD>
    <TD><span style="font-size: 13px"><%=rs("ayusername")%></span></TD>
    <TD align="left">&nbsp;</TD>
  </TR>
  <TR>
    <TD align="center">真实姓名<span style="font-size: 13px">：</span></TD>
    <TD><input name="aytrueuser" type="text"  class="inputty" id="aytrueuser" value="<%if trim(rs("aytrueuser"))<>"" and isnull(trim(rs("aytrueuser")))=false then response.Write trim(rs("aytrueuser"))%>"></TD>
    <TD align="left">请填写真实姓名 </TD>
  </TR>
  <TR>
    <TD align="center"><span style="font-size: 13px">电子邮箱：</span></TD>
    <TD><span style="font-size: 13px">
      <input name="aymail" type="text" class="inputty" id="aymail" value="<%if trim(rs("aymail"))<>"" and isnull(trim(rs("aymail")))=false then response.Write trim(rs("aymail"))%>" maxlength="30" <%if trim(rs("aymail"))<>"" and isnull(trim(rs("aymail")))=false then response.Write ("readonly")%> >
    </span></TD>
    <TD align="left"><span style="color: #999999">请填写常用真实电子邮箱</span></TD>
  </TR>
  
  <TR>
    <TD align="center"><span style="font-size: 13px">手机号码：</span></TD>
    <TD><span style="font-size: 13px">
      <input name="aytel" type="text" class="inputty" id="aytel" value="<%if trim(rs("aytel"))<>"" and isnull(trim(rs("aytel")))=false then response.Write trim(rs("aytel"))%>" maxlength="11" <%if trim(rs("aytel"))<>"" and isnull(trim(rs("aytel")))=false then response.Write ("readonly")%>>
    </span></TD>
    <TD align="left"><span style="color: #999999">请填写真实常用手机号码</span></TD>
  </TR>
  <TR>
    <TD align="center"><span style="font-size: 13px">QQ号码：</span></TD>
    <TD><span style="font-size: 13px">
      <input name="ayqq" type="text" class="inputty" id="ayqq" value="<%if trim(rs("ayqq"))<>"" and isnull(trim(rs("ayqq")))=false then response.Write trim(rs("ayqq"))%>" maxlength="11" <%if trim(rs("ayqq"))<>"" and isnull(trim(rs("ayqq")))=false then response.Write ("readonly")%>>
      </span></TD>
    <TD align="left"><span style="color: #999999">请填写真实常用QQ号码</span></TD>
  </TR>

  
  <TR>
    <TD align="center"></TD>
    <TD colspan="2"></TD>
  </TR>
  <%if cint(rs("ayshoukuanfs"))=3 then%>
  <%end if%>
  
  <TR>
    <TD colspan="3" align="center">
      <span style="font-size: 13px">
      <input name="act" type="hidden" id="act" value="edit">
      </span>
      <input style="cursor:pointer"  class="butbaocun" type="submit" name="Submit" value=" 确认修改 " ></TD>
    </TR>
  </TBODY></TABLE>
</form>
<%rs.close%>


</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>

<br>
	<!--#include virtual="/show/foot.asp"-->


