<%@ control language="VB" autoeventwireup="false" inherits="Admin_Exchange_CC_MailUserDetail, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    
    <script type="text/javascript" language="javascript">
        function autoUploadFileMU() {
            $get('<% =btn_upload.ClientID%>').click();
        }
    </script>
</CC:UpdatePanelInlineScriptControl>

<div class="row">
    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_General" runat="server" Text='<%$ Resources:Content, GN00001466 %>' />
            </span>
            <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="LB_MailFlow" runat="server" Text='<%$ Resources:Content, DGN1110363 %>' />
            </span>
            <span id="div_EmailAddresses" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_EmailAddresses" runat="server" Text='<%$ Resources:Content, GN0000491 %>' />
            </span>
            <span id="div_DLMembership" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="LB_DLMembership" runat="server" Text='<%$ Resources:Content, EX0010 %>' />
            </span>
            <span id="div_s5" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
            </span>

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

<asp:Panel CssClass="row" ID="Pnl_General" runat="server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <%--General Tab--%>
                <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"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_MUDisplayName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="MailUserDetail"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <%--<div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN000170%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Name" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Name"
                                    Display="None" SetFocusOnError="True" ValidationGroup="MailUserDetail"></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="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_MUExternalEmailAddress"
                                    Display="None" SetFocusOnError="True" ValidationGroup="MailUserDetail"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="Regx_EmailAddress" runat="server" ControlToValidate="TxBx_MUExternalEmailAddress"
                                    Display="None" SetFocusOnError="true" ValidationGroup="MailUserDetail" ErrorMessage='<%$ Resources:Content,SMI00847%>' ValidationExpression="<%$Resources:MPRegex,EmailAddress %>">
                                </asp:RegularExpressionValidator>
                            </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="MailUserDetail"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator Display="None" ID="Rev_UserLogonName" runat="server" ControlToValidate="TxBx_MULogonName"
                                    ErrorMessage="<%$Resources:Content,InvalidLogonName %>" SetFocusOnError="true" ValidationGroup="MailUserDetail"
                                    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">
                        <label>
                            <asp:Literal ID="Literal9" 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="Literal6" 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_ContactSIP" 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="Literal15" 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="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_ContactPhone"
                                    Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                    ValidationGroup="MailUserDetail"></asp:RegularExpressionValidator>
                            </div>
                        </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 class="panel-group" id="accordion_AddContact" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary" id="Div_Co" runat="server">
                        <div class="panel-heading" role="tab" id="headingOne_AddContact">
                            <h2 class="panel-title">
                                <a role="button" 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" id="DivOptionalFields" runat="server">
                                <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_Initials" 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="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_FName" 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_MiddleName" 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_LName" 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,GN00001493 %>'
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:TextBox runat="server" ID="TxBx_Address" 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_City"></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_State" 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_Zip" runat="server"></asp:TextBox>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxBx_Zip"
                                                    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="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_Country" 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,DGN1110362 %>'
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_BPhone" runat="server" MaxLength="20"></asp:TextBox>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers,Custom"
                                                    TargetControlID="TxBx_BPhone" ValidChars="+ - ( ) \s">
                                                </EM:FilteredTextBoxExtender>
                                            </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_Fax" runat="server"></asp:TextBox>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_Fax"
                                                    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,DGN1110382%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_HPhone" runat="server" MaxLength="20"></asp:TextBox>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers,Custom"
                                                    TargetControlID="TxBx_HPhone" ValidChars="+ - ( ) \s">
                                                </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,GN0000885%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_MPhone" runat="server" MaxLength="20"></asp:TextBox>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers,Custom"
                                                    TargetControlID="TxBx_MPhone" ValidChars="+ - ( ) \s">
                                                </EM:FilteredTextBoxExtender>
                                            </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_Pager" 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_WebPage" runat="server" ValidationGroup="MailUserDetail"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationGroup="MailUserDetail"
                                                    ControlToValidate="TxBx_WebPage" Display="None"
                                                    ValidationExpression="(?<http>(http:[/][/]|www.)([a-z]|[A-Z]|[0-9]|[/.]|[~])*)" ErrorMessage="Please enter a valid Web Page."></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="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_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_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" />
                                                &nbsp;&nbsp;<asp:LinkButton ID="Lbtn_ClearProfilePicContact" runat="server" Text="<%$Resources:Content,String289 %>" Visible="false"></asp:LinkButton>
                                            </div>

                                        </ContentTemplate>
                                        <Triggers>
                                            <ajax: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_JobTitle" 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,GN00001077 %>'
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CName" 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_Deptt" 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_Office" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12">
        <asp:Button ID="Btn_MUSave" runat="server" Text="<%$ Resources:Content,GN0000281%>"
            class="btn btn-primary waves-effect btnAction" ValidationGroup="MailUserDetail" />
        <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
            ValidationGroup="MailUserDetail" HeaderText="<%$ Resources:Content,EM000001%>" />
    </div>
</asp:Panel>
<%--Mail Flow Settings Tab--%>
<asp:Panel CssClass="row" ID="Pnl_MailFlow" runat="server" Visible="false">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN0000112%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,DGN1110560%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SendingMsgSize" runat="server" MaxLength="7"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:CheckBox ID="CB_SendingMessageSize" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                        <asp:Label ID="Lbl_SendingMsgSize" runat="server" ForeColor="red" Text="*" Visible="false">
                        </asp:Label>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DGN1110351%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ReceivingMsgSize" runat="server" MaxLength="7"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:CheckBox ID="CB_ReceivingMessageSize" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                        <asp:Label ID="Lbl_ReceivingMsgSize" runat="server" ForeColor="red" Text="*" Visible="false">
                        </asp:Label>
                    </div>
                </div>
                <%--<div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_RestrictionsSave" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000281%>" />
                    </div>
                </div>--%>
            </div>

            <%--Restrictions--%>
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal34" runat="server" Text="<%$ Resources:Content,DGN1110340%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,DGN1110341%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <asp:RadioButtonList ID="RBL_AMessage" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="LI_AllSenders" Text="<%$ Resources:Content,DGN1110342%>" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="LI_SenderLst" Text="<%$ Resources:Content,DGN1110343%>"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="row" id="tbl_AMessage" runat="server" visible="false">
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <EM:AddSelectableSelected ID="UCAcceptMessagesFrom" runat="server" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </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,DGN1110344%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <asp:RadioButtonList ID="RBL_RMessage" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="LI_NoSenders" Text="<%$ Resources:Content,DGN1110345%>" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="LI_SenderLst" Text="<%$ Resources:Content,DGN1110346%>"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="row" id="tbl_RMessage" runat="server" visible="false">
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <EM:AddSelectableSelected ID="UCRejectMessagesFrom" runat="server" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_RestrictionsSave" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<%--Email Adresses Tab--%>
<div class="row">
    <div class="col-xs-12">
        <asp:Panel CssClass="row" ID="Pnl_EmailAddresses" runat="server" Visible="false">

            <div class="col-xs-12">
                <asp:SqlDataSource runat="server" ID="SqlDS_EmailAddress"></asp:SqlDataSource>
                <asp:GridView ID="GV_EmailAddresses" AutoGenerateColumns="false" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                    CssClass="table table-bordered table-striped table-hover" runat="server" DataSourceID="SqlDS_EmailAddress" DataKeyNames='EmailAddressID,EmailAddress'>

                    <Columns>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000491%>">
                            <ItemTemplate>
                                <asp:Label ID="Lbl_Email" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001525%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <asp:Label ID="img_PEmail" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" class="btn btn-primary waves-effect btnAction" ID="LB_SetPrimary" Text="<%$ Resources:Content,DGN1110332%>"
                                    CommandName="SetPrimary_Email" CommandArgument='<%#Databinder.Eval(Container,"DataItem.EmailAddressID") %>'></asp:LinkButton>
                                <%--<asp:LinkButton runat="server" Visible="false" class="btn btn-primary waves-effect" ID="LB_SetPrimaryAndUPN" Text="<%$ Resources:Content,Exh009%>"
                                    CommandName="SetPrimary_EmailUPN" CommandArgument='<%#Databinder.Eval(Container,"DataItem.EmailAddressID") %>'></asp:LinkButton>--%>
                                <asp:LinkButton runat="server" class="btn btn-primary waves-effect btnAction" ID="LB_Delete" CommandArgument='<%#Databinder.Eval(Container,"DataItem.EmailAddressID") %>'
                                    Text="<%$ Resources:Content,GN0000377%>" CommandName="Delete_Email"></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="Pager1" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </asp:GridView>
            </div>


            <div class="col-xs-12">
                <asp:Panel ID="Panel5" runat="server" DefaultButton="Btn_AddEmailToMB">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,String317%>" EnableViewState="false"></asp:Literal></h3>
                        </div>
                        <div class="body">
                            <ajax:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal123" runat="server" Text="<%$ Resources:Content,GN0000673%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:RadioButton ID="RB_SMTP" runat="server" AutoPostBack="true" GroupName="AddressType" Text="SMTP" />
                                            <asp:RadioButton ID="RB_Custom" runat="server" AutoPostBack="true" GroupName="AddressType" Text="<%$ Resources:Content,String456%>" />
                                        </div>
                                    </div>
                                    <div class="row" id="Tr_SMTP" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN0000491%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="Txt_EmailID" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="Txt_EmailID"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="EmailAddr_MBDetail"></asp:RequiredFieldValidator>
                                                    <%--<asp:RegularExpressionValidator ID="REV_EmailId" runat="server" ValidationExpression="<%$ Resources:MPRegex,Alias %>"
                                                        ValidationGroup="EmailAddr_MBDetail" ErrorMessage='<%$Resources:Content, DGN1110038%>'
                                                        ControlToValidate="Txt_EmailID" Display="None" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group at-the-rate">
                                                @<asp:DropDownList ID="DDL_NewEmailDomain" runat="server">
                                                    <asp:ListItem Text="<%$ Resources:Content,DGN1110334%>"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="Tr_CustomType" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,CustomAddressType%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_CustomAddressType" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_CustomAddressType"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="EmailAddr_MBDetail"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <asp:Literal ID="Ltl_AddressTypeHelpText" runat="server" Text="<%$ Resources:Content,EmailAddressTypeHelpText%>"></asp:Literal>
                                        </div>
                                    </div>
                                    <div class="row" id="Tr_CustomAddress" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0000491%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_CusomAddress" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_CusomAddress"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="EmailAddr_MBDetail"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                                <Triggers>
                                    <ajax:AsyncPostBackTrigger ControlID="RB_SMTP" />
                                    <ajax:AsyncPostBackTrigger ControlID="RB_Custom" />
                                </Triggers>
                            </ajax:UpdatePanel>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:ValidationSummary ID="ValidationSummary4" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="EmailAddr_MBDetail" HeaderText="<%$ Resources:Content,EM000001%>" />
                                    <asp:Button ID="Btn_AddEmailToMB" runat="server" Text="<%$ Resources:Content,GN0000659%>"
                                        class="btn btn-primary waves-effect" ValidationGroup="EmailAddr_MBDetail" CausesValidation="true" />
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>

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

<%-- DL Membership --%>
<div id="Pnl_DMembership" runat="server" visible="false">
    <div class="card">
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <EM:AddSelectableSelected ID="UCDistributionList" runat="server" />
                </div>

                <div class="col-xs-12">
                    <asp:Button ID="Btn_SaveMembership" runat="server"
                        Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                </div>
            </div>
        </div>
    </div>
</div>

<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl2" runat="server">
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender4.ClientID%>');--%>
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
    </script>
</CC:UpdatePanelInlineScriptControl>
