<!--#include virtual="/show/userhead.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.aymail.value=="")
		{
		alert("请填写商户邮箱")
  	    return false;
		}
  
		if (document.form1.aytel.value=="")
		{
		alert("请填写商户手机号码")
  	    return false;
		}
		
		if (document.form1.ayqq.value=="")
		{
		alert("请填写商户QQ号码")
  	    return false;
		}
		
		if (document.form1.ayshenfenzheng.value=="")
		{
		alert("请填写商户身份证号")
  	    return false;
		}
		
		if (document.form1.aywebname.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; 
}
  

var regu =/^[1][2-8][0-9]{9}$/; 
var re = new RegExp(regu); 
if (re.test(document.form1.aytel.value)==false) 
{ 
alert("请正确填写商户手机号码")
return false; 
} 



var regu = /^[-]{0,1}[0-9]{1,}$/; 
if((document.form1.ayqq.value.length<4)||(document.form1.ayqq.value.length>12))
{
alert("请正确填写商户QQ号码")
return false;
}
if(regu.test(document.form1.ayqq.value)==false) 
{
alert("请正确填写商户QQ号码")
return false;
}



  
var cardid = document.form1.ayshenfenzheng.value; 
var pattern;
if (cardid.length==15)
{
pattern= /^\d{15}$/;//正则表达式,15位且全是数字
if (pattern.exec(cardid)==null)
{
alert("请正确填写商户身份证号")
return false;
}
}
else     if (cardid.length==18)
{
pattern= /^\d{17}(\d|x|X)$/;//正则表达式,18位且前17位全是数字，最后一位只能数字,x,X
if (pattern.exec(cardid)==null)
{
alert("请正确填写商户身份证号")
return false;
}
}
 else
{
alert("请正确填写商户身份证号")
return false;
}
return true;   

  
  

}
 </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"))
ayshenfenzheng=trim(SafeRequestform("ayshenfenzheng"))
aywebname=trim(SafeRequestform("aywebname"))

if instr(1,trim(aywebname),"|")<>0 or instr(1,trim(aywebname),"^")<>0 then call PopErr("商户名称,字符|与字符^不可以使用哦，请重新填写！")

	if ayisguolv=1 then
	if guolvRequestform("aywebname",ayguolvcon)=false then 
	call logadd(request.Cookies("aynameid"),"商户补充信息含有敏感文字"&aywebname,0,1)
	call PopErr("表单含有禁止使用的敏感文字")
	end if
	end if

if aytel="" or ayqq="" or aymail="" or ayshenfenzheng="" or aywebname="" 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("ayshenfenzheng")=ayshenfenzheng
rs("aywebname")=aywebname

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"><span style="font-weight: bold; color: #FF0000; font-size: 13px">完善基本信息</span></TD>
    <TD width="227">&nbsp;</TD>
    <TD width="455">&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><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"><span style="font-size: 13px">身份证：</span></TD>
    <TD>
      <input name="ayshenfenzheng" type="text"  class="inputty" id="ayshenfenzheng" value="<%if trim(rs("ayshenfenzheng"))<>"" and isnull(trim(rs("ayshenfenzheng")))=false then response.Write trim(rs("ayshenfenzheng"))%>" maxlength="18" <%if trim(rs("ayshenfenzheng"))<>"" and isnull(trim(rs("ayshenfenzheng")))=false then response.Write ("readonly")%>>   </TD>
    <TD align="left">商户修改信息的重要验证资料</TD>
  </TR>
  <TR>
    <TD align="center">商户名称<span style="font-size: 13px">：</span></TD>
    <TD><input name="aywebname" type="text"  class="inputty" id="aywebname" value="<%if trim(rs("aywebname"))<>"" and isnull(trim(rs("aywebname")))=false then response.Write trim(rs("aywebname"))%>" maxlength="50" <%if trim(rs("aywebname"))<>"" and isnull(trim(rs("aywebname")))=false then response.Write ("readonly")%>></TD>
    <TD align="left">将出现在商品购买页面 如：爱卡 </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"-->


