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

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

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

<title><%=webname%>-支付密码验证</title>

<%
if SafeRequestform("catanquan")="anquan" then
anquanma=trim(SafeRequestform("anquanma"))
tourl=trim(SafeRequest("tourl"))

if anquanma="" then call PopErr("请填写完整")

sql="select aynameid,ayanquan from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,1
if trim(rs("ayanquan"))<>"0" or trim(rs("ayanquan"))="" then
	if md5(anquanma)<>trim(rs("ayanquan")) then 
	
		if request.Cookies("codeerr")="" then response.Cookies("codeerr")=1:else:response.Cookies("codeerr")=request.Cookies("codeerr")+1:end if
		
		if request.Cookies("codeerr")>4 then
		conn.Execute("Insert Into ayiph(ayipn)values('"&userinip&"')")
		end if
	
	call logadd(request.Cookies("aynameid"),"查看库存卡支付密码错误",0,1)
	call PopErr("支付密码输入错误")
	end if
	
	response.Cookies("codeerr")=""
	response.Cookies("yanzheng")=md5("chaku"&request.Cookies("aynameid")&ptjiami)
	response.Redirect tourl
else
call PopErr2("请先设置支付密码","anquan")
end if
rs.close

end if
%>
<br>
<DIV id=main2> 
<DIV style="PADDING-LEFT:0px">
<DIV id=main_right_content>

<H2><SPAN>支付密码验证</SPAN></H2>
<DIV class=main4>

<form action="" method="post" name="formyz" id="formyz">
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table_style_a2">
  <tr>
    <td height="35">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="113" height="35" align="center">输入支付密码：</td>
    <td width="665">&nbsp;&nbsp;
      <input name="anquanma" class="inputty" type="password" id="anquanma">
      <input name="catanquan" type="hidden" id="catanquan" value="anquan">
      <input name="tourl" type="hidden" id="shangid" value="<%=tourl%>">
      &nbsp;&nbsp;<input type="submit" name="Submit2" value=" 确 定 "> <a href="anquan">[设置支付密码]</a></td>
  </tr>
  <tr>
    <td height="35">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>


</DIV>


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

	
%>
<br>

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


