<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Network_ServiceDirector_Datacenter, 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.M0036%></h3>
            </div>
            <div class="body">
                <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">
                                <asp:Button ID="Btn_AddDataCenter" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0001225%>" />
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                    <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_DataCenter" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_DataCenter">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DataCenter" href="#<%= CSB_DataCenter.ClientID%>" aria-expanded="true" aria-controls="SH_DataCenter">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_DataCenter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DataCenter" 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_SrchID" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001221%>" 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_SrchIdentif" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000170%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <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>
                        </ContentTemplate>
                    </ajax:UpdatePanel>
                </asp:Panel>
                <div class="row">
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UP_DataCenters" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" ID="GV_Datacenters" runat="server" AllowSorting="true"
                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                    <Columns>
                                        <asp:TemplateField SortExpression="DataCenterID" HeaderText="<%$ Resources:Content,GN0001221%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ID" runat="server" />
                                            </ItemTemplate>

                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="DCName" HeaderText="<%$ Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Name" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001223%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Image ID="IMG_Location" runat="server" ImageUrl="" />
                                                <asp:Literal ID="Div_Location" runat="server" Text=""></asp:Literal>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001231%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" Visible="false">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Servers" runat="server" Text="<%$ Resources:Content,GN0001231%>" CommandName="show_servers" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink class="btn btn-primary waves-effect" ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>"></asp:HyperLink>
                                                <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_Delete" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="delete_datacenter"></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>
                                <asp:Label ID="Lbl_Noresults" runat="server" Text="<%$ Resources:Content,GN00001375%>" Visible="false" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
