<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_AntiFraud_IPBL, 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 ID="ChBx_Ignore" runat="server" Text=" " data-label="Ignore failure during Fraud checks" /></td>
                                            </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 ID="ChBx_Enabled" runat="server" Text=" " data-label="Enabled" />
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <input id="HF_PluginDId" runat="server" type="hidden" />
                                                <div id="Td1" runat="server">
                                                    <asp:Button CssClass="btn btn-primary" 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" SkinID="cancelButton" Visible="false" runat="server"
                                                        Text='<%$ Resources:Content,GN0000572 %>' />
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_BanList" runat="server" HeaderText='<%$ Resources:Content, GN00001347 %>'>
                                <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_AddIP" runat="server" Text="<%$ Resources:Content,GN00001155%>" />
                                                            <asp:Button CssClass="btn btn-primary btnAction" Custom1="Custom" style="Display:none;" ID="Btn_Delete" SkinID="removeButton" runat="server" Text='<%$ Resources:Content,GN0000377 %>' />
                                                            <asp:Button CssClass="btn btn-primary btnAction" Custom1="Custom" style="Display:none;" ID="Btn_Enable" SkinID="enableButton" runat="server" Text='<%$ Resources:Content,GN00001024 %>' />
                                                            <asp:Button CssClass="btn btn-primary btnAction" Custom1="Custom" style="Display:none;" ID="Btn_Disable" SkinID="disableButton" runat="server" Text='<%$ Resources:Content,GN00001025 %>' />
                                                        </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 CssClass="option-menu" runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this,'All')" name="ChkBx_All" Text=" " />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="HF_Id" runat="server" Value='<%#DataBinder.Eval(Container, "DataItem.IPId")%>' />
                                                        <asp:CheckBox CssClass="option-menu" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this,'1')" runat="server" Text=" " />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN00001156 %>' HeaderStyle-CssClass="col-xs-5">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.FirstIPAddress")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN00001157 %>' HeaderStyle-CssClass="col-xs-5">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.LastIPAddress")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000195 %>' HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <div id="Div_Enabled" runat="server">
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                        <div id="Div_Operation" runat="server">
                                            
                                            <div>
                                            </div>
                                        </div>
                                        
                                        <div id="Div_AddIP" 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.GN00001149%>  </h3>
                                                            </div>
                                                            <div class="body">
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        *
                                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN00001150%>" />
                                                                        :
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_IPRangeName" runat="server" MaxLength="200" data-label="IP Range Name"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ValidationGroup="BanIP" ControlToValidate="TxBx_IPRangeName"
                                                                                    ID="RFV_BanIP" Display="None" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>

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

                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <asp:RadioButton CssClass="row-label" ID="RB_SingleIP" Checked="true" GroupName="IP" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,GN00001151%>" data-label="Single IP Option" />
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        *
                                                <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN000174%>" />:
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_SingleIP" runat="server" MaxLength="15" data-label="Single IP"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ValidationGroup="BanIP" ControlToValidate="TxBx_SingleIP"
                                                                                    ID="RequiredFieldValidator1" Display="None" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TxBx_SingleIP"
                                                                                    Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>" ValidationGroup="BanIP"
                                                                                    ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <asp:RadioButton CssClass="row-label" ID="RB_IPRange" GroupName="IP" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,GN00001348%>" data-label="IP Range Option" />
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="rangeRow1" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        *
                                                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN00001153%>" />
                                                                        :
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_FirstIPAddress" runat="server" MaxLength="15" data-label="First IP Address"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ValidationGroup="BanIP" ControlToValidate="TxBx_FirstIPAddress"
                                                                                    ID="RequiredFieldValidator2" Display="None" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_FirstIPAddress"
                                                                                    Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>" ValidationGroup="BanIP"
                                                                                    ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="rangeRow2" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        *
                                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN00001154%>" />
                                                                        :
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_LastIPAddress" runat="server" MaxLength="15" data-label="Last IP Address"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ValidationGroup="BanIP" ControlToValidate="TxBx_LastIPAddress"
                                                                                    ID="RequiredFieldValidator3" Display="None" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_LastIPAddress"
                                                                                    Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>" ValidationGroup="BanIP"
                                                                                    ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                                                            </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="BanIP" 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 %>' />
                                                                        <asp:ValidationSummary ID="VS" ValidationGroup="BanIP" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                                            ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>

                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
