<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="change_pass.aspx.cs" Inherits="HRMS.change_pass" %>

<!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="ThemeScrips/a_data/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="ThemeScrips/a_data/jquery.js" type="text/javascript"></script>
    <script src="ThemeScrips/a_data/bootstrap.min.js" type="text/javascript"></script>
    <link href="ThemeScrips/a_data/style.css" rel="stylesheet" type="text/css" />
    <%--<link href="ThemeScrips/a_data/bootstrap-reset.css" rel="stylesheet" type="text/css" />--%>
</head>
<body style="background-color: #f1f2f7;">
    <form id="form1" runat="server">
    <div class="container">
        <div class="row" style="padding-top: 4%;">
            <div class="panel panel-default" style="width: 80%; margin: auto;">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-md-5">
                            <h4>
                                Change Password</h4>
                        </div>
                        <div class="col-md-7">
                            <div class="actions pull-right">
                                <div class="btn-group">
                                    <asp:Button ID="btnSave" class="btn btn-info " runat="server" ValidationGroup="save"
                                        Text="Change Password" OnClick="btnSave_Click"></asp:Button>
                                    

                                        <%--<a href="#" id="alogin" runat="server" class="btn btn-info" style="margin-left: 5px !important;">
                                        Login</a>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel-body">
                    <hr class="divider" />
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            Provide a new password. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            Password Policy
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-md-2">
                                    Current Password</div>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_current_pass" TextMode="Password" runat="server">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="RequiredFieldValidator1" controltovalidate="txt_current_pass" errormessage="Current Password is Required!" />
                                </div>
                                <div class="col-md-5 col-md-offset-2">
                                    <label class="control-label">
                                        Password Lenght (Min):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5</label>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-2">
                                    New Password</div>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_newpass" TextMode="Password" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_txt_newpass" controltovalidate="txt_newpass" errormessage="New Password is Required!" />
                                </div>
                                <div class="col-md-5 col-md-offset-2">
                                    <label class="control-label">
                                        Password Lenght (Max):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15</label>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-2">
                                    Confirm Password</div>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_cnfrm_pass" TextMode="Password" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="RequiredFieldValidator2" controltovalidate="txt_cnfrm_pass" errormessage="Confirm Password is Required!" />
                                    <asp:CompareValidator ID="cmp_pass" Operator="Equal" runat="server" ValidationGroup="save"
                                        ControlToValidate="txt_cnfrm_pass" ControlToCompare="txt_newpass" ErrorMessage="Confirm Password must be equal to New Password"></asp:CompareValidator>
                                </div>
                                <div class="col-md-5 col-md-offset-2">
                                    <label class="control-label">
                                        Wrong Password Limit:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4</label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                            <i class="icon-check-sign"></i>
                            <asp:Label ID="lblMessage" class="msg" runat="server" Text=""></asp:Label>
                        </div>
                        <div class="span6">
                            <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                                <i class="icon-check-sign"></i>
                                <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text=""></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
