<!--#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" />
<%
'call iszizhu()
call gaojiquanxian_old("anquan")

isrenzheng="no"

act=SafeRequestform("act")

if act="passedit" then

passold=trim(SafeRequestform("passold"))
pass1=trim(SafeRequestform("pass1"))
pass2=trim(SafeRequestform("pass2"))

if trim(passold)="" or trim(pass1)="" or trim(pass2)="" then call PopErr("请填写完整")
if trim(pass1)<>trim(pass2) then call PopErr("两次密码输入不一致")

sql="select * from ayname where aynameid="&clng(request.Cookies("aynameid"))&" and aypassword='"&md5(passold)&"'" 
rs.open sql,conn,1,3
if rs.bof and rs.eof then
call logadd(request.Cookies("aynameid"),"修改密码旧密码输入错误",4,1)
call PopErr("旧密码输入有误")
response.End()
else
rs("aypassword")=md5(pass2)
rs.update
rs.close
call logadd(request.Cookies("aynameid"),"密码修改成功",4,0)
call PopErr2("密码修改成功，请重新登录","/index/exit")
end if
end if


if act="anquanadd" then
anquanma=trim(SafeRequestform("anquanma"))
anquanma2=trim(SafeRequestform("anquanma2"))
password=trim(SafeRequestform("password"))
if anquanma="" or anquanma2="" or password="" then PopErr("请填写完整")
if anquanma<>anquanma2 then PopErr("两次支付密码输入不一致")
sql="select * from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,3
if md5(password)<>trim(rs("aypassword")) then 
call logadd(request.Cookies("aynameid"),"设置支付密码密码错误",4,1)
call PopErr("密码输入错误")
response.End()
end if
rs("ayanquan")=md5(anquanma)
rs.update
rs.close
call logadd(request.Cookies("aynameid"),"支付密码设置成功",4,0)
call PopErr2("支付密码设置成功","anquan")
end if
%>



<style>
table{font-size:14px; font-weight:normal;line-height:27px;}
.regts{width:440px; height:36px; border:#CCC solid 1px; background:#f1f1f1; color:#666666; line-height:36px; padding-left:10px}
.reginput{width:290px; height:36px; border:#CCC solid 1px; color:#949494; text-indent:10px; line-height:36px}
.gexian20{float:left;width:100%;height:20px;}
.mzsmbox2{width:90%; height:auto; overflow:hidden; background:#fcf8e2; border-left:#edd28a solid 5px; color:#956825; line-height:22px; padding:20px;margin-left:40px; margin-bottom:60px; font-size:13px;padding-top:20px;}
</style>

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

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

<H2><SPAN>安全中心</SPAN></H2>
<DIV class=main4><br>

<%if act="" then%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-size: 14px; color: #FF0000">修改密码</span><br>
<form action="?act=passedit" method="post" name="form2" id="form2">
                        <table class="neitableanquan" width="1080">
           		  		<tr>
                            <td colspan="2" align="center">旧密码：</td>
                            <td width="350"><input name="passold" type="password" class="reginput" id="passold" style="width:340px;" maxlength="20"></td>
                          <td><div class="regts" > 输入当前旧密码，最多20个字符</div></td>
                        </tr>
                 		<tr>
                            <td colspan="2" align="center">设置新密码：</td>
                            <td><input name="pass1" type="password" class="reginput" id="pass1" style="width:340px;" maxlength="20"></td>
                            <td><div class="regts" > 设置一个新的新密码，最多20个字符</div></td>
                        </tr>
                 		<tr>
                            <td colspan="2" align="center">确认新密码：</td>
                            <td><input name="pass2" type="password" class="reginput" id="pass2" style="width:340px;"  maxlength="20"></td>
                            <td><div class="regts" > 再次确认新的新密码，最多20个字符</div></td>
                        </tr>
                 		<tr>
                            <td colspan="2"><input name="act" type="hidden" id="act" value="passedit"></td>
                            <td colspan="2"><input style="cursor:pointer" class="logindlreg" type="submit" name="Submit" value=" 修改密码 " ></td>
                        </tr>
                    </table>
        </form>

<%end if%>


<br>



<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-size: 14px; color: #FF0000">支付密码</span><br>
<form action="" method="post" name="form1" id="form1">
<table class="neitableanquan" width="1080">
                                <%if trim(rs("ayanquan"))="0" or trim(rs("ayanquan"))="" then%>
                                <tr>
                                    <td colspan="2" align="center">&nbsp;设置支付密码：</td>
                                    <td width="350"><input name="anquanma" class="reginput" type="password" id="anquanma" style="width:340px;" maxlength="18"></td>
                                  <td><div class="regts" > 不超过18个字符</div></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">&nbsp;确认支付密码：</td>
                                    <td><input name="anquanma2" class="reginput" type="password" id="anquanma2" style="width:340px;" maxlength="18"></td>
                                    <td><div class="regts" > 再次确认支付密码</div></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">&nbsp;输入登录密码：</td>
                                    <td><input name="password" class="reginput" type="password" id="password" style="width:340px;" maxlength="18"></td>
                                    <td><div class="regts" > 输入账号登录密码进行验证</div></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center"><input name="act" type="hidden" id="act" value="anquanadd"></td>
                                    <td><input style="cursor:pointer" class="logindlreg" type="submit" name="Submit" value=" 设置支付密码 " ></td>
                                    <td></td>
                                </tr>
								<%else%>
                                <tr>
                                    <td height="40" colspan="2" align="center"></td>
                            <td><span style="font-weight: bold; color: #009900">支付密码已设置</span> <a href="anquanedit" style="color: #999999">（点击修改）</a></td>
                                    <td></td>
                                </tr>
                                <%end if%>

                            </table>
                            </form>
  <br> 

                            

<%
rs.close
%>
</DIV>
</DIV>
<DIV class=clear></DIV></DIV>
</DIV>


<br>

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


