<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_AntiFraud_DomainBL, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <ajax:UpdatePanel ID="UPD" runat="server">
                    <ContentTemplate>
                        <EM:TabContainer ID="TC_Settings" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_Settings" runat="server" HeaderText='<%$ Resources:Content, M0027 %>'>
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN00001073%>" />
                                            </div>
                                            <div class="col-sm-4 col-xs-12" id="Td_Ignore" runat="server">
                                            </div>
                                            <div class="col-sm-4 col-xs-12" id="Td_IgnoreEdit" runat="server">
                                                <asp:CheckBox Text=" " ID="ChBx_Ignore" runat="server" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN000195%>" />
                                            </div>
                                            <div class="col-sm-4 col-xs-12" id="Td_Enabled" runat="server"></div>
                                            <div class="col-sm-4 col-xs-12" id="Td_EnabledEdit" runat="server">
                                                <asp:CheckBox Text=" " ID="ChBx_Enabled" runat="server" />
                                            </div>
                                        </div>
                                        <div class="row" id="Td1" runat="server">
                                            <div class="col-xs-12">
                                                <input id="HF_PluginDId" runat="server" type="hidden" />
                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Edit" SkinID="editButton" runat="server" Text='<%$ Resources:Content,GN0000276 %>' />
                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Update" SkinID="saveButton" runat="server" Text='<%$ Resources:Content,GN0000654 %>' />
                                                <asp:Button CssClass="btn btn-primary" ID="Btn_Cancel" Visible="false" SkinID="cancelButton" runat="server"
                                                    Text='<%$ Resources:Content,GN0000572 %>' />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_BanList" runat="server" HeaderText='<%$ Resources:Content, GN00001351 %>'>
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <div id="Div_BanList" runat="server" class="Div_OpsRow">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN00001320%>  </h3>
                                                        </div>
                                                        <div class="body">

                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_AddDomain" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,DEV1078 %>' />
                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Delete" Custom1="Custom" Style="display: none;" SkinID="removeButton" runat="server" Text='<%$ Resources:Content,GN0000377 %>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <asp:SqlDataSource ID="DS_BL" runat="server"></asp:SqlDataSource>
                                        <asp:GridView ID="GV_BL" DataSourceID="DS_BL" runat="server" AutoGenerateColumns="False"
                                            CssClass="table table-bordered table-striped table-hover table-responsive">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox Text=" " ID="ChkBx_All" class="option-menu" runat="server" onclick="SetCheckedHeader(this.checked, this,'All')" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="HF_Id" runat="server" Value='<%#DataBinder.Eval(Container, "DataItem.DomainId")%>' />
                                                        <asp:CheckBox Text=" " ID="ChkBx_All" class="option-menu" runat="server" onclick="SetCheckedHeader(this.checked, this,'1')" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-11" HeaderText='<%$ Resources:Content,String288 %>'>
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.DomainPattern")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                        <div id="Div_AddDomain" runat="server">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.String067%>  </h3>
                                                        </div>
                                                        <div class="body">

                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000653%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">

                                                                            <asp:TextBox ID="TxBx_Domain" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ValidationGroup="BanDomain" ControlToValidate="TxBx_Domain"
                                                                                ID="RFV_BanDomain" Display="None" runat="server"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-sm-offset-2 col-sm-4 col-xs-12">
                                                                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,String169%>" />
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_BanSave" SkinID="saveButton" ValidationGroup="BanCountry" runat="server"
                                                                        Text='<%$ Resources:Content,GN0000281 %>' />
                                                                    <asp:Button CssClass="btn btn-primary" ID="Btn_BanCancel" SkinID="cancelButton" CausesValidation="false" runat="server"
                                                                        Text='<%$ Resources:Content,GN0000572 %>' />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <asp:ValidationSummary HeaderText="<%$ Resources:Content,EM000001 %>" ID="VS" ValidationGroup="BanDomain"
                    DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
