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

<!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>Cloud HR - First Login::.</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="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 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>Password Management</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"  onclick="btnSave_Click" Text="Submit" ValidationGroup="save" ></asp:Button>
                                                  <a href="#" id="aCancel" runat="server" class="btn btn-info" style="margin-left:5px !important; ">Cancel</a>
                                                </div>
                                            </div>
                                       </div>
                                         </div>
                                      </div>             
            
           

            <div class="panel-body">
                       <div class="row">
                                <div class="col-md-6 ">
                                       <div class="panel panel-success" >
                                             <div class="panel-heading" style="background-color:White !important;" >Provide a new password.</div>
                                             <div class="panel-body">
                                                    <div class="form-group">
                                                           <div class="col-md-6">
                                                             Current Password
                                                           </div>
                                                           <div class="col-md-6">
                                                               <asp:TextBox ID="txt_CurrentPass" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                                                               <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_CurrentPass" ControlToValidate="txt_CurrentPass" ErrorMessage="Current password is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                            </div>
                                                    </div>
                                                    <div class="form-group">
                                                           <div class="col-md-6">
                                                             New Password   
                                                           </div>
                                                           <div class="col-md-6">
                                                               <asp:TextBox ID="txt_new_pass" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                                                               <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_new_pass"  ControlToValidate="txt_new_pass" ErrorMessage="New password is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                               <asp:RegularExpressionValidator  ControlToValidate = "txt_new_pass" ID="RegularExpressionValidator_txt_new_pass" ValidationGroup="save"   runat="server" ErrorMessage="Invalid password length."></asp:RegularExpressionValidator>
                                                           </div>
                                                    </div>
                                                    <div class="form-group">
                                                           <div class="col-md-6">
                                                             Re-Type New Password
                                                           </div>
                                                           <div class="col-md-6">
                                                               <asp:TextBox ID="txt_confirm_pass" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                                                                   <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_confirm_pass" ControlToValidate="txt_confirm_pass" ErrorMessage="New password is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                                   <asp:CompareValidator ID="CompareValidator_txt_confirm_pass" runat="server" ControlToCompare="txt_new_pass" ControlToValidate="txt_confirm_pass" ErrorMessage="Both passwords should same." ValidationGroup="save" setfocusonerror="true"></asp:CompareValidator>
                                                            </div>
                                                    </div>
                                                    
                                             
                                             </div>
                                        </div>
                                        <h6></h6>    
                                        <asp:Label ID="lbl_pwsExpireDays" runat="server" CssClass="h6"> </asp:Label>

                                </div>
                                <div class="col-md-6">
                                        <div class="panel panel-success">
                                                 <div class="panel-heading" style="background-color:White !important;" >You Password Policy.</div>
                                                  <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-6">
                                                          <label>Policy Name:</label> 
                                                        </div>
                                                        <div class="col-md-6">
                                                          <asp:Label ID="lbl_pname" runat="server"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                         <div class="col-md-6">
                                                         <label>Password Length (Min):</label>
                                                        </div>
                                                        <div class="col-md-6">
                                                          <asp:Label ID="lbl_plmn" runat="server"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-6">
                                                         <label>Password Length (Max):</label>
                                                        </div>
                                                        <div class="col-md-6">
                                                          <asp:Label ID="lbl_plmx" runat="server"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-6">
                                                        <label>Wrong Password limit:</label>
                                                        </div>
                                                        <div class="col-md-6">
                                                          <asp:Label ID="lbl_wpl" runat="server"></asp:Label>
                                                        </div>
                                                    </div>
                                                  </div>

                                         </div>
                                </div>
                       </div> 
                  

              <hr class="divider"/>
              <div class="panel panel-primary">
                 <div class="panel-heading">Register challenges questions for your account</div>
                 <div class="panel-body">
                         <div class="row">
                            <div class="col-md-6">
                                <div class="col-md-3">Question 1</div>
                                <div class="col-md-9"><asp:DropDownList ID="ddl_f_question" runat="server" CssClass="form-control"></asp:DropDownList></div>
                            </div>
                            <div class="col-md-6">
                                <div class="col-md-3">Answer 1</div>
                                <div class="col-md-6">
                                   <asp:TextBox ID="txt_f_answer" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_f_answer" ControlToValidate="txt_f_answer" ErrorMessage="Answer 1 is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                               
                                </div>
                            </div>
                      </div>
            
                         <div class="row">
                            <div class="col-md-6">
                                <div class="col-md-3">Question 2</div>
                                <div class="col-md-9"><asp:DropDownList ID="ddl_s_question" runat="server" CssClass="form-control"></asp:DropDownList></div>
                            </div>
                            <div class="col-md-6">
                                <div class="col-md-3">Answer 2</div>
                                <div class="col-md-6">
                                   <asp:TextBox ID="txt_s_answer" runat="server" CssClass="form-control"></asp:TextBox>
                                   <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_s_answer" ControlToValidate="txt_s_answer" ErrorMessage="Answer 2 is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                    
                                </div>

                            </div>
                        </div>
       
                 </div>
              </div>
                      
            
            </div>
         </div>

       
       </div>
    </div>
    
    </div>
    </form>
</body>
</html>
