<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_AntiFraud_CCBlackList, 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" ActiveTabIndex="0" 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">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="ChBx_Ignore" runat="server" Text=" " />
                                                </div>
                                            </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">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="ChBx_Enabled" runat="server" Text=" " />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="Td1" runat="server">
                                            <div class="col-xs-12">
                                                <input id="HF_PluginDId" runat="server" type="hidden" /></td>
                                                    <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,GN0000281 %>' />
                                                <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, GN00001349 %>'>
                                <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" class="btn btn-primary waves-effect" ID="Btn_AddCC" runat="server" Text="<%$ Resources:Content,GN0000888%>" />
                                                            <asp:Button CssClass="btn btn-primary btnAction" SkinID="removeButton" ID="Btn_Delete" Custom1="Custom" Style="display: none" 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=" " CssClass="option-menu" ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="HF_Id" runat="server" Value='<%#DataBinder.Eval(Container, "DataItem.CCId")%>' />
                                                        <asp:CheckBox Text=" " ID="ChkBx_All" CssClass="option-menu" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000802 %>' HeaderStyle-CssClass="col-xs-11">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.CCNumber")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                        <div id="Div_Operation" runat="server">
                                        </div>
                                        
                                        <div id="Div_AddCC" runat="server">
                                            <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_BanSave">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <div class="card">
                                                            <div class="header">
                                                                <h3>
                                                                    <%= Resources.Content.GN00001074%>                                                                                                                                 
                                                                </h3>
                                                            </div>
                                                            <div class="body">
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        *
                                                <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001075%>" />:
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_CardNo" runat="server" MaxLength="16"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ValidationGroup="BanCC" ControlToValidate="TxBx_CardNo"
                                                                                    ID="RFV_BanCC" Display="None" runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-xs-12">

                                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_BanSave" SkinID="saveButton" ValidationGroup="BanCC" 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>
                                            </asp:Panel>

                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <asp:ValidationSummary ID="VS" ValidationGroup="BanCC" HeaderText="<%$ Resources:Content,EM000001 %>"
                    ShowMessageBox="true" ShowSummary="false" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
