<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_BaseFramework_Security_EmployeePassword, App_Web_1jrlsqiq" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="EmployeePasswordUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="122"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader5WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-cog"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Maintainance"></asp:Label>
                                            </header>
                                        </div>
                                        <div class="fRight mt-27 pagination display-flex">
                                            <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="cBoth">
                                            </div>
                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DepartmentLabel" runat="server" Text="Department" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="DepartmentDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EmployeeGroupLabel" runat="server" Text="Employee Group"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="EmployeeGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="EmployeeGroupDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label3" runat="server" Text="Login "></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="userLoginDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="userLoginDropDownList_SelectedIndexChanged">
                                                            <asp:ListItem Value="0">-Select-</asp:ListItem>
                                                            <asp:ListItem Value="1">Pending Login</asp:ListItem>
                                                            <asp:ListItem Value="2">Created Login</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" style="display: none;">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="PendingLoginCheckBox" runat="server" Text="Pending Login" OnCheckedChanged="PendingLoginCheckBox_CheckedChanged"
                                                            AutoPostBack="True" />
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="CreatedLoginCheckBox" runat="server" Text="Created Login" OnCheckedChanged="CreatedLoginCheckBox_CheckedChanged"
                                                            AutoPostBack="True" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="RoleLabel" Text="Role" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="RoleDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PrefixLabel" runat="server" Text="Prefix"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="PrefixTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                            onmouseenter="showHideTooltip()"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="StatusSearchLabel" runat="server" Text="Status"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()"
                                                            OnSelectedIndexChanged="StatusDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-6">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBoxList ID="AlertCheckBoxList" runat="server" RepeatDirection="Horizontal">
                                                            <asp:ListItem Text="SMS" Value="1" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Email" Value="2"></asp:ListItem>
                                                            <asp:ListItem Text="Notification" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="StopAutoAlertCheckBox" runat="server" Text="Stop Auto Alert" />
                                                    </div>
                                                </div>
                                                <div class="col-md-12 mb-27" runat="server" id="StrongPasswordDiv" visible="false">
                                                    <div class="alert-info">
                                                        <b>The password must be at least eight characters long and include at least one uppercase letter, one lowercase letter, one number, and one special character.</b>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>

                                                <div class="spacer">
                                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                </div>
                                            </asp:Panel>
                                            <div id="Div2" class="fRight col-md-3 pTop5" runat="server" visible="false">
                                                <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100" SkinID="CustomWidthTextBox" Width="100px"></asp:TextBox>
                                                <asp:TextBox ID="AutocompleteTextBox" runat="server" ClientIDMode="Static" MaxLength="100" SkinID="CustomWidthTextBox" Width="100px" Style="display: inline-block; user-select: none; opacity: 0; border: 0.1px solid; border-radius: 1px; padding: 1px; width: 1px;"></asp:TextBox>
                                                &nbsp;&nbsp;&nbsp;
                                                <asp:Button ID="ApplyAllButton" SkinID="0" Text="&#xf058; Apply All" CssClass="btn btn-apply fas" runat="Server" OnClick="ApplyAllButton_Click" />
                                            </div>
                                            <div id="Div1" class="himssuHeader7WireBox col-md-12 pTop5" runat="server"
                                                visible="false">
                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <%--<div class="gridHeaderText fLeft">
                                                            <asp:Label ID="GridViewLabel" Text="List" 
                                                                runat="server" Font-Bold="True" 
                                                             meta:resourcekey="GridViewLabelResource1" ForeColor="White" /> 
                                                        </div>--%>
                                                        <div class="headerText">
                                                            <%-- <header class="col-md-1">
                                                                <asp:Label ID="Label2" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                            </header>--%>
                                                            <%--change for 26868--%>
                                                            <div class="leftdiv col-md-4">
                                                                <asp:Label runat="server" ID="RgisterCount" Text="" Font-Size="Small"></asp:Label>

                                                                <asp:Label runat="server" ID="NOtRgisterCount" Text="" Font-Size="Small"></asp:Label>
                                                            </div>
                                                            <div class="col-md-8">
                                                                <uc1:GridViewPager ID="EmployeePasswordGridViewPager" ParentGridView="EmployeePasswordGridView" runat="server"
                                                                    OnFirstRecordClick="EmployeePasswordGridViewPager_FirstRecordClick" OnLastRecordClick="EmployeePasswordGridViewPager_LastRecordClick"
                                                                    OnNextRecordClick="EmployeePasswordGridViewPager_NextRecordClick" OnPrevRecordClick="EmployeePasswordGridViewPager_PrevRecordClick"
                                                                    OnTextBoxValueChange="EmployeePasswordGridViewPager_TextBoxValueChange" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                    visible="False">
                                                </div>
                                                <div class="himsBoxContent">
                                                    <%--<div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" 
                                                        visible="False"></div>  --%>
                                                    <%--    <div id="DivData" class="Container" style="vertical-align: top; height: 450px; width: 99.6%;">  --%>
                                                    <div id="Div14" runat="server" class="table-responsive">
                                                        <asp:GridView ID="EmployeePasswordGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" OnRowDataBound="EmployeePasswordGridView_OnRowDataBound"
                                                            CssClass="table table-striped table-bordered" AllowPaging="true" ShowHeader="true"
                                                            DataKeyNames="Id,EmployeeId,LoginPassword,RoleId" PageSize="100">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Code" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("Code") %>'
                                                                            Width="98%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("Name") %>'
                                                                            Width="98%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="EmailId" ItemStyle-Wrap="true" ItemStyle-Width="2%"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="EmailIdLabel" runat="server" Text='<%# Bind("EmailId") %>' Width="100px"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Mobile No" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="MobileNoLabel" runat="server" Text='<%# Bind("MobileNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="WhatsApp No" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WhatsAppContactNoLabel" runat="server" Text='<%# Bind("WhatsAppContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Role" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RoleLabel" runat="server" Text='<%# Bind("Role") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="User Name" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="UserNameLabel" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--add AutoCompletePasswordTextBox due to autocomplete issue after degin update--%>
                                                                <asp:TemplateField HeaderText="Password" ItemStyle-Width="15%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="PasswordTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("LoginPassword") %>'
                                                                            SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"></asp:TextBox>
                                                                        <%--  <asp:TextBox ID="AutoCompletePasswordTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("LoginPassword") %>'
                                                                            Width="100%" SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"  style="display:inline-block;user-select: none;opacity: 0;border:0.1px solid ;border-radius:1px;padding:1px;width:1px;"></asp:TextBox>--%>
                                                                        <asp:HiddenField ID="PassHiddenField" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                                                    <HeaderTemplate>
                                                                        <div class="input-group-append">
                                                                            <button id="show_password1" class="btn btn-primary" type="button" onclick="return EnableDisablePass(this)" runat="server" style="background-color: #3c8dbc !important;">
                                                                                <span class="fa fa-eye-slash icon" id="AllPass"></span>
                                                                            </button>
                                                                        </div>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="HiddenTextBox" runat="server" ClientIDMode="Static" Style="display: none;"
                                                                            Width="100%" SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"></asp:TextBox>
                                                                        <div class="input-group-append">
                                                                            <button id="show_password" class="btn btn-primary" type="button" onclick="return GetButtonId(this)" runat="server" style="background-color: #3c8dbc !important;">
                                                                                <span class="fa fa-eye-slash icon" id="eyeslash"></span>
                                                                            </button>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Register" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RegisterLabel" runat="server" ClientIDMode="Static" Text=""
                                                                            Width="100%" Style="text-align: center" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 bg-lghtgrey radiobtn">
                                                <div class="controlLabelWidth">
                                                    <asp:RadioButtonList ID="GenerateTypeRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="Generate ID No as User Name" Value="1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="Generate Mobile No as User Name" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="Generate EmailId as User Name" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="Generate Password" Value="4"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>

                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="SetRandomPasswordButton" Text="&#xf023; Set Random Password" CssClass="btn-search btn fas" runat="Server" SkinID="0" OnClick="SetRandomPasswordButton_Click" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="UserNameAsPasswordButton" Text="&#xf023; Set User Name as Password" CssClass="btn-search btn fas" runat="Server"
                                                        SkinID="0" OnClick="UserNameAsPasswordButton_OnClick" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="UpdatePasswordButton" Text="&#xf023; Update Password" CssClass="btn-search btn fas" runat="Server" SkinID="0"
                                                        OnClick="UpdatePasswordButton_OnClick" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="ChangeRoleButton" Text="&#xf007; Change Role" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                        OnClick="ChangeRoleButton_OnClick" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="SendAlertButton" Text="&#xf0e0; Send Alert" runat="Server" SkinID="0"
                                                        CssClass="btn-search btn fas" OnClick="SendAlertButton_OnClick" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="ExportToExcelButton" Text="&#xf15c; Export To Excel" runat="Server" SkinID="0"
                                                        CssClass="btn-search btn fas" OnClick="ExportToExcelButton_OnClick" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="SetGRNoButton" Text="&#xf0c0; Generate ID No as User Name" runat="Server" CssClass="btn-search btn fas"
                                                        SkinID="0" OnClick="SetGRNoButton_OnClick" Visible="false" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="SetMobileNoButton" Text="&#xf0c0; Generate Mobile No as User Name" runat="Server"
                                                        SkinID="0" CssClass="btn-search btn fas" OnClick="SetMobileNoButton_OnClick" Visible="false" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="SetEmailIdButton" Text="&#xf0c0; Generate EmailId as User Name" runat="Server"
                                                        SkinID="0" CssClass="btn-search btn fas" OnClick="SetEmailIdButton_OnClick" Visible="false" />
                                                </div>
                                            </div>
                                            <%--changes for mantis Id:0041067--%>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:Button ID="GeneratePasswordButton" Text="&#xf0c0; Generate Password" runat="Server"
                                                        SkinID="0" CssClass="btn-search btn fas" Visible="false" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="UpdateDetailButton" Text="&#xf044; Update Detail" runat="Server" SkinID="0"
                                                    CssClass="pointer fas" OnClick="UpdateDetailButton_OnClick" Visible="false" />
                                                <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>

            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../../JavaScript/rjs/encrypt/employee-password-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/employee-password")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        document.addEventListener('contextmenu', function (e) {
            e.preventDefault();
        });

        $(document).keydown(function (event) {
            if (event.keyCode == 123) { // Prevent F12
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 67) { // Prevent Ctrl+Shift+C      
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { // Prevent Ctrl+Shift+I        
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 74) { // Prevent Ctrl+Shift+J       
                return false;
            }
            else if (e.ctrlKey && event.keyCode == 85) {  // Prevent Ctrl+ U
                return false;
            }
        });
        function GetButtonId(button) {
            var row = button.parentNode.parentNode.parentNode;
            var rowindex = row.rowIndex - 1;
            var grid = document.getElementById("<%= EmployeePasswordGridView.ClientID%>");
            var txtPassword = $("input[id*=PasswordTextBox]");
            //var txtPassword = $("input[id=PasswordTextBox]");
            var HiddenTextBox = $("input[id*=HiddenTextBox]");
            var show_password = $("input[id*=show_password]");
            var eyeslash = $("span[id*=eyeslash]");
            //var AllPass = $("span[id*=AllPass]");

            if (txtPassword[rowindex].getAttribute('type') == 'password') {
                $(txtPassword[rowindex]).attr('type', 'text');
                $(eyeslash[rowindex]).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                HiddenTextBox[rowindex].value = "text";
            }
            else {
                $(txtPassword[rowindex]).attr('type', 'password');
                $(eyeslash[rowindex]).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
                HiddenTextBox[rowindex].value = "password";
            }

            return false;
        };

        function EnableDisablePass(btn) {

            var AllPass = $("span[id*=AllPass]");
            var cssclass = AllPass.attr('class');
            var grid = document.getElementById("<%= EmployeePasswordGridView.ClientID%>");
            for (var i = 0; i < grid.rows.length - 1; i++) {
                var txtPassword = $("input[id*=PasswordTextBox]");
                //var txtPassword = $("input[id=PasswordTextBox]");
                var HiddenTextBox = $("input[id*=HiddenTextBox]");
                var eyeslash = $("span[id*=eyeslash]");
                //var eyeslash1 = $("span[id*=eyeslash1]");

                if (cssclass == 'fa fa-eye-slash icon') {
                    $(txtPassword[i]).attr('type', 'text');
                    $(eyeslash[i]).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                    HiddenTextBox[i].value = "text";
                }
                else {
                    $(txtPassword[i]).attr('type', 'password');
                    $(eyeslash[i]).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
                    HiddenTextBox[i].value = "password";
                }
            }
            if (cssclass == 'fa fa-eye-slash icon') {
                $(AllPass).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                //$('#ctl00_CP_HideShowPassHiddenField').val() = "";
            }
            else {
                $(AllPass).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
            }

            return false;
        };
    </script>
</asp:Content>
