<%@ control language="VB" autoeventwireup="false" inherits="RCC_VPS_CC_IPPool, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>



<div class="col-xs-12 Div_OpsRow" id="Tbl_Operation" runat="server">
    <div class="row">
        <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 class="btn btn-primary waves-effect btnAction" ID="Btn_AddIP" runat="server" Text="<%$ Resources:Content,HVServer118 %>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="col-xs-12" id="Tbl_Listing" runat="server">
    <div class="card">
        <div class="heading">
            <h3>
                <asp:Literal ID="Literal1" Text="<%$ Resources:Content,HVServer28%>" runat="server" />
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Literal6" Text="<%$ Resources:Content,HVServer14%>" runat="server"
                        EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Label ID="Lbl_IPsAllocated" runat="server"></asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Literal3" Text="<%$ Resources:Content,GN000189%>" runat="server"
                        EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Label ID="Lbl_Subnet" runat="server"></asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Literal4" Text="<%$ Resources:Content,GN0000854%>" runat="server"
                        EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Label ID="Lbl_Gateway" runat="server"></asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Literal5" Text="<%$ Resources:Content,HVServer32%>" runat="server"
                        EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Label ID="Lbl_VLanId" runat="server"></asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <EM:MPGridView ID="GV_IPPool" CurrentSortExpression="IP" CurrentSortDirection="Asc" CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="true"
                        AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false">

                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content, GN000174 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="IP">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_IPAddress" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IP") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content, String385 %>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                <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 class="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.IPId") %>'
                                        ID="LB_Remove" CommandName="RemoveIP" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                    <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,SPT002367%>"
                                        TargetControlID="LB_Remove" runat="server">
                                    </EM:ConfirmButtonExtender>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager" runat="server" />
                        </PagerTemplate>
                    </EM:MPGridView>
                </div>
            </div>
        </div>
    </div>


</div>

<asp:Panel ID="Pnl_AddIP" runat="server" Visible="false">
    <div class="card">
        <div class="heading">
            <h3>
                <asp:Literal ID="Literal8" Text="<%$ Resources:Content,GN000194%>" runat="server" />
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources: Content, DGN1110260 %>'></asp:Literal>:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:ListBox ID="LBX_IP" runat="server" SelectionMode="Multiple" Rows="10"></asp:ListBox>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12"></div>
                <div class="col-xs-12">
                    <asp:Button class="btn btn-primary waves-effect btnAction" ValidationGroup="addip" ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>" />                        
                    <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="addip" HeaderText='<%$ Resources:Content,EM000001%>' runat="server" ShowSummary="false" ShowMessageBox="true" />                        
                    <asp:Button class="btn btn-primary waves-effect" ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
