<!--#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_3').setAttribute("class", "ed4");</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<%
'call chktel()
'call iszizhu()

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"),"修改密码旧密码输入错误",0,1)
call PopErr("旧密码输入有误")
response.End()
else
rs("aypassword")=md5(pass2)
rs.update
rs.close
call logadd(request.Cookies("aynameid"),"密码修改成功",0,0)
call PopErr2("密码修改成功，请重新登录","/index/exit")
end if
end if



%>


<BODY>
<title><%=webname%>-修改密码</title>

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

<H2><SPAN>修改密码</SPAN></H2>
<DIV class=main4><br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<form action="?act=passedit" method="post" name="form2" id="form2">
  <TABLE class=table_style_home_info>
  <TBODY>
  <TR>
    <TD width="121" align="center">旧密码：</TD>
    <TD width="625"><input name="passold" class="inputty" type="password" id="passold" size="30" maxlength="20">
      <span style="color: #999999">输入旧密码（最多20个字符）</span></TD>
  </TR>
  <TR>
    <TD align="center">新密码：</TD>
    <TD><input name="pass1" class="inputty" type="password" id="pass1" size="30" maxlength="20">
      <span style="color: #999999">输入新密码（最多20个字符）</span></TD>
  </TR>
  <TR>
    <TD align="center">确认新密码:</TD>
    <TD><input name="pass2" class="inputty" type="password" id="pass2" size="30" maxlength="20">
      <span style="color: #999999">确认新密码（最多20个字符）</span></TD>
  </TR>

  <TR>
    <TD colspan="2">
    <br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<input name="Submit2" type="submit"  class="butbaocun" id="Submit2" style="cursor:pointer" value=" 修 改 密 码 ">
      <input name="act" type="hidden" id="act" value="passedit">
      <br><br><br></TD>
    </TR>
  </TBODY></TABLE>
</form>
</DIV>
</DIV>
<DIV class=clear></DIV></DIV>
</DIV>


<br>

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


