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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <ajax:UpdatePanel ID="UP_Accounts" runat="server" UpdateMode="Conditional" RenderMode="Inline">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.DGN1110502%>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body">
                        <asp:Panel ID="Pnl_AddStaffMember" runat="server" DefaultButton="Btn_Add">
                            <div class="row">
                                <div class="col-xs-8">
                                    <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 Display="None" ID="RequiredFieldValidator8" runat="server"
                                                                ControlToValidate="TxBx_Login" SetFocusOnError="True" ValidationGroup="EditStaffDetail"></asp:RequiredFieldValidator>
                                                            <%--<asp:RegularExpressionValidator Display="None" ValidationGroup="EditStaffDetail"
                                                                ID="RE_Login" ControlToValidate="TxBx_Login" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                runat="server" ErrorMessage="Login must be an email address."></asp:RegularExpressionValidator>--%>
                                                        </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-5 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:RequiredFieldValidator ID="RFV_Pass" SetFocusOnError="True" runat="server" Display="None"
                                                                ValidationGroup="EditStaffDetail" ControlToValidate="TxBx_Password"></asp:RequiredFieldValidator>
                                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TxBx_Password"
                                                                ValidationGroup="EditStaffDetail" ControlToCompare="TxBx_Password2" Display="None"
                                                                ErrorMessage="<%$ Resources:Content,DGN1110005%>"></asp:CompareValidator>
                                                        </div>
                                                    </div>
                                                    <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>

                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:LinkButton ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                                            CausesValidation="false" CssClass="btn btn-primary"></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-5 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="RequiredFieldValidator10" SetFocusOnError="True"
                                                                runat="server" Display="None" ValidationGroup="EditStaffDetail" ControlToValidate="TxBx_Password2"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                                                    </div>
                                                </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" />:</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>
                                    </div>
                                    <br />
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <%= Resources.Content.GN00001515%>                                                                                                                                 
                                            </h3>
                                        </div>
                                        <div class="body">
                                            <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="RequiredFieldValidator1" 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="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_LName"
                                                                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="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" />
                                                    </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-sm-2 col-xs-12">
                                                    (<div class="form-group display-countryCode-input">
                                                        <div class="form-line">
                                                            <asp:TextBox MaxLength="4" ID="TxBx_CountryCode" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    )
                                                </div>
                                                <div class="col-sm-6 col-xs-12 p-l-0">
                                                    <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" />

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <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">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_Notes" TextMode="MultiLine" runat="server" MaxLength="500"
                                                                Rows="5" CssClass="col-xs-12"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <br />
                                    <div class="row" style="display: none;">
                                        <div class="col-sm-4 col-xs-12 row-label">

                                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,String488 %>" />:
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="ChBx_Enforce" runat="server" Checked="true" />
                                            </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%>" CssClass="btn btn-primary" />
                                            <asp:Button ID="Btn_Add" ValidationGroup="EditStaffDetail" CausesValidation="true"
                                                SkinID="saveButton" runat="server" Text="<%$ Resources:Content,DGN1110502%>" CssClass="btn btn-primary btnAction" />
                                            <asp:Button ID="Btn_Cancel" CausesValidation="false" SkinID="cancelButton" runat="server" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />

                                        </div>
                                    </div>
                                </div>
                                <div class="col-xs-4">
                                    <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>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender4.ClientID%>');
    </script>
</asp:Content>
