<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Network_IP_Addresses_IPAddress, 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">

    <ajax:UpdatePanel ID="UpdPnl_IP" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <%--<div class="header">
                        <h2>
                            <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
                    </div>--%>
                    <div class="body">
                        <EM:TabContainer ID="TbCntr_IPAddresses" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_IPPools" runat="server" HeaderText="<%$ Resources:Content,GN000196%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                                        <%--search box start--%>
                                        <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                                            <div class="row">
                                                <div class="panel-group search-panel" id="AS_IPPools" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_IPPools">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_IPPools" href="#<%= CSB_IPPools.ClientID%>" aria-expanded="true" aria-controls="SH_IPPools">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_IPPools" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_IPPools" 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="TB_SrchIdentif" runat="server" ValidationGroup="Search"></asp:TextBox>
                                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000187%>" 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="TB_SrchIPAddress" runat="server" ValidationGroup="Search"></asp:TextBox>
                                                                                <asp:RegularExpressionValidator ID="REV_SrchIP" runat="server" ControlToValidate="TB_SrchIPAddress" Display="None" SetFocusOnError="true"
                                                                                    ValidationGroup="Search" ValidationExpression="\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"></asp:RegularExpressionValidator>
                                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000174%>" 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_SrchPackageType" runat="server" ValidationGroup="Search" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button class="btn btn-primary waves-effect" ValidationGroup="Search" ID="Btn_Search" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_Clear" Visible="false" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                        <asp:ValidationSummary ID="VS_Search" runat="server" ShowMessageBox="True"
                                            ShowSummary="False" HeaderText='<%$ Resources:Content,String176%>' ValidationGroup="Search" />
                                        <%--operations box start--%>
                                        <div class="row">
                                            <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="Btn_AddIPPool" runat="server" Text="<%$ Resources:Content,GN0001105%>" class="btn btn-primary waves-effect btnAction" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <asp:GridView EmptyDataText="<%$ Resources:Content,GN00001375%>" CssClass="table table-bordered table-striped table-hover" ID="GV_IPPools" runat="server" AutoGenerateColumns="false">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000187%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_Identification" runat="server"></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000188%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_SGMember" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000198%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" Visible="false">
                                                            <ItemTemplate>
                                                                <div id="Div_Alloctype" runat="server"></div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000114%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Total" runat="server"></div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001100%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Leased" runat="server"></div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,L00217%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Excluded" runat="server"></div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000195%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Enabled" runat="server"></div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Delete" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,GN0000377%>" CommandName="Remove"></asp:LinkButton>

                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>" TargetControlID="LB_Delete">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>

                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_IPAddresses" runat="server" HeaderText="<%$ Resources:Content,GN0000186%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <div id="Div_IPAddresses" runat="server">
                                            <%--Search Box--%>
                                            <asp:Panel ID="Pnl_Search_IPAddress" runat="server" DefaultButton="Btn_IPAdd_Srch">
                                                <div class="row">
                                                    <div class="panel-group search-panel" id="AS_IPAddress" role="tablist" aria-multiselectable="true">
                                                        <div class="col-xs-12" role="tab" id="SH_IPAddress">
                                                            <div class="card">
                                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_IPAddress" href="#<%= CSB_IPAddress.ClientID%>" aria-expanded="true" aria-controls="SH_IPAddress">
                                                                    <h3>
                                                                        <%= Resources.Content.GN0000395%>
                                                                    </h3>
                                                                </div>
                                                                <div id="CSB_IPAddress" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_IPAddress" 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="TB_IPAdd_IPAddress" runat="server"></asp:TextBox>
                                                                                    <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000174%>" 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_IPAdd_Status" runat="server">
                                                                                    <asp:ListItem Text="<%$ Resources:Content,SelectStatus%>" Value=""></asp:ListItem>
                                                                                    <asp:ListItem Text="<%$ Resources:Content,GN0001100%>" Value="1"></asp:ListItem>
                                                                                    <asp:ListItem Text="<%$ Resources:Content,GN0001101%>" Value="0"></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_IPAdd_AllocType" runat="server">
                                                                                </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_IPAdd_PoolName" runat="server">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="col-xs-12">
                                                                            <div class="form-group form-float">
                                                                                <asp:Button ID="Btn_IPAdd_Srch" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                                <asp:Button ID="Btn_Clear_IPAddress" 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 class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView EmptyDataText="<%$ Resources:Content,GN00001375%>" CssClass="table table-bordered table-striped table-hover" ID="GV_IPAddresses" runat="server" AutoGenerateColumns="false">

                                                        <Columns>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN000174%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                                <ItemTemplate>
                                                                    <asp:HyperLink ID="LB_IPAddress" runat="server"></asp:HyperLink>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <div id="Div_Status" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001102%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <asp:HyperLink ID="LB_LeasedTo" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000721%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <div id="Div_LastLeased" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <%--PagerTemplate Start--%>
                                                        <PagerTemplate>
                                                            <EM:Pager ID="Pager2" runat="server" />
                                                        </PagerTemplate>
                                                        <%--PagerTemplate End--%>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
