<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_Contacts, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/MailContactDetail.ascx" TagName="MailContactDetail" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/BulkMailContact.ascx" TagName="BulkMailContact" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AccountGroupActions.ascx" TagName="AccountGroupActions" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl2" runat="server">
    <script type="text/javascript" language="javascript">

        function autoUploadFileMc() {
            $get('<% =btn_upload.ClientID%>').click();
        }
    </script>
</CC:UpdatePanelInlineScriptControl>
<asp:Panel ID="Pnl_ContactsList" runat="server">
    <%--Search Option--%>
    <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SearchContacts">
        <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_SIPAddress" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:Label ID="Label35" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync133%>" 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_PhoneNumber" runat="server" MaxLength="50"></asp:TextBox>
                                            <asp:Label ID="Label36" runat="server" EnableViewState="false" Text="<%$ Resources:Content,OCS003%>" 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_SearchContacts" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                        <asp:Button ID="Btn_ClearSearchContacts" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <%--Add Button--%>
    <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_AddContact" runat="server" Text="<%$ Resources:Content,String1001%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_AddMailContact" runat="server" Text="<%$ Resources:Content,DGN1110540%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_AddBulkContacts" runat="server" Text="<%$ Resources:Content,AddBulkContacts %>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_AddBulkMailContacts" runat="server" Text="<%$ Resources:Content,E0090%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_DisableAllContacts" runat="server" Custom1="Custom" Style="display: none"
                        Text="<%$ Resources:Content,GN00001025%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_EnableAllContacts" runat="server" Custom1="Custom" Style="display: none"
                        Text="<%$ Resources:Content,GN00001024%>" CssClass="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_RemoveAllContacts" 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_RemoveAllContacts" />
                    <asp:Button ID="Btn_ExportToExcel" runat="server"
                        Text="<%$ Resources:Content,Ex001%>" CssClass="btn btn-primary waves-effect" />
                </div>
            </div>
        </div>
    </div>

    <%--Listing--%>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CurrentSortExpression="MailContactDisplayName" CurrentSortDirection="Asc" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_Contacts" 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,GN00001113%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_ContactDisplayName" CommandName="Show_Contact_Detail" runat="server"></asp:LinkButton>
                            <asp:HiddenField ID="Hf_IsMailContact" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "IsMailContact")%>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110532%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="LB_Email" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,Ex00123%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_PrimarySMTPEmail" runat="server" Text=" "></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:BoundField DataField="SIPAddress" HeaderText="<%$ Resources:Content,Lync133%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" />
                    <asp:BoundField DataField="PhoneNumber" HeaderText="<%$ Resources:Content,OCS003%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" />
                    <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Status" CommandName="Status" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_EnableMailContact" Text="<%$ Resources:Content, EnableMailContact%>" Visible="false" runat="server" CommandName="Enable_Mail_Contact" CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                            <asp:LinkButton ID="LB_Disable" runat="server" CommandName="Disable_Contact" CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>" CommandName="Delete_Contact" CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                TargetControlID="LB_Delete" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>

<%--Add Mail Contact--%>
<asp:Panel CssClass="row" ID="Pnl_AddContact" runat="server" Visible="false">
    <asp:Panel CssClass="col-xs-12" ID="Pnl_MCAddConfirm" runat="server" DefaultButton="Btn_MCAddConfirm">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,DGN1110540%>" /></h2>
                </div>
                <asp:LinkButton ID="lb_MCGoBack" 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-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,GN00001113%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ContactDisplayName" 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="Literal33" runat="server" Text="<%$ Resources:Content,DGN1110532%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ContactExternalEmail" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal222" runat="server" Text='<%$ Resources:Content,GN001120 %>'></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Div_SetAsPrimary" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:CheckBox ID="CB_SetAsPrimary" AutoPostBack="true" runat="server" Text='<%$ Resources:Content,SetPrimaryEmail%>' />
                    </div>
                    <div class="col-sm-5 col-xs-12">
                    </div>
                </div>
                <div class="row" id="Tr_ContactPrimaryMail" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,Ex00123%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ContactPrimarySMTPEmail" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group at-the-rate">
                            @<asp:DropDownList ID="DDL_MCDomain" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <span id="Sp_Mandatory" runat="server" style="display: none">*</span><asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,Lync133%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ContactSIPAddress" 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="Literal1" runat="server" Text="<%$ Resources:Content,OCS003%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ContactPhone" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                    ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_ContactPhone"
                                    Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                    ValidationGroup="order"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_HideFromOtherALs" runat="server">
                    <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="ChBx_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="Tr_OptionalFields" runat="server">
                    <div class="panel-group" id="accordion_AddContact" role="tablist" aria-multiselectable="true">
                        <div class="panel panel-primary">
                            <div class="panel-heading" role="tab" id="headingOne_AddContact">
                                <h2 class="panel-title">
                                    <a role="button" id="a_AddContact" data-toggle="collapse" data-parent="#accordion_AddContact" href="#CSB_ContactOptional"
                                        aria-expanded="true" aria-controls="CSB_ContactOptional" class="collapsed">
                                        <%= Resources.Content.DGN1110535%>
                                    </a>
                                </h2>
                            </div>
                            <div id="CSB_ContactOptional" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_AddContact"
                                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="Literal41" runat="server" Text="<%$ Resources:Content,DGN1110537%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_MCBusinessPhone" runat="server"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                        ID="RegularExpressionValidator8" runat="server" ControlToValidate="TxBx_MCBusinessPhone"
                                                        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="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_ContactImg" runat="server" ChildrenAsTriggers="true">
                                            <ContentTemplate>

                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Ltrl_SelectProfilePic" 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_Upload" runat="server" onchange="autoUploadFileMc()" />
                                                            </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_upload" runat="server" Style="display: none;" CausesValidation="false" class="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" />
                                                    <asp:LinkButton ID="Lbtn_ClearProfilePic" runat="server" Text="<%$Resources:Content,String289 %>" Visible="false"></asp:LinkButton>
                                                </div>

                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:PostBackTrigger ControlID="btn_upload" />
                                            </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="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_MCAddConfirm" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110540%>"
                            ValidationGroup="order" />
                        <asp:Button ID="Btn_MCAddClose" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
</asp:Panel>

<%-- Add Bulk Contacts --%>
<asp:UpdatePanel ID="UP_AddBulkContact" runat="server" ChildrenAsTriggers="true">
    <ContentTemplate>
        <asp:Panel ID="Pnl_AddBulkContacts" 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,AddBulkContacts %>" /></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,AddBulkContacts %>"
                                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>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="Btn_AddBulkConfirm" />
    </Triggers>
</asp:UpdatePanel>

<asp:Panel ID="Pnl_BulkContactLog" runat="server" Visible="false">
    <div class="card">
        <div class="header">
            <h3>
                <asp:Literal ID="Literal88" runat="server" EnableViewState="false" Text="<%$ Resources:Content,BulkContactsLog%>" />
            </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_BulkContactLogClose" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                        Text="<%$ Resources:Content,GN000150%>" />
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<%--MailContact Detail--%>
<asp:Panel CssClass="row" ID="Pnl_MailContactDetail" 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,DGN1110541%>" />
                        <asp:Label ID="lbl_MailContactName" runat="server" /></h2>
                </div>
                <asp:LinkButton ID="lbl_MailContactGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <EM:MailContactDetail ID="MailContactDetail" runat="server" />
            </div>
        </div>
    </div>
</asp:Panel>
<EM:BulkMailContact ID="BulkMailContact1" Visible="false" runat="server" />

<asp:Panel ID="Pnl_GroupActionsStatus" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
    <div class="col-xs-12">
        <div class="card">
            <div class="header container-fluid">
                <h3 class="pull-left"></h3>
                <span>
                    <button type="button" class="close" onclick="$find('<%=MPE_GroupActionsStatus.ClientID%>').hide();">&times;</button>
                </span>
            </div>
            <div class="body">
                <EM:AccountGroupActions ID="GA_GroupActionsStatus" runat="server" />
            </div>
        </div>
    </div>
</asp:Panel>
<asp:Button ID="Btn_TargetGroupActionsStatus" runat="server" Text="<%$ Resources:Content,SMI0007%>"
    Style="display: none;" />
<asp:Button ID="Btn_OkGroupActionsStatus" runat="server" Text="<%$ Resources:Content,SMI0007%>"
    Style="display: none;" />
<EM:ModalPopupExtender runat="server" ID="MPE_GroupActionsStatus" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_GroupActionsStatus" TargetControlID="Btn_TargetGroupActionsStatus"
    OkControlID="Btn_OkGroupActionsStatus">
</EM:ModalPopupExtender>

<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Button ID="Btn_Done" runat="server" Style="display: none;" />
<asp:Panel ID="Pnl_Resources" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
    <div class="col-xs-12">
        <div class="card">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_Resources" TargetControlID="Btn_Display"
    OkControlID="Btn_Done">
</EM:ModalPopupExtender>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
    </script>
</CC:UpdatePanelInlineScriptControl>
