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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.IPLD004%>  </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.IPLD001%>  </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-4 col-xs-10 row-label">
                                        <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,IPLDForEmployees%>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-1 col-xs-2">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_IPLockEnable" runat="server" AutoPostBack="true" Text=" " />
                                        </div>
                                    </div>
                                    <%--<div class="col-sm-7 col-xs-12">
                                        <asp:Button CssClass="btn btn-primary" ID="BTN_Save" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000281 %>' CausesValidation="false" />
                                    </div>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div id="Div_Enabled" runat="server">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.IPLD002%>  </h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            *<asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,IPLD003%>' EnableViewState="false" />:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_IPAddress" Text="" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_IPAddress" runat="server" ControlToValidate="TxBx_IPAddress"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="IPLock"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RX_IPAddress" runat="server" ErrorMessage='<%$Resources:Content,String176%>'
                                                        SetFocusOnError="True" ControlToValidate="TxBx_IPAddress" ValidationGroup="IPLock"
                                                        ValidationExpression="<%$ Resources:Content,ValidateIP %>"
                                                        Display="None"></asp:RegularExpressionValidator>
                                                    <asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowMessageBox="true"
                                                        ShowSummary="false" ValidationGroup="IPLock" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-6 col-xs-12">
                                            <asp:Button CssClass="btn btn-primary" ID="Btn_IPSave" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000659 %>' ValidationGroup="IPLock" CausesValidation="true" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--Start Search box--%>
                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                        <div class="row">
                            <div class="panel-group search-panel" id="AS_IPAddresses" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_IPAddresses">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_IPAddresses" href="#<%= CSB_IPAddresses.ClientID %>" aria-expanded="true" aria-controls="SH_IPAddresses">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_IPAddresses" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_IPAddresses" aria-expanded="false">
                                            <div class="row">
                                                <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_IPSearch" runat="server" />
                                                            <asp:Label ID="Div2" runat="server" Text='<%$ Resources:Content,GN000174 %>' EnableViewState="false" CssClass="form-label" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button CssClass="btn btn-primary" ID="Btn_Filter" SkinID="filterButton" runat="server" Text='<%$ Resources:Content,GN0000395 %>' CausesValidation="false" />
                                                        <asp:Button CssClass="btn btn-primary" ID="Btn_clear" SkinID="filterButton" runat="server" Text='<%$ Resources:Content,String289 %>' Visible="false" CausesValidation="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <%--End search box--%>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.IPLD003%>  </h3>
                                </div>
                                <div class="body">
                                    <asp:GridView ID="GV_IPAddress" CssClass="table table-bordered table-striped table-hover table-responsive" AllowSorting="true" AllowPaging="true"
                                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                        <Columns>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content, IPLD003 %>' HeaderStyle-CssClass="col-xs-9">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_IP" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:LinkButton CssClass="btn btn-primary btnAction" ID="LB_Remove" SkinID="linkButtonRemove" CommandName="RemoveIP" CausesValidation="false"
                                                        runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                        TargetControlID="LB_Remove" runat="server">
                                                    </EM:ConfirmButtonExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
