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

<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, DGN1110518 %>' />
            </span>
            <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_EmailAddresses" runat="server" Text='<%$ Resources:Content, GN0000491 %>' />
            </span>
            <span id="div_s3" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Advanced" runat="server" Text='<%$ Resources:Content, DGN1110279 %>' />
            </span>
            <span id="div_s4" runat="server" nowrap="true" class="label label-default ">
                <asp:LinkButton ID="lb_SendAs" runat="server" Text="<%$ Resources:Content,L00147%>" />
            </span>
            <span id="div_s7" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_SendOnBehalf" runat="server" Text="<%$ Resources:Content,L00146%>" />
            </span>
            <span id="div_s5" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_MessageApproval" runat="server" Text="<%$ Resources:Content,MessageApproval%>" />
            </span>
            <span id="div_s6" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_DynamicMembers" runat="server" Text="<%$ Resources:Content,DGN1110518%>" />
            </span>
            <span id="div_s8" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
            </span>
        </div>
    </div>
</div>

<asp:Panel ID="Pnl_General" runat="server">
    <div id="div_dl_adsyncnote" runat="server" class="m-l-5 m-t-10 m-b-10"></div>
    <div class="row" id="Tbl_Ops" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                    </h3>
                </div>
                <div class="body">

                    <asp:Button ID="Btn_ExportDLMembers" CommandArgument="0" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,strExportDLMembers%>' />

                </div>
            </div>
        </div>
    </div>
    <asp:Panel ID="Pnl_Btn_SrchListMembers" runat="server" CssClass="row" DefaultButton="Btn_SrchListMembers">
        <div class="panel-group search-panel" id="AS_DListDetail" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_DListDetail">

                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DListDetail" href="#<%= CSB_DListDetail.ClientID%>" aria-expanded="true" aria-controls="SH_DListDetail">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_DListDetail" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DListDetail" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_SrchListMembers" runat="server">
                                        <asp:ListItem Text="<%$ Resources:Content,GN000170%>" Selected="True" Value="name" />
                                        <asp:ListItem Text="<%$ Resources:Content,GN0000652%>" Value="email" />
                                    </asp:DropDownList>
                                </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_SrchListMembers" runat="server" MaxLength="200"></asp:TextBox>
                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000387%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_SrchListMembers" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearSrchListMembers" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <%--General Tab--%>
    <%--Listing--%>
    <div class="row">
        <div class="col-xs-12">
            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_Tab_General" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true">

                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001113%>" SortExpression="MemberDisplayName" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_DName" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000491%>" SortExpression="MemberEmailAddress" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_EmailAddr" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Delete" Text="<%$ Resources:Content,GN0000278%>"
                                runat="server" CommandName="RowDelete"></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>
    <%--Add List Member--%>
    <div class="row" id="Tbl_AddListMember" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,DGN1110519%>" EnableViewState="false"></asp:Label>
                    </h3>
                </div>
                <div class="body">
                    <ajax:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="row">
                                <div class="col-xs-12 ">
                                    <EM:AddSelectableSelected ID="UCListMemebrs" runat="server" />
                                </div>
                            </div>
                        </ContentTemplate>
                    </ajax:UpdatePanel>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_SaveAddMember" Enabled="true" class="btn btn-primary waves-effect btnAction" runat="server"
                                Text="<%$ Resources:Content,GN0000659%>" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</asp:Panel>
<%--Email Adresses Tab--%>
<asp:Panel CssClass="row" ID="Pnl_EmailAddresses" runat="server" Visible="false">
    <div class="col-xs-12">
        <asp:SqlDataSource runat="server" ID="SqlDS_Tab_Emailaddr"></asp:SqlDataSource>
        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
            DataSourceID="SqlDS_Tab_Emailaddr" ID="GV_Tab_Emailaddr" AllowPaging="True" runat="server"
            AutoGenerateColumns="false">

            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000491%>" HeaderStyle-CssClass="col-xs-7" ItemStyle-CssClass="col-xs-7">
                    <ItemTemplate>
                        <asp:Label ID="Lbl_EmailAddr" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110337%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                    <ItemTemplate>
                        <asp:Label ID="Img_Primary" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                    <ItemTemplate>
                        <asp:LinkButton ID="LB_Edit" CommandArgument='<%#Databinder.Eval(Container,"DataItem.EmailAddressID") %>'
                            runat="server" Text="<%$ Resources:Content,GN0000276%>" class="btn btn-primary waves-effect" CommandName="Edit_Email" />
                        <asp:LinkButton runat="server" ID="LB_Delete" class="btn btn-primary waves-effect btnAction" 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>
                        <asp:LinkButton runat="server" ID="LB_SetPrimary" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110332%>"
                            CommandArgument='<%#Databinder.Eval(Container,"DataItem.EmailAddressID") %>'
                            CommandName="SetPrimary_Email"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <%--PagerTemplate Start--%>
            <PagerTemplate>
                <EM:Pager ID="Pager2" runat="server" />
            </PagerTemplate>
            <%--PagerTemplate End--%>
        </asp:GridView>
    </div>
    <%--Box Add Email Address --%>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Label ID="Lbl_T" runat="server" Text="<%$ Resources:Content,DGN1110333%>" EnableViewState="false"></asp:Label>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-2 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal123" runat="server" Text="<%$ Resources:Content,GN0000673%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-10 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-2 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal6" 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_EmailAddr" MaxLength="128" runat="server" />
                               <%-- <asp:RegularExpressionValidator ID="REV_UPN" runat="server" ValidationExpression="<%$ Resources:MPRegex,Alias %>"
                                    ValidationGroup="AddEmailVG" ErrorMessage="Enter a valid email address" ControlToValidate="TxBx_EmailAddr"
                                    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_Domain" runat="server" AppendDataBoundItems="true">
                                <asp:ListItem Text="<%$ Resources:Content,DGN1110334%>"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <asp:CheckBox ID="Chbx_DlistPrimaryEmail" Checked="false" Enabled="true" Visible="false" runat="server"
                            Text="<%$ Resources:Content,DGN1110337%>" />
                    </div>
                </div>
                <div class="row" id="Tr_CustomType" runat="server">
                    <div class="col-sm-2 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal21" 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-6 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-2 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal22" 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>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="AddEmailVG" HeaderText="<%$ Resources:Content,EM000001%>" />
                        <asp:Button ID="Btn_AddDListEmail" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                            class="btn btn-primary waves-effect btnAction" ValidationGroup="AddEmailVG" CausesValidation="True" />
                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                            class="btn btn-primary waves-effect" Visible="false" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<%--Advanced Tab--%>
<asp:Panel CssClass="row" ID="Pnl_Advanced" runat="server" Visible="false">
    <div class="col-xs-12">
        <%--General Setting--%>
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,SM400028%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal46" runat="server" EnableViewState="false" 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_Name" MaxLength="128" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_DynamicDL" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal49" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Exch922%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:RadioButton ID="RB_AllRecipients" runat="server" Checked="true" GroupName="DynamicDL" Text="<%$ Resources:Content,Exch923%>" /><br />
                                <asp:RadioButton ID="RB_SpecificTypes" runat="server" GroupName="DynamicDL" Text="<%$ Resources:Content,Exch924%>" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:CheckBox ID="CB_UsersExchangeMBs" runat="server" Text="<%$ Resources:Content,Exch925%>" />
                            </div>
                            <div class="col-xs-12">
                                <asp:CheckBox ID="CB_UsersExternalMBs" runat="server" Text="<%$ Resources:Content,Exch926%>" />
                            </div>
                            <div class="col-xs-12">
                                <asp:CheckBox ID="CB_ResourceMBs" runat="server" Text="<%$ Resources:Content,Exch927%>" />
                            </div>
                            <div class="col-xs-12">
                                <asp:CheckBox ID="CB_Contacts" runat="server" Text="<%$ Resources:Content,Exch928%>" />
                            </div>
                            <div class="col-xs-12">
                                <asp:CheckBox ID="CB_MailGroups" runat="server" Text="<%$ Resources:Content,Exch929%>" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_DLStreet" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal76" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110530%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLStreet" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal77" runat="server" Text="<%$ Resources:Content,ComaSepStreetOrBlank%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLCity" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal73" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLCity" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal74" runat="server" Text="<%$ Resources:Content,ComaSepCityOrBlank%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLState" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal50" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001313%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLState" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,Exch930%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLDepartment" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal51" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLDepartment" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal117" runat="server" Text="<%$ Resources:Content,Exch931%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLCompany" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal52" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLCompany" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal118" runat="server" Text="<%$ Resources:Content,Exch932%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DL_Title" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal53" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000280%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLTitle" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,ExH213%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLDescription" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal78" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLDescription" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal79" runat="server" Text="<%$ Resources:Content,ComaSepDescOrBlank%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DL_Office" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal54" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DDLOffice" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,ExH236%>"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_DLManager" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal80" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110360%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DLManager" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal83" runat="server" Text="<%$ Resources:Content,ComaSepManagerOrBlank%>"></asp:Literal>
                    </div>
                </div>

                <div class="row" id="Tr_DLDatabase" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal85" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String18%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div>
                                <asp:TextBox ID="TxBx_DLDatabase" runat="server" TextMode="MultiLine" Height="75px" Width="100%"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal86" runat="server" Text="<%$ Resources:Content,ComaSepDatabaseOrBlank%>"></asp:Literal>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal55" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110410%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <ajax:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:DropDownList ID="DDL_ManagedBy" Visible="false" runat="server"></asp:DropDownList>
                                <EM:AddSelectableSelected ID="UCManagedBy" runat="server" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
                <div id="Div_ExceptDDL" runat="server" visible="false">
                    <div class="row">
                        <div class="col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ExceptIfRecipientIs%>"></asp:Literal>:</label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <EM:AddSelectableSelected ID="UC_ExceptIfDDL" runat="server" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--DeliveryManagement--%>
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal34" runat="server" Text="<%$ Resources:Content,DeliveryManagement%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <asp:Literal ID="Ltrl_WhoCanSendMessagesToThisGroup" runat="server" Text="<%$Resources:Content,ChoseWhoCanSendMessagesToThisGroup %>"></asp:Literal>:
                        <br />
                        <small>[<asp:Label ID="Lbl_ReqAuth" runat="server" Text="<%$ Resources:Content,L0079%>"></asp:Label>]</small>
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <asp:RadioButtonList ID="Rbl_SenderAuthentication" runat="server">
                            <asp:ListItem Text="<%$Resources:Content,OnlySendersInsideMyOrganization %>" Value="1"
                                Selected="True"></asp:ListItem>
                            <asp:ListItem Text="<%$Resources:Content,SendersInsideAndOutsideOfMyOrganization %>"
                                Value="0"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 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-8 col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:RadioButtonList ID="RBL_AcceptMsg" runat="server" AutoPostBack="true">
                                    <asp:ListItem Value="AllSenders" Text="<%$ Resources:Content,DGN1110342%>" Selected="true"></asp:ListItem>
                                    <asp:ListItem Value="AllSendersLst" Text="<%$ Resources:Content,DGN1110343%>"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>

                    </div>
                    <div class="col-xs-12" id="tbl_AMessage" runat="server" visible="false">
                        <div class="col-xs-12">
                            <ajax:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <EM:AddSelectableSelected ID="UCDListAMessagesFrom" runat="server" />
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110344%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:RadioButtonList ID="RBL_RejectMsg" runat="server" AutoPostBack="true">
                                    <asp:ListItem Value="Nosenders" Text="<%$ Resources:Content,DGN1110345%>" Selected="true"></asp:ListItem>
                                    <asp:ListItem Value="NosendersList" Text="<%$ Resources:Content,DGN1110346%>"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12" id="tbl_RMessage" runat="server" visible="false">
                        <div class="col-xs-12">
                            <ajax:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Always">
                                <ContentTemplate>
                                    <EM:AddSelectableSelected ID="UCDListRMessagesFrom" runat="server" />
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--Box: Delivery Reports--%>
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110347%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:RadioButton ID="RDB_SentReportGMan" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110348%>" /><br />
                        <asp:RadioButton ID="RDB_SentReportOrg" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110349%>" /><br />
                        <asp:RadioButton ID="RDB_DonotSentReport" Checked="true" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110350%>" />
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--Box: Limits--%>
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000112%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal7" 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_MaxMsgSizeValue" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <asp:CheckBox ID="CB_MaxMsgSize" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                        <asp:Label ID="Lbl_MaxMsgSizeValue" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--Box: Others--%>
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,SM400021%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,DGN1110527%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:CheckBox ID="ChBx_HideFromExALs" runat="server" Text=" " />
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DGN1110353%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:CheckBox ID="ChBx_oOFAutoReply" runat="server" Text=" " />
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,strHideMemberDL%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:CheckBox ID="ChBx_HideMemberDL" runat="server" Text=" " />
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--Box: Membership Approval--%>
        <div class="card" id="Div_MembershipApproval" runat="server">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,MembershipApproval%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <asp:Literal ID="Ltrl_MemberJoinRestriction" runat="server" Text="<%$ Resources:Content,MemberJoinRestriction %>"></asp:Literal>:
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <asp:RadioButtonList ID="RBL_MJR" runat="server">
                            <asp:ListItem Text="<%$Resources:Content,JoinOpenRestriction %>" Value="Open"></asp:ListItem>
                            <asp:ListItem Text="<%$Resources:Content,JoinClosedRestriction %>" Value="Closed" Selected="true"></asp:ListItem>
                            <asp:ListItem Text="<%$Resources:Content,JoinApprovalRequired %>" Value="ApprovalRequired"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <asp:Literal ID="Ltrl_MemberLeaveRestriction" runat="server" Text="<%$ Resources:Content,MemberLeaveRestriction %>"></asp:Literal>:
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <asp:RadioButtonList ID="RBL_MLR" runat="server">
                            <asp:ListItem Text="<%$Resources:Content,LeaveOpenRestriction %>" Value="Open"></asp:ListItem>
                            <asp:ListItem Text="<%$Resources:Content,LeaveClosedRestriction %>" Value="Closed" Selected="true"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12">
        <asp:Button ID="Btn_AdvancedSave" runat="server" Text="<%$ Resources:Content,GN0000281%>"
            class="btn btn-primary waves-effect btnAction" />
    </div>
</asp:Panel>
<%--Send As --%>
<asp:Panel CssClass="row" ID="Pnl_SendAs" runat="server" DefaultButton="Btn_AddSendAs" Visible="false">
    <div class="col-xs-12">
        <div class="card" id="FS_SendAs" runat="server">
            <div class="header">
                <h3>
                    <asp:Literal ID="SM22" runat="server" Text="<%$ Resources:Content,L00147%>" EnableViewState="false" />:
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCDListSendAs" runat="server" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddSendAs" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<%--Send On Behalf --%>
<asp:Panel CssClass="row" ID="Pnl_SendOnBehalf" runat="server" DefaultButton="Btn_AddSendOnBehalf" Visible="false">
    <div class="col-xs-12">
        <div class="card" id="FS_SendOnBehalf" runat="server">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,L00146%>" EnableViewState="false" />:
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCDListSendOnBehalf" runat="server" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddSendOnBehalf" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<%--Message Approval --%>
<asp:Panel CssClass="row" ID="Pnl_MessageApproval" runat="server" DefaultButton="Btn_MessageApproval" Visible="false">
    <div class="col-xs-12">
        <div class="card" id="Tbl_MessageApproval" runat="server">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,MessageApproval%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:CheckBox ID="ChBx_ApproveByModerator" runat="server" Text="<%$ Resources:Content,FAM00146%>" />
                    </div>
                </div>
                <div id="Tbl_MAppHide" runat="server" style="display: none;">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,FAM00147%>" EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <ajax:UpdatePanel ID="UP_MessageApproval" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <EM:AddSelectableSelected ID="UCMessageApprovalModerator" runat="server" />
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,FAM00148%>" EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <ajax:UpdatePanel ID="UP_Senders" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <EM:AddSelectableSelected ID="UCMessageApprovalSender" runat="server" />
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,FAM00149%>" EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <asp:RadioButton ID="RB_All" runat="server" Checked="true" Text="<%$ Resources:Content,FAM00150%>" GroupName="Notices" /><br />
                            <asp:RadioButton ID="RB_Org" runat="server" Text="<%$ Resources:Content,FAM00151%>" GroupName="Notices" /><br />
                            <asp:RadioButton ID="RB_None" runat="server" Text="<%$ Resources:Content,FAM00152%>" GroupName="Notices" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_MessageApproval" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_DynamicDLMembers" runat="server" Visible="false">
    <asp:Panel ID="Pnl_Btn_SrchDynamicListMembers" runat="server" CssClass="row" DefaultButton="Btn_SrchDynamicListMembers">
        <div class="panel-group search-panel" id="AS_DynamicListDetail" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_DynamicListDetail">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DynamicListDetail" href="#<%= CSB_DynamicListDetail.ClientID%>" aria-expanded="true" aria-controls="SH_DListDetail">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_DynamicListDetail" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DynamicListDetail" 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_SrchDynamicListMembers" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L0070%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_SrchDynamicListMembers" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearSechDynamicListMembers" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <div class="row">
        <div class="col-xs-12">
            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_Tab_DynamicMembers" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true">

                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,L0070%>" SortExpression="Member" HeaderStyle-CssClass="col-xs-8" ItemStyle-CssClass="col-xs-8">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Member" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110420%>" SortExpression="Type" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Type" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager1" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </asp:GridView>
        </div>
    </div>
</asp:Panel>
