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


<asp:Panel ID="Pnl_Listing_ServerServicesStats" runat="server" DefaultButton="Btn_ApplyFilter_ServerServicesStats">

    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_ServerServicesStats">
        <div class="panel-group search-panel" id="AS_ServerServicesStats" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_ServerServicesStats">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ServerServicesStats" href="#<%= CSB_ServerServicesStats.ClientID%>" aria-expanded="true" aria-controls="SH_ServerServicesStats">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_ServerServicesStats" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ServerServicesStats" aria-expanded="false">
                        <div class="row">

                            <ajax:UpdatePanel ID="UP_ServerGroups" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
                                <ContentTemplate>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_ServerGroups" runat="server" AutoPostBack="true">
                                            </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_Server" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                </ContentTemplate>
                            </ajax:UpdatePanel>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:ValidationSummary ID="VS_SearchServerServicesStats" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="SearchServerServicesStats" />
                                    <asp:Button ID="Btn_ApplyFilter_ServerServicesStats" ValidationGroup="SearchServerServicesStats" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearFilter_ServerServicesStats" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <div class="row">
        <div class="col-xs-12">
            <div class="double-scroll-wrapper1">
                <div>
                </div>
            </div>

            <div class="double-scroll-wrapper2">
                <asp:GridView ID="GV_Servers" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderStyle-CssClass="col-xs-4" SortExpression="ServerGroupName"
                            HeaderText='<%$ Resources:Content, strServerGroup %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_ServerGroupName" runat="server" Text="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-xs-4" SortExpression="ServerName"
                            HeaderText='<%$ Resources:Content, ServerName %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_ServerName" runat="server" Text="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="IP"
                            HeaderText='<%$ Resources:Content, IP %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_IP" runat="server" Text="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <asp:LinkButton ID="Btn_ViewServices"
                                    runat="server"
                                    Text="<%$Resources:Content,View %>"
                                    CommandArgument='<%# DataBinder.Eval(Container.DataItem, "VPSServerGroupId") &  "|" & DataBinder.Eval(Container.DataItem, "VPSServerId") & "|" & DataBinder.Eval(Container.DataItem, "IP") & "|" & DataBinder.Eval(Container.DataItem, "ServerGroupName")& "|" & DataBinder.Eval(Container.DataItem, "ReferenceID")%>'
                                    CommandName="ViewServices"
                                    CssClass="btn btn-primary"></asp:LinkButton>

                                <asp:LinkButton ID="Btn_Update"
                                    runat="server"
                                    Text="<%$Resources:Content,GN0000654 %>"
                                    CommandArgument='<%# DataBinder.Eval(Container.DataItem, "VPSServerGroupId") & "|" & DataBinder.Eval(Container.DataItem, "VPSServerId") %>'
                                    CommandName="UpdateServices"
                                    CssClass="btn btn-primary btnAction"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerTemplate>
                        <EM:Pager ID="Pager1" runat="server" />
                    </PagerTemplate>
                </asp:GridView>
            </div>
        </div>
    </div>
    <asp:Button ID="Btn_Dummy2" Style="display: none" runat="server" />
    <asp:Panel ID="Pnl_Services" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
        <ajax:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
            <ContentTemplate>
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left pop-up-server-services">
                                <asp:Label ID="Label1" runat="server" CssClass="row-label"><%= Resources.Content.strServerGroup %>:</asp:Label>
                                <asp:Label ID="lbl_ServicesHeader_SG" runat="server"></asp:Label>
                                &nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;
                                <asp:Label ID="Label2" runat="server" CssClass="row-label"><%= Resources.Content.DGN1110254 %>:</asp:Label>
                                <asp:Label ID="lbl_ServicesHeader_Server" runat="server"></asp:Label>
                                &nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;
                                <asp:Label ID="Label3" runat="server" CssClass="row-label"><%= Resources.Content.IP %>:</asp:Label>
                                <asp:Label ID="lbl_ServicesHeader_IP" runat="server"></asp:Label>
                            </h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_Services.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">

                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:GridView ID="GV_Services" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="false"
                                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-7" SortExpression="DisplayName"
                                                HeaderText='<%$ Resources:Content,DGN1119975 %>'>
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_ServiceName" runat="server" Text="" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                           <%-- <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="RequiredService"
                                                HeaderText='<%$ Resources:Content,RequiredService %>'>
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_RequiredService" runat="server" Text="" />
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                           <%-- <asp:TemplateField SortExpression="Alert" HeaderText='<%$ Resources:Content, GN0000320 %>'
                                                HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <div id="Div_Alert" runat="server" style="height: 30px;" />
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="Status"
                                                HeaderText='<%$ Resources:Content, Status %>'>
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Status" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Status") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-3" SortExpression="TimeUpdated"
                                                HeaderText='<%$ Resources:Content, GN0000779 %>'>
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Time" runat="server" Text="" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager2" runat="server" />
                                        </PagerTemplate>
                                    </asp:GridView>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button class="btn btn-primary waves-effect" ID="Btn_Cancel2" runat="server" Text='<%$ Resources:Content,GN000150%>' />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </ajax:UpdatePanel>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_Services" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_Services" CancelControlID="Btn_Cancel2" TargetControlID="Btn_Dummy2">
    </EM:ModalPopupExtender>
</asp:Panel>

