<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_SPAMFilters, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AddEditSpamDomain.ascx" TagName="AddEditSpamDomain" TagPrefix="EM" %>

<div class="row">
    <div class="col-xs-12 Div_OpsRow" id="Tbl_Ops" runat="server">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <asp:Button ID="Btn_AddSpamFilterDomain" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,FAM0067%>'
                    CausesValidation='false' />
            </div>
        </div>
    </div>
    <div class="col-xs-12" id="Tbl_Listing" runat="server">
        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
            ID="GV_SpamDomains" runat="server" AutoGenerateColumns="false" AllowPaging="false">

            <Columns>
                <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110516%>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                    <ItemTemplate>
                        <asp:LinkButton ID="LB_DomainName" runat="server" CommandName="EditRow" data-toggle="tooltip" data-placement="top" title="" data-original-title="Tooltip on top"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content,HVServer39%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                    <ItemTemplate>
                        <asp:Label ID="Img_IsPrimary" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content,FAM0068%>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                    <ItemTemplate>
                        <asp:Label ID="Lbl_PrimaryDomainName" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                    <ItemTemplate>
                        <asp:LinkButton ID="LB_Manage" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,Exch0010 %>" Visible="false" />
                        <asp:LinkButton ID="LB_Edit" Text='<%$ Resources:Content,GN0000276%>' class="btn btn-primary waves-effect" CommandName="EditRow" runat="server" />
                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                            TargetControlID="LB_Delete" runat="server">
                        </EM:ConfirmButtonExtender>
                        <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000377%>' class="btn btn-primary waves-effect btnAction" CommandName="DeleteRow" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="col-xs-12">
        <div class="card" id="Tbl_Add" runat="server" visible="false">
            <div class="body">
                <EM:AddEditSpamDomain ID="AddEditSpamDomain" runat="server" />
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281%>' ValidationGroup="spamfilter" />
                        <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000572%>' CausesValidation="false" />
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="spamfilter" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
