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

<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <%--<div class="header">
                <h3>
                    <%= Resources.Content.NetworkControlList%>                                                                                                                                 
                </h3>
            </div>--%>
            <div class="body">
                <ajax:UpdatePanel ID="UP_NCLRules" runat="server">
                    <ContentTemplate>
                        <EM:TabContainer ID="TbCtr_NCL" runat="server" OnClientActiveTabChanged="loadTabPanel">

                            <EM:TabPanel ID="Tb_NetworkControlList" runat="server" HeaderText="<%$ Resources:Content,NetworkControlList%>">
                                <ContentTemplate>

                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">

                                        <div class="row" id="Pnl_Listing" runat="server">
                                            <div class="col-xs-12">
                                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                                    <div class="row">
                                                        <div class="panel-group search-panel" id="AS_NCLRulesFilter" role="tablist" aria-multiselectable="true">
                                                            <div class="col-xs-12" role="tab" id="SH_NCLRulesFilter">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_NCLRulesFilter" href="#<%= CSB_NCLRulesFilter.ClientID%>" aria-expanded="true" aria-controls="SH_NCLRulesFilter">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="CSB_NCLRulesFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_NCLRulesFilter" aria-expanded="false">
                                                                        <div class="row">
                                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerDDL">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_CustomerId">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_CustomerID" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_RuleNameFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110008%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_SourceIPFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SourceIP%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_SourcePortFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SourcePort%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_DestinationIPFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DestinationIP%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_DestinationPortFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DestinationPort%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_PriorityFilter" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001300%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_ActionFilter" runat="server">
                                                                                        <asp:ListItem Text="<%$ Resources:Content,PleaseSelectAction %>" Value="-1"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,String171%>" Value="allow"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,Lync032%>" Value="deny"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_DirectionFilter" runat="server">
                                                                                        <asp:ListItem Text="<%$ Resources:Content,PleaseSelectDirection %>" Value="-1"></asp:ListItem>
                                                                                        <asp:ListItem Text="In" Value="in"></asp:ListItem>
                                                                                        <asp:ListItem Text="Out" Value="out"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_ProtocolFilter" runat="server">
                                                                                        <asp:ListItem Text="<%$ Resources:Content,PleaseSelectProtocol %>" Value="-1"></asp:ListItem>
                                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                                        <asp:ListItem Text="TCP" Value="tcp"></asp:ListItem>
                                                                                        <asp:ListItem Text="UDP" Value="udp"></asp:ListItem>
                                                                                        <asp:ListItem Text="ICMP" Value="icmp"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000395%>" />
                                                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>

                                            <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_AddNewNCLRule" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN00001234%>' />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-xs-12">
                                                <div class="clearfix">
                                                    <div class="double-scroll-wrapper1">
                                                        <div>
                                                        </div>
                                                    </div>
                                                    <div class="double-scroll-wrapper2">
                                                        <EM:MPGridView ID="GV_NCLRule" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False"
                                                            Style="width: 2200px;">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, IsEnabled %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="ChBx_IsEnabled" runat="server" Text=" " AutoPostBack="true" OnCheckedChanged="ChBx_IsEnabled_OnCheckedChanged" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Name" HeaderText='<%$ Resources:Content, DGN1110008 %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:HiddenField ID="HF_RuleId" runat="server" />
                                                                        <asp:LinkButton ID="LB_RuleName" CommandName="EditRecord" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.RuleID") %>'
                                                                            runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Priority" HeaderText='<%$ Resources:Content, GN0001300 %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Priority" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, Exh505 %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="LB_Owner" runat="server" Text='<%# Eval("Owner")%>'></asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="CustomerName" HeaderText='<%$ Resources:Content, GN0000850 %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="LB_ClientID" runat="server" Text='<%# Eval("CustomerName")%>'></asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Status" HeaderText='<%$ Resources:Content, Status %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Status" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Action" HeaderText='<%$ Resources:Content, GN0000277 %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Action" runat="server" Text='<%# System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DataBinder.Eval(Container, "DataItem.Action")) %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Direction" HeaderText='<%$ Resources:Content, StrDirection %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Direction" runat="server" Text='<%# System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DataBinder.Eval(Container, "DataItem.Direction")) %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField SortExpression="Protocol" HeaderText='<%$ Resources:Content, SMI0461 %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Protocol" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, SMI1898 %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="Ltl_SourceIP" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, SourcePort %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="Ltl_SourcePort" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, strDestination %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="Ltl_DestinationIP" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, DestinationPort %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="Ltl_DestinationPort" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="LB_Edit" class="btn btn-primary waves-effect" CommandName="EditRecord" runat="server"
                                                                            Text="<%$ Resources:Content,GN0000276%>" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.RuleID") %>' />
                                                                        <asp:LinkButton ID="LB_Remove" class="btn btn-primary waves-effect btnAction" CommandName="RemoveRecord"
                                                                            runat="server" Text="<%$ Resources:Content,GN0000278%>" OnClientClick="return confirm('Are you sure you want to delete this rule?')"
                                                                            CommandArgument='<%# DataBinder.Eval(Container, "DataItem.RuleID") %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <%--PagerTemplate Start--%>
                                                            <PagerTemplate>
                                                                <EM:Pager ID="Pager" runat="server" />
                                                            </PagerTemplate>
                                                            <%--PagerTemplate End--%>
                                                        </EM:MPGridView>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>

                                        <div class="row" id="Pnl_AddEditRule" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,strAddRule%>' EnableViewState="false" />
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row" id="Div_CustomerToAdd" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,GN0000889%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_CustomerToAdd" runat="server" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *
                                                        <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,DGN1110008%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_RuleName" runat="server" />
                                                                    </div>
                                                                </div>

                                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_TxBx_RuleName"
                                                                    ControlToValidate="TxBx_RuleName" ValidationGroup="NCLRule" Display="None"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_Priority" runat="server" visible="false">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,GN0001300%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:Label ID="TxBx_Priority" runat="server" />
                                                                </div>

                                                                <%--<asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_TxBx_Priority"
                                                                    ControlToValidate="TxBx_Priority" ValidationGroup="NCLRule" Display="None"></asp:RequiredFieldValidator>
                                                                <EM:FilteredTextBoxExtender ID="FTE_TxBx_Priority" runat="server" TargetControlID="TxBx_Priority"
                                                                    FilterType="Numbers,Custom" ValidChars="1234567890">
                                                                </EM:FilteredTextBoxExtender>--%>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *
                                                        <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,GN0000277%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Action" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content,String171%>" Value="allow"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,Lync032%>" Value="deny"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *
                                                                <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,StrDirection%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Direction" runat="server" AutoPostBack="true">
                                                                        <asp:ListItem Text="In" Value="in"></asp:ListItem>
                                                                        <asp:ListItem Text="Out" Value="out"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *
                                                                <asp:Literal ID="Literal17" runat="server" Text='<%$ Resources:Content,SMI0461%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Protocol" runat="server">
                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                        <asp:ListItem Text="TCP" Value="tcp"></asp:ListItem>
                                                                        <asp:ListItem Text="UDP" Value="udp"></asp:ListItem>
                                                                        <asp:ListItem Text="ICMP" Value="icmp"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *
                                                                <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,IsEnabled%>' EnableViewState="false"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="ChBx_IsEnabled" runat="server" Text=" "></asp:CheckBox>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="card">
                                                                    <div class="header">
                                                                        <h3>
                                                                            <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,SMI1898%>' EnableViewState="false" />
                                                                        </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='IP' EnableViewState="false"></asp:Literal>:
                                                                            </div>
                                                                            <div class="col-sm-4 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_SourceIPMode" runat="server" AutoPostBack="true">
                                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                                        <asp:ListItem Text="IP" Value="ip"></asp:ListItem>
                                                                                        <asp:ListItem Text="IP Range" Value="iprange"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_SourceIPsMultiSelect" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <EM:AddSelectableSelected ID="UCSourceIPs" runat="server" />
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_SourceIP" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <asp:Repeater ID="Rep_SourceIP" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <asp:HiddenField ID="HF_ID" runat="server" />
                                                                                        <div class="row" id="Div_SourceIPSingle" runat="server">
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourceIPSingle" runat="server" Text='<%$ Resources:Content,GN000174%>' />:
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-4 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourceIPSingle" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemoveSingle" runat="server" CssClass="btnAction"  CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                        <div class="row" id="Div_SourceIPRange" runat="server">
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourceIPStart" runat="server" Text='<%$ Resources:Content,strStartIP%>' />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourceIPStart" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourceIPEnd" runat="server" Text='<%$ Resources:Content,strEndIP%>' EnableViewState="false" />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourceIPEnd" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>

                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemove" CssClass="btnAction"  runat="server"  CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>' ><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <asp:LinkButton ID="btnAdd" CssClass="btnAction"  runat="server" CommandName="Add" CausesValidation="false" ToolTip="<%$ Resources:Content,AddMore%>">
                                                                                                    <span class="plus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </FooterTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>

                                                                        <hr />

                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                *
                                                                                <asp:Literal ID="Literal10" runat="server" Text='Port' EnableViewState="false"></asp:Literal>:
                                                                            </div>

                                                                            <div class="col-sm-4 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_SourcePortMode" runat="server" AutoPostBack="true">
                                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                                        <asp:ListItem Text="Port" Value="port"></asp:ListItem>
                                                                                        <asp:ListItem Text="Port Range" Value="portrange"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_SourcePort" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <asp:Repeater ID="Rep_SourcePort" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <asp:HiddenField ID="HF_ID" runat="server" />
                                                                                        <div class="row" id="Div_SourcePortSingle" runat="server">
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourcePortSingle" runat="server" Text='<%$ Resources:Content,GN0000565%>' />:
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-4 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourcePortSingle" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemoveSingle" runat="server" CssClass="btnAction"  CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>' ><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                        <div class="row" id="Div_SourcePortRange" runat="server">
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourcePortStart" runat="server" Text='<%$ Resources:Content,PortStart%>' />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourcePortStart" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_SourcePortEnd" runat="server" Text='<%$ Resources:Content,PortEnd%>' EnableViewState="false" />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_SourcePortEnd" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>

                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemove" CssClass="btnAction"  runat="server" CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <asp:LinkButton ID="btnAdd" CssClass="btnAction"  runat="server" CommandName="Add" CausesValidation="false" ToolTip="<%$ Resources:Content,AddMore%>">
                                                                                                    <span class="plus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </FooterTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="card">
                                                                    <div class="header">
                                                                        <h3>
                                                                            <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,strDestination%>' EnableViewState="false" />
                                                                        </h3>
                                                                    </div>
                                                                    <div class="body">
                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                *
                                                                                <asp:Literal ID="Literal14" runat="server" Text='IP' EnableViewState="false"></asp:Literal>:
                                                                            </div>
                                                                            <div class="col-sm-4 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_DestinationIPMode" runat="server" AutoPostBack="true">
                                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                                        <asp:ListItem Text="IP" Value="ip"></asp:ListItem>
                                                                                        <asp:ListItem Text="IP Range" Value="iprange"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_DestinationIPsMultiSelect" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <EM:AddSelectableSelected ID="UCDestinationIPs" runat="server" />
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_DestinationIP" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <asp:Repeater ID="Rep_DestinationIP" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <asp:HiddenField ID="HF_ID" runat="server" />
                                                                                        <div class="row" id="Div_DestinationIPSingle" runat="server">
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationIPSingle" runat="server" Text='<%$ Resources:Content,GN000174%>' />:
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-4 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationIPSingle" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemoveSingle" runat="server" CssClass="btnAction"  CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                        <div class="row" id="Div_DestinationIPRange" runat="server">
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationIPStart" runat="server" Text='<%$ Resources:Content,strStartIP%>' />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationIPStart" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationIPEnd" runat="server" Text='<%$ Resources:Content,strEndIP%>' EnableViewState="false" />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationIPEnd" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>

                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemove" runat="server" CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <asp:LinkButton ID="btnAdd" CssClass="btnAction"  runat="server" CommandName="Add" CausesValidation="false" ToolTip="<%$ Resources:Content,AddMore%>">
                                                                                                    <span class="plus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </FooterTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>

                                                                        <hr />

                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                *
                                                                                <asp:Literal ID="Literal16" runat="server" Text='Port' EnableViewState="false"></asp:Literal>:
                                                                            </div>

                                                                            <div class="col-sm-4 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_DestinationPortMode" runat="server" AutoPostBack="true">
                                                                                        <asp:ListItem Text="Any" Value="any"></asp:ListItem>
                                                                                        <asp:ListItem Text="Port" Value="port"></asp:ListItem>
                                                                                        <asp:ListItem Text="Port Range" Value="portrange"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row" id="Div_DestinationPort" runat="server" visible="false">
                                                                            <div class="col-xs-12">
                                                                                <asp:Repeater ID="Rep_DestinationPort" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <asp:HiddenField ID="HF_ID" runat="server" />
                                                                                        <div class="row" id="Div_DestinationPortSingle" runat="server">
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationPortSingle" runat="server" Text='<%$ Resources:Content,GN0000565%>' />:
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-4 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationPortSingle" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemoveSingle" runat="server" CssClass="btnAction"  CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                        <div class="row" id="Div_DestinationPortRange" runat="server">
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationPortStart" runat="server" Text='<%$ Resources:Content,PortStart%>' />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationPortStart" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <label>
                                                                                                    <asp:Literal ID="Ltrl_DestinationPortEnd" runat="server" Text='<%$ Resources:Content,PortEnd%>' EnableViewState="false" />:                                                                                                    
                                                                                                </label>
                                                                                            </div>
                                                                                            <div class="col-sm-3 col-xs-12">
                                                                                                <div class="form-group">
                                                                                                    <div class="form-line">
                                                                                                        <asp:TextBox ID="TxBx_DestinationPortEnd" runat="server"></asp:TextBox>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>

                                                                                            <div class="col-sm-2 col-xs-12">
                                                                                                <asp:LinkButton ID="btnRemove" CssClass="btnAction"  runat="server" CommandName="Remove" CausesValidation="false" ToolTip="<%$ Resources:Content,GN0000278%>"
                                                                                                    CommandArgument='<%# Container.ItemIndex %>'><span class="minus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <asp:LinkButton ID="btnAdd" CssClass="btnAction"  runat="server" CommandName="Add" CausesValidation="false" ToolTip="<%$ Resources:Content,AddMore%>">
                                                                                                    <span class="plus-icon material-icons font-bold md-36"></span></asp:LinkButton>
                                                                                            </div>
                                                                                        </div>
                                                                                    </FooterTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:ValidationSummary ID="VS_NCLRule" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="NCLRule" />
                                                                <asp:Button ID="Btn_SaveRule" runat="server" CssClass="btn btn-primary waves-effect btnAction" ValidationGroup="NCLRule"
                                                                    Text="<%$ Resources:Content, GN0000281%>" />
                                                                <asp:Button ID="Btn_CancelRule" runat="server" CssClass="btn btn-primary waves-effect" CausesValidation="false"
                                                                    Text="<%$ Resources:Content,GN0000572%>" />
                                                            </div>
                                                        </div>
                                                    </div>

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

    <%--<script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_Priority.ClientID%>');
    </script>--%>
</asp:Content>

