<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="changepwd.aspx.cs" Inherits="jiaowu.system.changepwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/table.css" rel="stylesheet">
    <script language="javascript">
function checkForm(form){
	if(form.txtoldpwd.value==""){
		alert("请输入的原密码!");form.txtoldpwd.focus();return false;
	}
	if(form.txtpwd.value==""){
		alert("请输入的新密码!");form.txtpwd.focus();return false;
	}	
	if(form.txtpwd1.value==""){
		alert("请确认新密码!");form.txtpwd1.focus();return false;
	}	
	if(form.txtpwd.value!=form.txtpwd1.value){
		alert("您两次输入的新密码不一致，请重新输入!");
		form.txtpwd.value="";form.txtpwd1.value="";
		form.txtpwd.focus();return false;
	}
}
</script>
    <style type="text/css">
        .style3
        {
            text-align: right;
            width:40%;
        }
        .style4
        {
            text-align: left;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server">
    <div>
     <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px">
        </asp:SiteMapPath>
        </div>
    <table width="100%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  <tr>
    <td height="510" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="22" valign="top" class="word_orange">  
          </td>
      </tr>
      <tr align="center">
        <td valign="top">
            <table height="126"  border="0" cellpadding="0" cellspacing="0" width="100%" 
                align="center">
      <tr>
        <td height="29" align="center" class="style3">&nbsp;用户名：</td>
        <td class="style4">
            <asp:Label ID="lblxm" runat="server" Text=""></asp:Label>
            &nbsp;</td>
      </tr>
      <tr>
        <td height="29" align="center" class="style3" style="height: 14px">原密码：</td>
        <td width="190" class="style4">
            <asp:TextBox ID="txtoldpwd" 
                runat="server" Width="168px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="原密码不能为空！" ControlToValidate="txtoldpwd"></asp:RequiredFieldValidator>
          </td>
      </tr>
      <tr>
        <td height="29" align="center" class="style3" style="height: 14px">密码：</td>
        <td width="190" class="style4">
            <asp:TextBox ID="txtpwd" 
                runat="server"  Width="168px" TextMode="Password"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td  class="style3">确认密码：</td>
        <td align="left" class="style4">
            <asp:TextBox ID="txtpwd1" runat="server"  Width="166px" 
                TextMode="Password"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtpwd" ControlToValidate="txtpwd1" 
                ErrorMessage="两次密码输入不一致！"></asp:CompareValidator>
          </td>
      </tr>
      <tr align="center">
        <td height="22" colspan="2" align="center">
          <div align="center">  <asp:Button ID="Button1" runat="server" CssClass="btn_grey" 
                onclick="Button1_Click" Text="保存" onclientclick="checkForm(form1)" />
&nbsp;&nbsp;
<input name="Submit2" type="button" class="btn_grey" value="关闭" onClick="window.close();"><asp:Label 
                ID="labmsg" runat="server" Text=""></asp:Label></div>
          </td>
      </tr>
    </table>
            </td>
      </tr>
    </table>
</td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
