<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs"
    Inherits="RedGlovePermission.Web.Admin.ChangePassword" %>

<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!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 runat="server">
    <title>密码修改</title>
    <link href="../Inc/Style/default/css/indexControl.css" rel="stylesheet" type="text/css" />

    <script src="../Inc/Script/pub.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        function checksubmit() {
            var ret = true;

            if ($id("OldPassword").value == "") {
                alert('请输入原密码!');
                ret = false;
            }

            else if ($id("NewPassword").value == "") {
                alert('请输入新密码!');
                ret = false;
            }

            else if ($id("RePassword").value == "") {
                alert('请输入确认密码!');
                ret = false;
            }

            else if ($id("NewPassword").value != $id("RePassword").value) {
                alert('新密码与确认密码不一样!');
                ret = false;
            }

            return ret;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="divToolBar" class="topBar">
        <div class="toolBar">
        </div>
        <div class="moduleName">
            密码修改</div>
    </div>
    <asp:UpdatePanel ID="CustomPanel1" runat="server">
        <ContentTemplate>
            <table border="0" cellpadding="5" cellspacing="0" style="margin-top: 10px; margin-left: 10px;">
                <tr>
                    <td>
                        原&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;码：
                    </td>
                    <td>
                        <asp:TextBox ID="OldPassword" runat="server" Style="width: 120px" CssClass="inputbox"
                            TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        新&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;码
                    </td>
                    <td>
                        <asp:TextBox ID="NewPassword" runat="server" Style="width: 120px" CssClass="inputbox"
                            TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        确认新密码
                    </td>
                    <td>
                        <asp:TextBox ID="RePassword" runat="server" Style="width: 120px" CssClass="inputbox"
                            TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2" style="padding-top:10px;">
                        <asp:Button ID="btn_save" class="button" runat="server" Text=" 确定修改 " OnClick="btn_save_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
