<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_EmailLists, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<div class="col-xs-12">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,String1045 %>" CausesValidation="false"
                 CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row" id="Pnl_MailingLists" runat="server">
                <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                    <div class="card">
                        <div class="header">
                            <h3><%= Resources.Content.GN00001320%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_AddEmailList" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,SMI0510%>" CausesValidation="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12" id="Pnl_MailingListGrid" runat="server">
                    <asp:GridView ID="GV_EMailLists" runat="server" AllowPaging="true" DataSourceID=""
                        CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0511%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LB_ListName" runat="server" CommandName="Name" CausesValidation="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,Lync040%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_ListMembersCount" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LBtn_Enable" runat="server" class="btn btn-primary waves-effect btnAction" CommandName="Enable"
                                        Text="<%$ Resources:Content,GN00001024%>" CausesValidation="false" Visible="false"></asp:LinkButton>
                                    <asp:LinkButton ID="LBtn_Remove" runat="server" class="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                        Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                        TargetControlID="LBtn_Remove">
                                    </EM:ConfirmButtonExtender>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <%--PagerTemplate Start--%>
                        <PagerTemplate>
                            <EM:Pager ID="Pager1" runat="server" />
                        </PagerTemplate>
                        <%--PagerTemplate End--%>
                    </asp:GridView>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <%--//Mail list members--%>
                    <div class="card" id="Pnl_MailListMember" runat="server">
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Literal ID="Literal43" runat="server" Text="<%$ Resources:Content,SMI0512%>" EnableViewState="false" />
                                    <asp:Label ID="lbl_MailboxName" runat="server" />
                                    <asp:LinkButton ID="lb_GoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" Visible="false" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:GridView ID="GV_EmailListMembers" runat="server" AllowPaging="true" DataSourceID=""
                                        CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                        <Columns>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000652%>" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Email" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LBtn_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                        Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                        TargetControlID="LBtn_Remove">
                                                    </EM:ConfirmButtonExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="card" id="Table1" runat="server">
                                        <div class="header">
                                            <h3><%= Resources.Content.SMI0513%></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        *<asp:Literal ID="Ltl_ListMember" runat="server" Text="<%$ Resources:Content,SMI0514%>"
                                                            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="Txt_EmailAddress" runat="server" Text=""></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RFV_LM" runat="server" ControlToValidate="Txt_EmailAddress"
                                                                Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                           <%-- <asp:RegularExpressionValidator ID="REV_Txt_ForwardToMaillAdd" runat="server" ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                                ControlToValidate="Txt_EmailAddress" Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                ValidationGroup="EmailLists"></asp:RegularExpressionValidator>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:Button ID="Btn_SaveMember" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" ValidationGroup="EmailLists" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <%--//Add mailing list--%>
                    <div class="row" id="Pnl_AddEmailList" runat="server">
                        <div class="col-xs-12">
                            <div class="card" id="General" runat="server">
                                <div class="header">
                                    <h3><%= Resources.Content.SMI0510%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Lt_ListName" runat="server" Text="<%$ Resources:Content,SMI0511%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-3 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="Txt_ListName" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_Txt_ListName" runat="server" ControlToValidate="Txt_ListName"
                                                    Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <%--<asp:RegularExpressionValidator ID="REV_MemberEmailAddress" runat="server"  ControlToValidate="Txt_ListName" ErrorMessage="Enter a valid name." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="EmailLists"> </asp:RegularExpressionValidator>--%>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="Txt_ListName"
                                                    FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-_">
                                                </EM:FilteredTextBoxExtender>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <div class="form-group at-the-rate">
                                                @<asp:DropDownList ID="DDL_DomainName" runat="server">
                                                </asp:DropDownList>
                                                
                                            </div>
                                        </div>
                                        <div class="col-sm-2 col-xs-12">
                                            <asp:Label ID="Lbl_ListName" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Ltl_ListModerator" runat="server" Text="<%$ Resources:Content,SMI0515%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_Moderator" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Lt_ListType" runat="server" Text="<%$ Resources:Content,SMI0516%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_ListType" runat="server">
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0517%>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0518%>" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Lt_Description" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:TextBox ID="Txt_Description" runat="server" TextMode="MultiLine" Width="100%"
                                                Height="150px" Text="<%$ Resources:Content,SMI0519%>"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RFV_Txt_Description" runat="server" ControlToValidate="Txt_Description"
                                                Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <br />
                            <%--//Posting section--%>
                            <div class="card" id="Posting" runat="server">
                                <div class="header">
                                    <h3><%= Resources.Content.String169%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Lt_AllowedPosters" runat="server" Text="<%$ Resources:Content,SMI0520%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_AllowedPosters" runat="server" AutoPostBack="true">
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0521%>" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0522%>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0523%>" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0524%>" Value="3"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Lt_PostingReqPassword" runat="server" Text="<%$ Resources:Content,SMI0524%>" 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="Txt_PostingReqPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_Txt_PostingReqPassword" runat="server" ControlToValidate="Txt_PostingReqPassword"
                                                        Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <asp:Panel ID="Pnl_MailEnable" runat="server" Visible="false" Enabled="false">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Lt_SubjectPrefixType" runat="server" Text="<%$ Resources:Content,SMI0525%>" EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_SubjectPrefix" runat="server" AutoPostBack="true">
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0526%>" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0527%>" Value="1" Selected="true"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0528%>" Value="2"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Lt_EnableReply" runat="server" Text="<%$ Resources:Content,SMI0529%>" EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_ReplyToMode" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0530%>" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0531%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0532%>" Value="2"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Tr_SmarterMail" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,SMI0533%>" EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-1 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_SubjectPrefix" runat="server" Checked="true" AutoPostBack="true" Text=" " />
                                                </div>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="Txt_SubjectPrefix" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_Txt_SubjectPrefix" runat="server" ControlToValidate="Txt_SubjectPrefix"
                                                        Display="None" ValidationGroup="SmarterMail" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </div>
                                            </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,SMI0529%>" EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:CheckBox ID="CB_EnableReply" runat="server" Checked="true" Text=" " />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Lt_MaxMessageSize" runat="server" Text="<%$ Resources:Content,SMI0534%>" 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="Txt_MaxMessageSize" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_Txt_MaxMessageSize" runat="server" ControlToValidate="Txt_MaxMessageSize"
                                                        Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <EM:FilteredTextBoxExtender ID="FTBE_Size" FilterType="Numbers,Custom" ValidChars="0123456789" runat="server" TargetControlID="Txt_MaxMessageSize" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Lt_MaxRecipient" runat="server" Text="<%$ Resources:Content,SMI0535%>" 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="Txt_MaxRecipient" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_Txt_MaxRecipient" runat="server" ControlToValidate="Txt_MaxRecipient"
                                                        Display="None" ValidationGroup="EmailLists" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" FilterType="Numbers,Custom" ValidChars="0123456789" runat="server"
                                                        TargetControlID="Txt_MaxRecipient" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.SMI0536%></h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <label>
                                                                *<asp:Literal ID="Lt_EnableHeader" runat="server" Text="<%$ Resources:Content,SMI0537%>" EnableViewState="false"></asp:Literal>:</label>
                                                        </div>
                                                        <div class="col-sm-1 col-xs-12">
                                                            <asp:CheckBox ID="CB_EnableHeader" runat="server" Checked="false" Text=" " />
                                                        </div>
                                                        <div class="col-sm-8 col-xs-12">
                                                            <asp:TextBox ID="Txt_EnableHeader" runat="server" Enabled="false" TextMode="MultiLine"
                                                                Width="100%" Height="150px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RFV_Txt_EnableHeader" runat="server" ControlToValidate="Txt_EnableHeader"
                                                                Display="None" ValidationGroup="EmailLists" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <label>
                                                                *<asp:Literal ID="Lt_EnableFooter" runat="server" Text="<%$ Resources:Content,SMI0538%>" EnableViewState="false"></asp:Literal>:</label>
                                                        </div>
                                                        <div class="col-sm-1 col-xs-12">
                                                            <asp:CheckBox ID="CB_EnableFooter" runat="server" Checked="false" Text=" " />
                                                        </div>
                                                        <div class="col-sm-8 col-xs-12">
                                                            <asp:TextBox ID="Txt_EnableFooter" runat="server" Enabled="false" TextMode="MultiLine"
                                                                Width="100%" Height="150px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RFV_Txt_EnableFooter" runat="server" ControlToValidate="Txt_EnableFooter"
                                                                Display="None" ValidationGroup="EmailLists" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <br />
                            <%--//Subscription section--%>
                            <div class="card" id="Subscription" runat="server">
                                <div class="header">
                                    <h3><%= Resources.Content.DGN1119987%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Lt_AllowSubscription" runat="server" Text="<%$ Resources:Content,SMI0539%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:CheckBox ID="CB_AllowSubscription" runat="server" Checked="true" Text=" " />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Lt_AllowUnsbscribe" runat="server" Text="<%$ Resources:Content,SMI0540%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:CheckBox ID="CB_AllowUnsbscribe" runat="server" Checked="true" Text=" " />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Lt_EnableDigest" runat="server" Text="<%$ Resources:Content,SMI0541%>" EnableViewState="false"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:CheckBox ID="CB_EnableDigest" runat="server" Checked="true" Text=" " />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <br />
                            <%--//Header & footer section--%>
                            <div class="row" id="headernfooter" runat="server">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="EmailLists" />
                                    <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                </div>
                            </div>
                        </div>
                    </div>

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

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


<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Panel ID="Panel_Res" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
    ScrollBars="Auto" CssClass="width-modal-popup-auto" Style="display: none">
    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    PopupControlID="Panel_Res" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>

<script type="text/javascript">
    function RollIt(CB2, TXT2, RFV2) {
        var CB = document.getElementById(CB2);
        var TB = document.getElementById(TXT2);
        var RFV = document.getElementById(RFV2);

        if (CB != null && TB != null && RFV != null) {
            if (CB.checked) {
                TB.disabled = false;
                ValidatorEnable(RFV, true);
            }
            else {
                TB.disabled = true;
                TB.value = '';
                ValidatorEnable(RFV, false);
            }
        }
    }
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTBE_Size.ClientID%>');
</script>