<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Admin_System_Staff, MachSol.MachPanel.Web" %>

<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="UC" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script type='text/javascript'>
        function lengthMinLimit(TB, length) {
            var TxBx_MinLength = document.getElementById(TB);
            if (TxBx_MinLength.value < length)
                TxBx_MinLength.value = length;
        }
        function lengthMinExpiry(TB) {
            var TxBx_MinExpiry = document.getElementById(TB);
            if (TxBx_MinExpiry.value < 1)
                TxBx_MinExpiry.value = 20;
        }
    </script>
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TC_Accounts" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_List" runat="server" HeaderText='<%$ Resources:Content, DGN1110501 %>'>
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <%--Start Search box--%>
                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_Staff" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Staff">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Staff" href="#<%= CSB_Staff.ClientID%>" aria-expanded="true" aria-controls="SH_Staff">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Staff" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Staff" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Name" runat="server" />
                                                                        <asp:Label ID="Literal12" runat="server" Text="<%$ Resources:Content,GN000170%>" EnableViewState="false" CssClass="form-label" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_LoginEmail" runat="server" />
                                                                        <asp:Label ID="Literal13" runat="server" Text="<%$ Resources:Content,GN00001517%>"
                                                                            EnableViewState="false" CssClass="form-label" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_Status" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content,MultiSelect_SelectAll%>" Value="-1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000222%>" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000860%>" Value="0"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary" ID="Btn_Filter" SkinID="filterButton" runat="server" Text='<%$ Resources:Content,GN0000395 %>' CausesValidation="false" />
                                                                <asp:Button CssClass="btn btn-primary" ID="Btn_clear" SkinID="filterButton" runat="server" Text='<%$ Resources:Content,String289 %>' Visible="false" CausesValidation="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <%--End search box--%>
                                <div class="row Div_OpsRow" id="tblOperations" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.GN00001320%>  </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button CssClass="btn btn-primary btnAction" class="btn btn-primary waves-effect" ID="LB_AddEmployee" runat="server"
                                                    PostBackUrl="AddStaffMember.aspx" Text="<%$ Resources:Content,DGN1110502%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_List" AllowSorting="true" AllowPaging="True" runat="server" AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content,String385%>">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_Status" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="FirstName" HeaderText="<%$ Resources:Content,GN000170%>"
                                            HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Name" runat="server" CommandName="Id" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmployeeId")%>'></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="Email" HeaderText="<%$ Resources:Content,GN0000652%>"
                                            HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Email" runat="server" CommandName="Id" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmployeeId")%>'></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="<%$ Resources:Content,DGN1110499%>" HeaderStyle-CssClass="col-xs-2" DataField="RoleName" />
                                        <asp:TemplateField SortExpression="Email" HeaderText="<%$ Resources:Content,GN0000585%>"
                                            HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_LastLogin" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="LastLoginIP" HeaderText="<%$ Resources:Content,GN0000586%>"
                                            HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_LastLoginIP" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <ul class="option-menu">
                                                    <li class="dropdown">
                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                            <i class="material-icons">menu</i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                            <li>
                                                                <asp:LinkButton ID="LB_LoginToCP" CommandName="LoginToCP" CssClass="btnAction"
                                                                    runat="server" Text='<%$ Resources:Content,GN0001248%>' Visible="false" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Edit" runat="server" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmployeeId")%>'
                                                                    CommandName="Id" Text="<%$ Resources:Content,GN0000276%>" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_EnableDisable" CssClass="btnAction" CommandName="EnableDisable"
                                                                    runat="server" Text='<%$ Resources:Content,GN00001025%>' /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Delete" CssClass="btnAction" CommandName="StaffDelete"
                                                                    runat="server" Text='<%$ Resources:Content,GN0000377%>' />
                                                                <%--<EM:ConfirmButtonExtender TargetControlID="LB_Delete" ID="CBE_Delete" runat="server" ConfirmText="<%$Resources:Content,ConfirmAction%>">
                                                                </EM:ConfirmButtonExtender>--%>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                                <asp:Panel ID="Pnl_DeleteStaffReason" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                                    <UC:GetComments ID="GetComments" runat="server" />
                                </asp:Panel>
                                <asp:Button ID="Btn_DeleteStaffReason" Style="display: none" runat="server" />
                                <EM:ModalPopupExtender runat="server" ID="MPE_GetDeleteReason" BackgroundCssClass="modalBackground"
                                    DropShadow="false" PopupControlID="Pnl_DeleteStaffReason" TargetControlID="Btn_DeleteStaffReason">
                                </EM:ModalPopupExtender>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Detail" runat="server" HeaderText='<%$ Resources:Content, GN0000843 %>'
                        Enabled="false">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false" DefaultButton="Btn_Update">
                                <div class="row">
                                    <div class="col-xs-8">
                                        <div class="row" id="Div_AccountAccess" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.DGN1110285%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                        <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,GN00001517%>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Login" runat="server" MaxLength="60"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_Login"
                                                                            Display="None" SetFocusOnError="True" ValidationGroup="EditStaffDetail"></asp:RequiredFieldValidator>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,GN00001518%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Password" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                                                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TxBx_Password2"
                                                                            ControlToCompare="TxBx_Password" Display="None" ValidationGroup="EditStaffDetail"
                                                                            ErrorMessage="<%$ Resources:Content,DGN1110005%>"></asp:CompareValidator>
                                                                    </div>
                                                                </div>
                                                                <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:LinkButton CssClass="btn btn-primary" ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                                                        CausesValidation="false"></asp:LinkButton>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal65" runat="server" Text="<%$ Resources:Content,GN0001196%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Password2" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                                                                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Password2"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="EditStaffDetail"></asp:RequiredFieldValidator>--%>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <label>
                                                                    <asp:Literal ID="Literal100" runat="server" Text="<%$ Resources:Content,strAuthViaADAccount%>"
                                                                        EnableViewState="false" />&nbsp;
                                                                    (<asp:Literal ID="Literal101" runat="server" Text='<%$ Resources:Content,String336 %>'></asp:Literal>)
                                                                    :</label>

                                                            </div>
                                                            <div class="col-sm-5 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <%--<asp:DropDownList ID="Ddl_LinkedADAccount" runat="server"></asp:DropDownList>--%>
                                                                        <asp:TextBox ID="TxBx_LinkedADAccount" runat="server" CausesValidation="true" ValidationGroup="EditStaffDetail"></asp:TextBox>
                                                                    </div>
                                                                    <%--<asp:RegularExpressionValidator ID="REV_UPN" runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                        ErrorMessage='<%$Resources:Content, InvalidUPN%>' ControlToValidate="TxBx_LinkedADAccount"
                                                                        Display="None" SetFocusOnError="true" ValidationGroup="EditStaffDetail"></asp:RegularExpressionValidator>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_Chbx_Enabled2FA" runat="server" visible="false">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal106" runat="server" Text="<%$ Resources:Content,TwoFAEnabled %>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <asp:CheckBox ID="Chbx_Enabled2FA" runat="server" Text=" "></asp:CheckBox>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-10 row-label">
                                                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110500%>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-2">
                                                                <div class="form-group">
                                                                    <asp:CheckBox Text=" " ID="CB_StilEmployee" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_OpenLDAPId" runat="server" visible="false">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal156" runat="server" Text="OpenLDAP Id"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_OpenLDAPId" MaxLength="255" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001515%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Panel ID="Pnl_PC" runat="server">

                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    *
                                                        <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,GN00001132%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_FName" runat="server" MaxLength="60"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_FirstName" runat="server" ControlToValidate="TxBx_FName"
                                                                                Display="None" SetFocusOnError="True" ValidationGroup="EditStaffDetail"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    *
                                                        <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:Content,GN00001133%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_LName" runat="server" MaxLength="60"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_LastName" runat="server" ControlToValidate="TxBx_LName"
                                                                                Display="None" SetFocusOnError="True" ValidationGroup="EditStaffDetail"></asp:RequiredFieldValidator>
                                                                            <asp:HiddenField ID="HF_NickName" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000657%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Designation" runat="server" MaxLength="60"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal45" runat="server" Text="<%$ Resources:Content,GN0000878%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Address" runat="server" MaxLength="60"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001136%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Address2" runat="server" MaxLength="60"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal47" runat="server" Text="<%$ Resources:Content,GN0000880%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_City" runat="server" MaxLength="60"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="TR_State" runat="server">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal48" runat="server" Text="<%$ Resources:Content,DEV1130%>" />
                                                                    :
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDL_State" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="TR_Province" runat="server">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:Content,GN00001313%>" />
                                                                    :
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Province" runat="server" MaxLength="60"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:Content,GN00001522%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Zip" runat="server" MaxLength="10"></asp:TextBox>
                                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_Zip"
                                                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="- ">
                                                                            </EM:FilteredTextBoxExtender>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal51" runat="server" Text="<%$ Resources:Content,GN0000882%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDL_Country" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Country_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:Content,GN00012%>" />:
                                                                </div>
                                                                <div class="col-xs-6 col-sm-2">
                                                                    <div class="row">
                                                                        <div style="width: 0px; float: left; margin-top: 5px; padding-left: 15px;">
                                                                            <label>(</label>
                                                                        </div>
                                                                        <div class="col-xs-10">
                                                                            <div class="form-group">
                                                                                <div class="form-line">
                                                                                    <asp:TextBox MaxLength="4" ID="TxBx_CountryCode" runat="server"></asp:TextBox>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div style="width: 0px; margin-top: 5px; padding-right: 15px;">
                                                                            <label>)</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-5 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox MaxLength="20" ID="TxBx_Phone" runat="server"></asp:TextBox>
                                                                            <asp:RegularExpressionValidator ControlToValidate="TxBx_CountryCode" ValidationExpression="^([+]?([0-9]{1,3}))$"
                                                                                ID="RegularExpressionValidator3" runat="server" ErrorMessage="<%$ Resources:Content,DGN1110069%>"
                                                                                Display="none" ValidationGroup="EditStaffDetail" SetFocusOnError='true'></asp:RegularExpressionValidator>

                                                                            <asp:RegularExpressionValidator ControlToValidate="TxBx_Phone" ValidationExpression="^[\s0-9()-]{5,20}$"
                                                                                ID="RegularExpressionValidator5" runat="server" ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                                                Display="none" ValidationGroup="EditStaffDetail"></asp:RegularExpressionValidator>
                                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers,Custom"
                                                                                TargetControlID="TxBx_Phone" ValidChars="+ - ( ) \s">
                                                                            </EM:FilteredTextBoxExtender>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,GN00001524%>" />:
                                                                </div>
                                                                <div class="col-sm-8 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Mobile" runat="server" MaxLength="15"></asp:TextBox>
                                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                                                                TargetControlID="TxBx_Mobile">
                                                                            </EM:FilteredTextBoxExtender>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,SMI725%>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:TextBox ID="TxBx_Signature" TextMode="MultiLine" runat="server" MaxLength="500"
                                                                        CssClass="col-xs-12" Rows="5"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN00001336%>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:TextBox ID="TxBx_Notes" TextMode="MultiLine" runat="server" MaxLength="500"
                                                                        CssClass="col-xs-12" Rows="5"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" style="display: none;">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.String483%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row" style="display: none;">
                                                            <div class="col-sm-4 col-xs-10 row-label">
                                                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,String488 %>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-2">
                                                                <div class="form-group">
                                                                    <asp:CheckBox Text=" " ID="ChBx_Enforce" runat="server" Checked="true" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <%--subscribe to mailing list will shown to reseller employees only--%>
                                        <div class="row" id="Div_SubscribeToMailingList" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Literal143" runat="server" Text="<%$ Resources:Content,String610%>"
                                                                EnableViewState="false" />
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12 row-label">
                                                                <asp:Repeater ID="Rep_ResellersMailChimpList" runat="server">
                                                                    <ItemTemplate>
                                                                        <div style="margin-bottom: 4px;">
                                                                            <asp:HiddenField ID="HF_ListId" runat="server" />
                                                                            &nbsp;&nbsp;<asp:CheckBox ID="CB_ListOption" runat="server" />
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:Repeater>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                    ValidationGroup="EditStaffDetail" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Update" ValidationGroup="EditStaffDetail" CausesValidation="true"
                                                    runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                            </div>
                                        </div>
                                    </div>
                                    <asp:Panel ID="Pnl_Roles" runat="server">
                                        <div class="col-xs-4" id="Div_Roles" runat="server">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.SMI726%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:RadioButtonList ID="CBL_Roles" runat="server" />

                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Configuration" runat="server" HeaderText='<%$ Resources:Content, PasswordConfiguration %>'>
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-5 col-xs-10 row-label">
                                                        <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,String485 %>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:CheckBox Text=" " ID="ChBx_Alphabets" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-5 col-xs-10 row-label">
                                                        <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,String486 %>" />
                                                        :
                                                    </div>
                                                    <div class="col-sm-4 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:CheckBox Text=" " ID="ChBx_Numeric" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-5 col-xs-10 row-label">
                                                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,String487 %>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:CheckBox Text=" " ID="ChBx_Special" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-5 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Ltl_Length" runat="server" Text="<%$ Resources:Content,GN0000995 %>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_MinLength" runat="server" MaxLength="2" Text="8" />
                                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_TxBx_MinLength" ErrorMessage="<%$ Resources:Content,EM000001 %>"
                                                                    ControlToValidate="TxBx_MinLength" Display="None" ValidationGroup="PPolicy" Enabled="false">
                                                                </asp:RequiredFieldValidator>
                                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_MinLength"
                                                                    FilterType="Numbers,Custom" ValidChars="0123456789">
                                                                </EM:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <label>
                                                            <asp:Literal ID="Ltl_PasswordLengthWarning" runat="server" Text="<%$ Resources:Content,String519 %>" /></label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-5 col-xs-10 row-label">
                                                        <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,EnableExpiry %>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:CheckBox Text=" " ID="ChBx_EnableExpiry" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="Div_EnableExpiry" runat="server" style="display: none;">
                                                    <div class="row">
                                                        <div class="col-sm-5 col-xs-12 row-label">
                                                            *&nbsp;<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,ExpiresIn %>" />:
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_ExpireDays" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <label>
                                                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0000911 %>" /></label>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12 row-label">
                                                            <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,ExcludeUsers%>" EnableViewState="false" />:
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <EM:AddSelectableSelected ID="UCUsers" runat="server" ClientSideOptimized="true" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row" id="DivUpdateReseller" runat="server">
                                                    <div class="col-sm-5 col-xs-10 row-label">
                                                        <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,strUpdateAllReseller %>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:CheckBox Text=" " ID="ChBx_UpdateAllResller" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                            ValidationGroup="PPolicy" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveConfig" ValidationGroup="PPolicy" CausesValidation="true"
                                                            SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_ActiveDirectory" runat="server" HeaderText="<%$ Resources:Content, M0104 %>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,SelectADDomain %>" />:
                                                    </div>
                                                    <div class="col-sm-5 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_ADDomains" runat="server" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,StaffUsersOULDAP %>" />:
                                                    </div>
                                                    <div class="col-sm-5 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_StaffUsersOULDAP" Text="<%$ Resources:Content,L0092 %>" runat="server" />
                                                                <asp:RegularExpressionValidator Enabled="false" ID="REV_UsersLDAP" runat="server" Display="None" ControlToValidate="TxBx_StaffUsersOULDAP"
                                                                    SetFocusOnError="true" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                                                    ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,StaffSecurityGroupsOULDAP %>" />:
                                                    </div>
                                                    <div class="col-sm-5 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_StaffSecurityGroupsOULDAP" Text="<%$ Resources:Content,L0092 %>" runat="server" />
                                                                <asp:RegularExpressionValidator Enabled="false" ID="REV_SecurityGroupsLDAP" runat="server" Display="None" ControlToValidate="TxBx_StaffSecurityGroupsOULDAP"
                                                                    SetFocusOnError="true" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                                                    ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveActiveDirectory" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender4.ClientID%>');
    </script>
</asp:Content>
