<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_MailUsers, MachSol.MachPanel.Web" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/MailUserDetail.ascx" TagName="MailUserDetail" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">
        function autoUploadFileMU() {
            $get('<% =btn_uploadContact.ClientID%>').click();
        }
        function clearSavedProfilePic() {
            var clearProfilePicBtnId = '<%= Lbtn_ClearProfilePicContact.ClientID %>';
            if ($('#' + clearProfilePicBtnId).length > 0) {
                //WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(clearProfilePicBtnId, "", true, "", "", false, true))
                __doPostBack(clearProfilePicBtnId, '');
            }
        }

    </script>
</CC:UpdatePanelInlineScriptControl>
<asp:Panel ID="Pnl_MailUsersList" runat="server">
    <%--Search Option--%>
    <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SearchUsers">
        <div class="row">
            <div class="panel-group search-panel" id="AS_Contacts" role="tablist" aria-multiselectable="true">
                <div class="col-xs-12" role="tab" id="SH_Contacts">
                    <div class="card">
                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Contacts" href="#<%= CSB_Contacts.ClientID%>" aria-expanded="true" aria-controls="SH_Contacts">
                            <h3>
                                <%= Resources.Content.GN0000395%>
                            </h3>
                        </div>
                        <div id="CSB_Contacts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Contacts" 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_DisplayName" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:Label ID="Label32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" CssClass="form-label"></asp: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_Email" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:Label ID="Label34" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000491%>" CssClass="form-label"></asp: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_UPName" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String336%>" CssClass="form-label"></asp:Label>
                                        </div>
                                    </div>
                                </div>

                                <%--<div class="col-md-3 col-sm-6 col-xs-12" id="Tr_IsMailContact" runat="server">
                                    <div class="form-group">
                                        <asp:CheckBox ID="Cb_IsMailContact" runat="server" Text="<%$ Resources:Content,String528%>" />
                                    </div>
                                </div>--%>

                                <div class="col-xs-12">
                                    <div class="form-group">
                                        <asp:Button ID="Btn_SearchUsers" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                        <asp:Button ID="Btn_ClearUsers" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <%--Operations--%>
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001320%>" />
                    </h3>
                </div>
                <div class="body">
                    <asp:Button ID="Btn_AddMailUser" runat="server" Text="<%$ Resources:Content,AddMailUser%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_AddBulkMailUser" runat="server" Text="<%$ Resources:Content,AddBulkMailUser %>" CssClass="btn btn-primary waves-effect btnAction" />
                    <%--<asp:Button ID="Btn_SyncMailUser" runat="server" Text="<%$ Resources:Content,SyncMailUser%>" CssClass="btn btn-primary waves-effect" />--%>

                    <asp:Button ID="Btn_DisableAll" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN00001025%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_EnableAll" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN00001024%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_RemoveAll" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000377%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <EM:ConfirmButtonExtender ID="CBE_Btn_RemoveAllContacts" runat="server" TargetControlID="Btn_RemoveAll" ConfirmText="<%$ Resources:Content,String1040%>" />

                    <asp:Button ID="Btn_RemoveAndDeleteAll" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <EM:ConfirmButtonExtender ID="CBE_Btn_RemoveAndDeleteAll" runat="server" TargetControlID="Btn_RemoveAndDeleteAll" ConfirmText="<%$ Resources:Content,String1040%>" />
                </div>
            </div>
        </div>
    </div>

    <%--Listing--%>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CurrentSortExpression="DateCreated" CurrentSortDirection="Asc" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>" DataKeyNames="MailUserId, DisplayName, Status, UPName, ExternalEmailAddress, ADUserId" ID="GV_MailUsers" AllowSorting="true" AllowPaging="true" runat="server" AutoGenerateColumns="false">

                <Columns>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000370 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <HeaderTemplate>
                            <asp:CheckBox runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
                                Text=" " CssClass="option-menu" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox Text=" " ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" CssClass="option-menu" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,strUser%>">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_User" CommandName="Show_User_Detail" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,ExternalEmailAddress%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                        <ItemTemplate>
                            <asp:Label ID="LB_ExternalEmailAddress" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="LB_Status" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-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">
                                        <li>
                                            <asp:LinkButton ID="LB_Enable" CssClass="btnAction" Text="<%$ Resources:Content, strEnable%>" runat="server" CommandName="EnableUser"></asp:LinkButton>
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="LB_Disable" CssClass="btnAction" Text="<%$ Resources:Content, strDisable%>" runat="server" CommandName="DisableUser"></asp:LinkButton>
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="LB_Remove" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,Remove%>" CommandName="RemoveUser"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                TargetControlID="LB_Remove" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="LB_RemoveAndDeleteADUser" Text="<%$ Resources:Content, RemoveAndDeleteADUserText%>" runat="server" CommandName="RemoveAndDelete" CssClass="btnAction"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_RemoveAndDelete" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                TargetControlID="LB_RemoveAndDeleteADUser" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>


<asp:Panel ID="Pnl_AddMailUser" runat="server" Visible="false" DefaultButton="Btn_MUSave">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <div class="displayInlineBlock">
                        <h2>
                            <asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,AddMailUser%>" /></h2>
                    </div>
                    <asp:LinkButton ID="lb_MUGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                        CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
                </div>
                <div class="body">
                    <div class="row" id="Tr_AdUsers" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal1_ADUsers" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1102%>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_ADUsers" runat="server" AutoPostBack="true">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,DisplayName%>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MUDisplayName" runat="server" onChange="CopyToDisplayName()"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_MUDisplayName"
                                        Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal33" runat="server" Text="<%$ Resources:Content,ExternalEmailAddress%>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MUExternalEmailAddress" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_MUExternalEmailAddress"
                                        Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                   <%-- <asp:RegularExpressionValidator ID="Regx_EmailAddress" runat="server" ControlToValidate="TxBx_MUExternalEmailAddress"
                                        Display="None" SetFocusOnError="true" ValidationGroup="MailUser" ErrorMessage='<%$ Resources:Content,SMI00847%>' ValidationExpression="<%$Resources:MPRegex,EmailAddress %>">
                                    </asp:RegularExpressionValidator>--%>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="row" id="Div_SetAsPrimary" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,SetPrimaryEmail%>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="CB_SetAsPrimary" runat="server" Text=" " />
                        </div>

                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:Content,DGN1110527%>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox Text=" " ID="CB_MCHideFromOtherALs" runat="server" />
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal103" runat="server" Text="<%$ Resources:Content,DGN1110410%>" EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_MBManager" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div id="div_AddNew" runat="server">
                        <%--<div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,Name%>"></asp:Literal>:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_MUName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="Rfv_MUName" runat="server" ControlToValidate="TxBx_MUName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>--%>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,AD0000102%>"></asp:Literal>:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_MULogonName" runat="server" />
                                        <asp:RequiredFieldValidator ID="Rfv_UserLogonName" runat="server" ControlToValidate="TxBx_MULogonName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                        <%--<asp:RegularExpressionValidator Display="None" ID="Rev_UserLogonName" runat="server" ControlToValidate="TxBx_MULogonName"
                                            ErrorMessage="<%$Resources:Content,InvalidLogonName %>" SetFocusOnError="true" ValidationGroup="MailUser"
                                            ValidationExpression="<%$Resources:MPRegex,Alias %>"></asp:RegularExpressionValidator>--%>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group at-the-rate">
                                    @<asp:DropDownList ID="DDL_MUDomains" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label p-t-10">
                                *<asp:Literal ID="Ltrl_Password" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000569%>' />:
                            </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:RequiredFieldValidator ID="Rfv_Password" runat="server" ControlToValidate="TxBx_Password"
                                            Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <br />
                                <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <div class="form-group">
                                    <asp:LinkButton ID="lb_Generate" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SMI0195%>" TabIndex="-1"></asp:LinkButton>
                                </div>
                                <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *<asp:Literal ID="Ltrl_ConfirmPassword" runat="server" EnableViewState="false" 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_ConfirmPassword" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="Rfv_ConfirmPassword" runat="server" ControlToValidate="TxBx_ConfirmPassword"
                                            Display="None" SetFocusOnError="True" ValidationGroup="MailUser"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CV_ConfirmPassword" runat="server" SetFocusOnError="true"
                                            ErrorMessage="Password do not match." ValidationGroup="MailUser" ControlToCompare="TxBx_Password"
                                            ControlToValidate="TxBx_ConfirmPassword" Display="None"></asp:CompareValidator>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div id="Div_PasswordSettings" runat="server">
                            <%-- Password Change Options --%>
                            <div class="panel-group" id="AS_PasswordOptions" role="tablist" aria-multiselectable="true">
                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id="HS_PasswordOptions">
                                        <h2 class="panel-title">
                                            <a role="button" id="A_PasswordOptions" data-toggle="collapse" data-parent="#AS_PasswordOptions" href="#CSB_PasswordOptions" aria-expanded="false" aria-controls="CSB_PasswordOptions" class="collapsed">
                                                <%= Resources.Content.PasswordSettings%>
                                            </a>
                                        </h2>
                                    </div>
                                    <div id="CSB_PasswordOptions" class="panel-collapse collapse" role="tabpanel" aria-labelledby="HS_PasswordOptions" aria-expanded="true" style="height: 0px;">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000360%>"></asp:Literal>:
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="CB_MustChange" Text="<%$ Resources:Content,UserMustChangePassword%>" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="CB_CantChange" Text="<%$ Resources:Content,UserCantChangePassword%>" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="CB_NeverExpires" Text="<%$ Resources:Content,PasswordNeverExpires%>" Checked="true" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>



                    <div id="Tr_OptionalFields" runat="server">
                        <div class="panel-group" id="AS_OptionalFields" role="tablist" aria-multiselectable="true">
                            <div class="panel panel-primary">
                                <div class="panel-heading" role="tab" id="heading_OptionalFields">
                                    <h2 class="panel-title">
                                        <a role="button" id="A_OptionalFields" data-toggle="collapse" data-parent="#AS_OptionalFields" href="#CSB_OptionalFields"
                                            aria-expanded="true" aria-controls="CSB_OptionalFields" class="collapsed">
                                            <%= Resources.Content.DGN1110535%>
                                        </a>
                                    </h2>
                                </div>
                                <div id="CSB_OptionalFields" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_OptionalFields"
                                    aria-expanded="false" style="height: 0px;">
                                    <div class="panel-body">
                                        <%--  Contact Information--%>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,DGN1110336 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCInitials" runat="server" MaxLength="6"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal145" runat="server" Text='<%$ Resources:Content,GN00001132 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCGivenName" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal146" runat="server" Text='<%$ Resources:Content,DGN1110529 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCMiddleName" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal147" runat="server" Text='<%$ Resources:Content,GN00001133 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCLastName" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal157" runat="server" Text='<%$ Resources:Content,DGN1110530 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox runat="server" ID="TxBx_MCAddress" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal158" runat="server" Text='<%$ Resources:Content,GN0000880 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox runat="server" ID="TxBx_MCCity"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal159" runat="server" Text='<%$ Resources:Content,GN00001313 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCState" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal160" runat="server" Text='<%$ Resources:Content,GN00001522 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCZip" runat="server"></asp:TextBox>
                                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxBx_MCZip"
                                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-_ ">
                                                        </EM:FilteredTextBoxExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal162" runat="server" Text='<%$ Resources:Content,GN0000882 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_MCCountries" runat="server">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal163" runat="server" Text='<%$ Resources:Content,GN00001524 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCMobile" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                            ID="RegularExpressionValidator6" runat="server" ControlToValidate="TxBx_MCMobile"
                                                            Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                            ValidationGroup="order"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal164" runat="server" Text='<%$ Resources:Content,GN0000886 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCFax" runat="server"></asp:TextBox>
                                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_MCFax"
                                                            FilterType="Numbers,Custom" ValidChars="+-() ">
                                                        </EM:FilteredTextBoxExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,DGN1110538%>"
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCHomePhone" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                            ID="RegularExpressionValidator9" runat="server" ControlToValidate="TxBx_MCHomePhone"
                                                            Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                            ValidationGroup="order"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal167" runat="server" Text='<%$ Resources:Content,DGN1110383 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCPager" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal168" runat="server" Text='<%$ Resources:Content,GN0001120 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCWebPage" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ID="REV_WebPage" runat="server" ValidationGroup="order"
                                                            ControlToValidate="TxBx_MCWebPage" Display="None" ValidationExpression="(?<http>(http:[/][/]|www.)([a-z]|[A-Z]|[0-9]|[/.]|[~])*)"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                        <br />
                                        <%--Organization--%>
                                        <div class="header">
                                            <h3>
                                                <asp:Literal ID="Literal170" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>" />
                                            </h3>
                                        </div>
                                        <br />

                                        <div class="row">

                                            <asp:UpdatePanel ID="UP_MailUserImage" runat="server" ChildrenAsTriggers="true">
                                                <ContentTemplate>

                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            <asp:Literal ID="Literal45" runat="server" Text="<%$Resources:Content,USM0144 %>"></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                                <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                                    <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                                    <asp:FileUpload ID="Img_UploadContact" runat="server" onchange="autoUploadFileMU()" />
                                                                </span>
                                                                <span class="fileupload-preview"></span>
                                                                <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-1 col-xs-12">
                                                        <asp:Button ID="btn_uploadContact" runat="server" Style="display: none;" CausesValidation="false" CssClass="btn btn-primary waves-effect" />
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:Image ID="Image_profilepic" runat="server" Width="96" Height="96" src="../../../ImageDisplayHandler.ashx"
                                                            Visible="false" />
                                                        &nbsp;&nbsp;<asp:LinkButton ID="Lbtn_ClearProfilePicContact" runat="server" Text="<%$Resources:Content,String289 %>" Visible="false"></asp:LinkButton>
                                                    </div>

                                                </ContentTemplate>
                                                <Triggers>
                                                    <ajax:PostBackTrigger ControlID="btn_uploadContact" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal172" runat="server" Text='<%$ Resources:Content,DGN1110358 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCJobTitle" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal173" runat="server" Text='<%$ Resources:Content,GN00001134 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCCompany" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal174" runat="server" Text='<%$ Resources:Content,GN0000374 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCDepartment" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal175" runat="server" Text='<%$ Resources:Content,DGN1110359 %>'
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MCOffice" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

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


                    <div class="panel-group" id="AS_AddDLMS" role="tablist" aria-multiselectable="true">
                        <div class="panel panel-primary">
                            <div class="panel-heading" role="tab" id="SH_AddDLMS">
                                <h2 class="panel-title">
                                    <a role="button" data-toggle="collapse" data-parent="#AS_AddDLMS" href="#CSB_AddDLMS" aria-expanded="true" aria-controls="CSB_AddDLMS" class="collapsed">
                                        <%= Resources.Content.EX0010%>
                                    </a>
                                </h2>
                            </div>
                            <div id="CSB_AddDLMS" class="panel-collapse collapse" role="tabpanel" aria-labelledby="SH_AddDLMS" aria-expanded="false" style="height: 0px;">
                                <div class="panel-body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <EM:AddSelectableSelected ID="UCDlist" runat="server" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_MUSave" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save%>"
                                ValidationGroup="MailUser" />
                            <asp:Button ID="Btn_MUCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />

                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="MailUser" />
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</asp:Panel>

<asp:UpdatePanel ID="UP_AddBulkMU" runat="server" ChildrenAsTriggers="true">
    <ContentTemplate>
        <asp:Panel ID="Pnl_AddBulkMailUsers" runat="server" Visible="false" DefaultButton="Btn_AddBulkConfirm">
            <div class="card">
                <div class="header">
                    <div class="displayInlineBlock">
                        <h2>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,AddBulkMailUser %>" /></h2>
                    </div>
                    <asp:LinkButton ID="Lb_BulkGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                        CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Ltrl_SelectFile" runat="server" Text="<%$Resources:Content,String380 %>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-10 col-xs-12">
                            <div class="form-group">
                                <div class="fileupload fileupload-new" data-provides="fileupload">
                                    <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                        <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                        <asp:FileUpload ID="FU_BulkContacts" runat="server" />
                                    </span>
                                    <span class="fileupload-preview"></span>
                                    <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FU_BulkContacts"
                                        Display="None" SetFocusOnError="True" ValidationGroup="AddContact"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div>
                                <asp:Literal ID="Ltl_DownLoadCSV" runat="server"></asp:Literal>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_AddBulkConfirm" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save %>"
                                ValidationGroup="AddContact" />
                            <asp:Button ID="Btn_AddBulkCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>


        <asp:Panel ID="Pnl_BulkMailUserLog" runat="server" Visible="false">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal ID="Literal88" runat="server" EnableViewState="false" Text="<%$ Resources:Content,BulkMailUsersLog%>" />
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-xs-12" id="Div_Result" runat="server">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_BulkMailUserLogClose" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                                Text="<%$ Resources:Content,GN000150%>" />
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>

    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="Btn_AddBulkConfirm" />
    </Triggers>
</asp:UpdatePanel>

<asp:Panel CssClass="row" ID="Pnl_MailUserDetail" runat="server" Visible="false">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Literal71" runat="server" EnableViewState="false" Text="<%$ Resources:Content,MUSettingsFor%>" />
                        <asp:Label ID="lbl_MailUserName" runat="server" /></h2>
                </div>
                <asp:LinkButton ID="lbl_MailUserGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <EM:MailUserDetail ID="MailUserDetail1" runat="server" />
            </div>
        </div>
    </div>
</asp:Panel>
