<%@language=vbscript codepage=936 %>
<%path="../basedata"%>
<!--#include file="../inc/function.asp"-->
<%call Loginpower%>
<%call Legalpower%>
<!--#include file="../conn/conn_admin.asp"-->
<%
dim id,rs,sqltext
id=request.querystring("id")
if not idboolean(id) then  response.write errorback("你非法操做……"):response.end
set rs=server.createobject("adodb.recordset")
sqltext="select * from admin where Admin_id="&id
rs.open sqltext,conn_admin,1,1
%>
<!-- #include file="../Inc/Head.asp" -->
<SCRIPT language=javascript>
<!--
function form1_onsubmit()
{
if (document.FORM1.pwd.value=="")
{
alert ("你输入原密码为空，请确认您的密码。");
document.FORM1.pwd.focus();
return false;
}
if (document.FORM1.pwd1.value.length<6 || document.FORM1.pwd2.value.length<6)
{
alert ("为你的密码安全,你输入密码不能小于6位，请确认您的密码。");
return false;
}
if (document.FORM1.pwd1.value!=document.FORM1.pwd2.value)
{
alert ("你输入两次密码不相同，请确认您的密码。");
document.FORM1.pwd1.value="";
document.FORM1.pwd2.value="";
document.FORM1.pwd1.focus();
return false;
}
}
//-->
</SCRIPT>
<div style="text-align:center;"><br/><br/><br/><br/><br/>
<table width="400" border="1" cellpadding="0" cellspacing="2"  class="center" bordercolor="#A5B6D6"> 
<form name="FORM1"  onSubmit="return form1_onsubmit()" action="Manager_Admin_Modify_save.asp?id=<%=rs("Admin_id")%>" method="post">
      <input type="hidden" value="<%=rs("Admin_User")%>" name="uid">
  <tr>
    <td class="southidc" height="25" colspan="2"><div align="center"><strong>管理员密码修改</strong></div></td>
  </tr>
  <tr>
    <td width="40%" height="22"><div align="right">管理员帐号：</div></td>
    <td width="60%"><strong style="color:#ff0000;font-size:19px;letter-spacing:2px;"><%=rs("admin_User")%></strong></td>
  </tr>
  <tr>
    <td height="22" width="40%"><div align="right">&nbsp;&nbsp;&nbsp;&nbsp;原密码：</div></td>
    <td width="60%"><input name="pwd" type="text" size="16" maxlength="20"></td>
  </tr>
  <tr>
    <td height="22" width="40%"><div align="right">&nbsp;&nbsp;&nbsp;&nbsp;新密码：</div></td>
    <td width="60%"><input name="pwd1" type="text" size="16" maxlength="20"></td>
  </tr>
  <tr>
    <td height="22" width="40%"><div align="right">&nbsp;&nbsp;密码确认：</div></td>
    <td width="60%"><input name="pwd2" type="text" size="16" maxlength="20"></td>
  </tr>
  <tr>
    <td  height="22" colspan="2"><div align="center">
      <input  type="submit" value="确认修改" name="Submit"></td>
  </tr>
</table>
</div>
<%
rs.close
set rs=nothing
conn_admin.close
set conn_admin=nothing
%>
<!-- #include file="../Inc/Foot.asp" -->