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

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

<%@ Register Src="IPRuleDetails.ascx" TagName="RuleDetail" TagPrefix="UC" %>

<asp:Panel ID="Pnl_Listing" runat="server">
    <asp:Panel ID="Pnl_Operations" runat="server">

        <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body">
                        <div class="clearfix">
                            <asp:Button ID="Btn_Add" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,strAddRule%>" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <br />

    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN0000395%>
                    </h3>
                </div>
                <div class="row p-t-10">
                    <div class="col-xs-12">
                        <div class="col-md-2 col-sm-4 col-xs-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SearchRuleName" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:Label ID="Lbl_SearchRuleName" runat="server" Text="<%$ Resources:Content,DGN1110008 %>" CssClass="form-label"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-4 col-xs-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SearchIPAddress" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:Label ID="Lbl_SearchIPAddress" runat="server" Text="<%$ Resources:Content,GN000174 %>" CssClass="form-label"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-4 col-xs-12" runat="server" id="td_Owner">
                            <div class="form-group form-float">
                                <asp:DropDownList ID="DDL_SearchDisabled" runat="server">
                                    <asp:ListItem Selected="True" Text='<%$ Resources:Content,GN0000934 %>' Value="-1"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,strActive %>' Value="0"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,Disabled %>' Value="1"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-4 col-xs-12" runat="server" id="Div1">
                            <div class="form-group form-float">
                                <asp:DropDownList ID="Ddl_SearchIsStaffOnly" runat="server">
                                    <asp:ListItem Selected="True" Text='<%$ Resources:Content,StrSelectAppliedTo %>' Value="-1"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,StrStaffOnly %>' Value="1"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,StrStaffAndCustomers %>' Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-4 col-xs-12" runat="server" id="Div2">
                            <div class="form-group form-float">
                                <asp:DropDownList ID="Ddl_SearchIsTemporary" runat="server">
                                    <asp:ListItem Selected="True" Text='<%$ Resources:Content,StrIsTimebound %>' Value="-1"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,GN0000004 %>' Value="1"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content,GN0000005 %>' Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <asp:Button ID="Btn_Search" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000391 %>' />
                            &nbsp;
                                                <asp:Button ID="Btn_Clear" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content, String289 %>" Visible="false" />
                        </div>

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


    <div class="row">
        <div class="col-xs-12">
            <asp:GridView ID="GV_Listing" runat="server" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$Resources:Content,GN00001375%>"
                AutoGenerateColumns="false">
                <Columns>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, DGN1110008 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_RuleName" runat="server"></asp:Label>
                            <asp:HiddenField ID="HF_RuleId" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$Resources:Content,SMI677%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_AllowedIPAddresses" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$Resources:Content,StrStaffOnly%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_IsStaffOnly" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$Resources:Content,strStatus%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:LinkButton ID="Lb_Edit" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,GN0000276%>"></asp:LinkButton>
                            <asp:LinkButton ID="Lb_Delete" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,GN0000278%>"></asp:LinkButton>
                            <EM:ConfirmButtonExtender TargetControlID="Lb_Delete" ID="CBE_Delete" runat="server" ConfirmText="<%$Resources:Content,String1040%>">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>

        </div>
    </div>
</asp:Panel>

<UC:RuleDetail ID="RuleDetail1" runat="server" Visible="false"></UC:RuleDetail>
