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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<%@ Register Src="~/PCC/System/CC/HealthConfiguration.ascx" TagName="HealthConfiguration" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/HealthDatabases.ascx" TagName="HealthDatabases" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/HealthLicenses.ascx" TagName="HealthLicenses" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/HealthSettings.ascx" TagName="HealthSettings" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/HealthSubCompliance.ascx" TagName="HealthSubCompliance" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/PanelConfigReport.ascx" TagName="PanelConfigReport" TagPrefix="UC" %>
<%@ Register Src="~/PCC/System/CC/HealthExport.ascx" TagName="HealthExport" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional" RenderMode="Block">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.HealthReport %>
                        </h3>
                    </div>
                    <div class="body">

                        <ajax:TabContainer ID="TbCntr_Servers" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <ajax:TabPanel ID="Tab_ControlServers" runat="server" HeaderText="<%$ Resources:Content,ControlServer %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Panel ID="Pnl_FilterControlServer" runat="server" DefaultButton="Btn_FilterControlServer">
                                                    <div class="row">
                                                        <div class="panel-group search-panel" id="AS_ControlServer" role="tablist" aria-multiselectable="true">
                                                            <div class="col-xs-12" role="tab" id="SH_ControlServer">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ControlServer" href="#<%= CSB_ControlServer.ClientID%>" aria-expanded="true" aria-controls="SH_ControlServer">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="CSB_ControlServer" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ControlServer" aria-expanded="false">
                                                                        <div class="row">
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <label class="row-label display-date-label">
                                                                                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,AtDate%>" EnableViewState="false" />:
                                                                                </label>
                                                                                <div class="form-group display-date-input">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_AtDateCS" runat="server"></asp:TextBox>
                                                                                    </div>
                                                                                </div>

                                                                                <i runat="server" id="A_AtDateCS" class="material-icons icon-calendar col-calendar"></i>
                                                                                <ajax:CalendarExtender ID="CE_AtDateCS" runat="server" TargetControlID="TxBx_AtDateCS"
                                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_AtDateCS" CssClass="date__calendar">
                                                                                </ajax:CalendarExtender>
                                                                            </div>

                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_MPServersCS" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_ServerRoleCS" runat="server">
                                                                                        <asp:ListItem Text='<%$Resources:Content,SelectServerRole %>' Value="-1" Selected="True"></asp:ListItem>
                                                                                        <asp:ListItem Text='<%$Resources:Content,SPT002316 %>' Value="primary"></asp:ListItem>
                                                                                        <asp:ListItem Text='<%$Resources:Content,SPT002317 %>' Value="secondary"></asp:ListItem>
                                                                                        <%--<asp:ListItem Text='<%$Resources:Content,SMI5977 %>' Value="remote"></asp:ListItem>--%>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:Button ID="Btn_FilterControlServer" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                                    <asp:Button ID="Btn_ClearControlServer" 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>

                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                                                        <asp:Repeater ID="Rep_ControlServers" runat="server">
                                                            <ItemTemplate>
                                                                <div class="col-xs-12">
                                                                    <div class="panel panel-primary" id="AccordionPane1" runat="server">
                                                                        <div class="panel panel-heading" role="tab" id="PanelHeading" runat="server">
                                                                            <h2 class="panel-title">
                                                                                <a role="button" id="A_Head" runat="server" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne"
                                                                                    aria-expanded="false" aria-controls="collapseOne" class="">
                                                                                    <div id="Ltrl_ServerName" runat="server" />
                                                                                </a>
                                                                            </h2>
                                                                        </div>

                                                                        <div id="collapseOne" runat="server" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="PanelHeading">
                                                                            <div class="panel-body">
                                                                                <input id="Txt" runat="server" type="text" style='display: none;' class='hfclass2' />

                                                                                <asp:Repeater ID="Rep_ControlServerLogs" runat="server"
                                                                                    OnItemDataBound="Rep_ControlServerLogs_ItemDataBound" OnItemCommand="Rep_ControlServerLogs_ItemCommand">
                                                                                    <ItemTemplate>
                                                                                        <div class="col-sm-4 col-xs-12">
                                                                                            <div class="panel panel-primary" id="ChildAccordionPane1" runat="server">
                                                                                                <div class="panel panel-heading" role="tab" id="ChildPanelHeading" runat="server">
                                                                                                    <h2 class="panel-title">
                                                                                                        <a role="button" id="A_ChildHead" runat="server" data-toggle="collapse" data-parent="#accordion_1" href="#ChildcollapseOne"
                                                                                                            aria-expanded="false" aria-controls="ChildcollapseOne" class="">
                                                                                                            <div id="Ltrl_LogDate" runat="server" />
                                                                                                        </a>
                                                                                                    </h2>
                                                                                                </div>
                                                                                                <div id="ChildcollapseOne" runat="server" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ChildPanelHeading">
                                                                                                    <asp:HiddenField ID="HF_RecordId" runat="server" />
                                                                                                    <asp:HiddenField ID="HF_MPServerId" runat="server" />
                                                                                                    <asp:HiddenField ID="HF_IP" runat="server" />
                                                                                                    <%--<asp:LinkButton ID="Lbtn_ServerName" runat="server" CssClass="card-as-link"
                                                                                                        CausesValidation="false" CommandName="serverdetails">--%>
                                                                                                    <div class="card">
                                                                                                        <div class="body">
                                                                                                            <table class="table noborders small">
                                                                                                                <tbody>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12 row-label">
                                                                                                                            <strong><%# Resources.Content.DGN1110499 & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <asp:Label ID="Lbl_ServerRole" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.strDomain & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <%# DataBinder.Eval(Container, "DataItem.Domain") %>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">

                                                                                                                            <strong><%# Resources.Content.GN00001560 & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <%# DataBinder.Eval(Container, "DataItem.OSName") & " (" & DataBinder.Eval(Container, "DataItem.OSVersion") & ")" %>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.GN00001101 & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <asp:Label ID="Lbl_MPVersion" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MPVersion") %>'></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.InstallPath & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <%# DataBinder.Eval(Container, "DataItem.InstallPath") %>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr id="TR_InstallURL" runat="server">
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.InstallUrl & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <%# DataBinder.Eval(Container, "DataItem.InstallURL") %>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.AdvancedLogging & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <%# DataBinder.Eval(Container, "DataItem.AdvancedLoggingEnabled") %>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.GN0001115 & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <asp:Label ID="Lbl_CPUPercentage" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                            <strong><%# Resources.Content.RAMUsage & ":" %></strong>
                                                                                                                        </td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <asp:Label ID="Lbl_RAMPercentage" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="col-md-5 col-sm-6 col-xs-12"></td>
                                                                                                                        <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                            <asp:LinkButton ID="Lbtn_ServerName2" runat="server" CssClass="pull-right"
                                                                                                                                Text="<%$ Resources:Content,strDetails %>" CausesValidation="false" CommandName="serverdetails"></asp:LinkButton>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </tbody>
                                                                                                            </table>
                                                                                                        </div>
                                                                                                    </div>
                                                                                                    <%--</asp:LinkButton>--%>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </ItemTemplate>
                                                            <FooterTemplate>
                                                                <div class="col-xs-12" id="trEmpty" runat="server" visible="false">
                                                                    <table class="table table-bordered table-striped table-hover table-layout-fixed">
                                                                        <tr>
                                                                            <td>
                                                                                <%= Resources.Content.GN00001375 %>                                                                                                                                                           
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </FooterTemplate>
                                                        </asp:Repeater>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_RemoteServers" runat="server" HeaderText="<%$ Resources:Content,SMI5977 %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Panel ID="Pnl_FilterRemoteServer" runat="server" DefaultButton="Btn_FilterRemoteServer">
                                                    <div class="row">
                                                        <div class="panel-group search-panel" id="AS_RemoteServer" role="tablist" aria-multiselectable="true">
                                                            <div class="col-xs-12" role="tab" id="SH_RemoteServer">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_RemoteServer" href="#<%= CSB_RemoteServer.ClientID%>" aria-expanded="true" aria-controls="SH_RemoteServer">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="CSB_RemoteServer" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_RemoteServer" aria-expanded="false">
                                                                        <div class="row">
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <label class="row-label display-date-label">
                                                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,AtDate%>" EnableViewState="false" />:
                                                                                </label>
                                                                                <div class="form-group display-date-input">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_AtDateRS" runat="server"></asp:TextBox>
                                                                                    </div>
                                                                                </div>

                                                                                <i runat="server" id="A_AtDateRS" class="material-icons icon-calendar col-calendar"></i>
                                                                                <ajax:CalendarExtender ID="CE_AtDateRS" runat="server" TargetControlID="TxBx_AtDateRS"
                                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_AtDateRS" CssClass="date__calendar">
                                                                                </ajax:CalendarExtender>
                                                                            </div>

                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:DropDownList ID="DDL_MPServersRS" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:Button ID="Btn_FilterRemoteServer" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                                    <asp:Button ID="Btn_ClearRemoteServer" 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>

                                            <div class="">
                                                <div class="panel-group" id="accordion_2" role="tablist" aria-multiselectable="true">
                                                    <asp:Repeater ID="Rep_RemoteServers" runat="server">
                                                        <ItemTemplate>
                                                            <div class="col-xs-12">
                                                                <div class="panel panel-primary" id="AccordionPane1" runat="server">
                                                                    <div class="panel panel-heading" role="tab" id="PanelHeading" runat="server">
                                                                        <h2 class="panel-title">
                                                                            <a role="button" id="A_Head" runat="server" data-toggle="collapse" data-parent="#accordion_2" href="#collapseOne"
                                                                                aria-expanded="false" aria-controls="collapseOne" class="">
                                                                                <div id="Ltrl_ServerName" runat="server" />
                                                                            </a>
                                                                        </h2>
                                                                    </div>

                                                                    <div id="collapseOne" runat="server" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="PanelHeading">
                                                                        <div class="panel-body">
                                                                            <input id="Txt" runat="server" type="text" style='display: none;' class='hfclass2' />

                                                                            <asp:Repeater ID="Rep_RemoteServerLogs" runat="server"
                                                                                OnItemDataBound="Rep_RemoteServerLogs_ItemDataBound" OnItemCommand="Rep_RemoteServerLogs_ItemCommand">
                                                                                <ItemTemplate>
                                                                                    <div class="col-sm-4 col-xs-12">
                                                                                        <div class="panel panel-primary" id="ChildAccordionPane1" runat="server">
                                                                                            <div class="panel panel-heading" role="tab" id="ChildPanelHeading" runat="server">
                                                                                                <h2 class="panel-title">
                                                                                                    <a role="button" id="A_ChildHead" runat="server" data-toggle="collapse" data-parent="#accordion_1" href="#ChildcollapseOne"
                                                                                                        aria-expanded="false" aria-controls="ChildcollapseOne" class="">
                                                                                                        <div id="Ltrl_LogDate" runat="server" />
                                                                                                    </a>
                                                                                                </h2>
                                                                                            </div>
                                                                                            <div id="ChildcollapseOne" runat="server" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ChildPanelHeading">
                                                                                                <asp:HiddenField ID="HF_RecordId" runat="server" />
                                                                                                <asp:HiddenField ID="HF_MPServerId" runat="server" />
                                                                                                <asp:HiddenField ID="HF_IP" runat="server" />
                                                                                                <%--<asp:LinkButton ID="Lbtn_RServerName" runat="server" CssClass="card-as-link"
                                                                                                    CausesValidation="false" CommandName="rserverdetails">--%>
                                                                                                <div class="card">
                                                                                                    <div class="body">
                                                                                                        <table class="table noborders small">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong>
                                                                                                                            <asp:Label ID="Label3" runat="server"
                                                                                                                                EnableViewState="false" Text='<%$ Resources:Content,strDomain%>'></asp:Label>
                                                                                                                            :</strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <%# DataBinder.Eval(Container, "DataItem.Domain") %>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong>
                                                                                                                            <asp:Label ID="Label5" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN00001560%>'></asp:Label>
                                                                                                                            :</strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <%# DataBinder.Eval(Container, "DataItem.OSName") & " (" & DataBinder.Eval(Container, "DataItem.OSVersion") & ")" %>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong><%# Resources.Content.GN00001101 & ":" %></strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <asp:Label ID="Lbl_MPVersion" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MPVersion") %>'></asp:Label>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong><%# Resources.Content.InstallPath & ":" %></strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <%# DataBinder.Eval(Container, "DataItem.InstallPath") %>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong><%# Resources.Content.AdvancedLogging & ":" %></strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <%# DataBinder.Eval(Container, "DataItem.AdvancedLoggingEnabled") %>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong><%# Resources.Content.GN0001115 & ":" %></strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <asp:Label ID="Lbl_CPUPercentage" runat="server"></asp:Label>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12">
                                                                                                                        <strong><%# Resources.Content.RAMUsage & ":" %></strong>
                                                                                                                    </td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <asp:Label ID="Lbl_RAMPercentage" runat="server"></asp:Label>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="col-md-5 col-sm-6 col-xs-12"></td>
                                                                                                                    <td class="col-md-7 col-sm-6 col-xs-12">
                                                                                                                        <asp:LinkButton ID="Lbtn_RServerName2" runat="server" CssClass="pull-right"
                                                                                                                            Text="<%$ Resources:Content,strDetails %>" CausesValidation="false" CommandName="rserverdetails"></asp:LinkButton>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </div>
                                                                                                </div>
                                                                                                <%--</asp:LinkButton>--%>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </ItemTemplate>
                                                                            </asp:Repeater>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <div class="col-xs-12" id="trEmpty" runat="server" visible="false">
                                                                <table class="table table-bordered table-striped table-hover table-layout-fixed">
                                                                    <tr>
                                                                        <td>
                                                                            <%= Resources.Content.GN00001375 %>                                                                                                                                                           
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </FooterTemplate>
                                                    </asp:Repeater>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_ServerDetails" runat="server" HeaderText="<%$ Resources:Content,ServerDetails%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-xs-12 displayInlineBlock">
                                                <h3>
                                                    <div id="lbl_ServerDetailsFor" runat="server" />
                                                </h3>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="products-step">
                                                    <span id="div_General" runat="server" nowrap="true" class="label label-success">
                                                        <asp:LinkButton ID="lb_General" runat="server" Text='<%$ Resources:Content, GN000183 %>' />
                                                    </span>
                                                    <span id="div_Services" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="lb_Services" runat="server" Text='<%$ Resources:Content, MachServices %>' />
                                                    </span>
                                                    <span id="div_SubCompliance" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="lb_SubCompliance" runat="server" Text='<%$ Resources:Content, WebSettings %>' />
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <asp:Panel ID="Pnl_ServerStats" runat="server" CssClass="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-md-4 col-sm-6 col-xs-12" id="div-general-info">
                                                                <h3><%= Resources.Content.GeneralInformation %></h3>
                                                                <hr />
                                                                <div class="row">
                                                                    <span class="col-xs-5 row-label">
                                                                        <asp:Literal ID="Ltrl123" runat="server" Text="<% $Resources:Content,GN00001560 %>"></asp:Literal>:</span>
                                                                    <span id="general-info-os" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl124" runat="server" Text="<% $Resources:Content,GN00001101 %>"></asp:Literal>:</span>
                                                                    <span id="general-info-os-version" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row" id="general-info-workgroup-main">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl125" runat="server" Text="<% $Resources:Content,WorkGroup %>"></asp:Literal>:</span>
                                                                    <span id="general-info-workgroup" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl126" runat="server" Text="<% $Resources:Content,strDomain %>"></asp:Literal>:</span>
                                                                    <span id="general-info-domain" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl127" runat="server" Text="<% $Resources:Content,InstallPath %>"></asp:Literal>:</span>
                                                                    <span id="general-info-install-path" class="col-xs-6"></span>
                                                                </div>

                                                                <% If Me.ViewState("ServerRole").ToString().ToLower() <> "remote" Then %>
                                                                <div id="div-install-url" class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl128" runat="server" Text="<% $Resources:Content,Installurl %>"></asp:Literal>:</span>
                                                                    <span id="general-info-install-url" class="col-xs-6"></span>
                                                                </div>
                                                                <% End If %>
                                                            </div>

                                                            <div class="col-md-4 col-sm-6 col-xs-12" id="div-db-info">
                                                                <h3><%= Resources.Content.String18 %></h3>
                                                                <hr />
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl129" runat="server" Text="<% $Resources:Content,SPT002274 %>"></asp:Literal>:</span>
                                                                    <span id="db-info-server" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl130" runat="server" Text="<% $Resources:Content,SPT002073 %>"></asp:Literal>:</span>
                                                                    <span id="db-info-name" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl131" runat="server" Text="<% $Resources:Content,SPT002074 %>"></asp:Literal>:</span>
                                                                    <span id="db-info-user" class="col-xs-6"></span>
                                                                </div>
                                                                <div class="row">
                                                                    <span class="row-label col-xs-5">
                                                                        <asp:Literal ID="Ltrl132" runat="server" Text="<% $Resources:Content,FailoverPartner %>"></asp:Literal>:</span>
                                                                    <span id="db-info-partner" class="col-xs-6"></span>
                                                                </div>
                                                            </div>
                                                                                                                        
                                                            <div class="col-md-4 col-sm-6 col-xs-12" id="div-svc-info">
                                                                <h3><%= Resources.Content.String57 %></h3>
                                                                <hr />
                                                                <div id="panel-svc-wrapper" class="col-xs-8">
                                                                </div>
                                                            </div>
                                                            
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-6 col-xs-12">
                                                                <h3><%= Resources.Content.CPUUsage %></h3>
                                                                <hr />
                                                                <div id="cpu-stats"></div>
                                                            </div>

                                                            <div class="col-sm-6 col-xs-12">
                                                                <h3><%= Resources.Content.RAMUsagePercentage%></h3>
                                                                <hr />
                                                                <div id="memory-stats"></div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <h3><%= Resources.Content.DiskUsageInGB %></h3>
                                                                <hr />
                                                                <div id="disk-stats-wrapper" class="row">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                        <div class="row" id="Pnl_Services" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <div class="clearfix">
                                                    <div class="double-scroll-wrapper1">
                                                        <div>
                                                        </div>
                                                    </div>
                                                    <div class="double-scroll-wrapper2">
                                                        <asp:GridView ID="GV_Services" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                                            AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" Style="min-width: 1600px;"
                                                            AutoGenerateColumns="False">

                                                            <Columns>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,Service%>' HeaderStyle-Width="300px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbtl_ServiceName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayName") & " [" & DataBinder.Eval(Container, "DataItem.Name") & "]" %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, Status %>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_Status" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,ServiceLogOnAccount%>' HeaderStyle-Width="200px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_ServiceLogOnAccount" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ServiceLogonAccount")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001270%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_StartMode" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.StartMode")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,DelayedAutoStart%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_DelayedAutoStart" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.DelayedAutoStart")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,FailureAction1Type%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction1Type" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction1Type")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,RestartAfter%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction1DelayInMS" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction1DelayInMS")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,FailureAction2Type%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction2Type" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction2Type")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,RestartAfter%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction2DelayInMS" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction2DelayInMS")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,FailureAction3Type%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction3Type" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction3Type")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,RestartAfter%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_FailureAction3DelayInMS" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FailureAction3DelayInMS")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,ResetPeriod%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_ResetPeriodInSeconds" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ResetPeriodInSeconds")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,RecoverOnStopOnError%>' HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_RecoverOnStopOnError" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.RecoverOnStopOnError")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <%--PagerTemplate Start--%>
                                                            <PagerTemplate>
                                                                <UC:Pager ID="Pager1" runat="server" />
                                                            </PagerTemplate>
                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="Pnl_SubCompliance" runat="server" visible="false">
                                            <UC:HealthSubCompliance ID="UCHealthSubCompliance" runat="server"></UC:HealthSubCompliance>
                                        </div>

                                        <asp:Panel ID="Pnl_ServiceTest" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.L0096%></h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div id="Td_Message" class="col-xs-12" runat="server">
                                                                <asp:Label ID="Lbl_ServicesStaus" runat="server" Font-Bold="true" EnableViewState="false"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_OK" runat="server" Text="<%$ Resources:Content,GN0000858%>" class="btn btn-primary waves-effect" />
                                                                <asp:Button ID="Btn_Display" runat="server" Style="display: none;" CssClass="btn btn-primary waves-effect" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                        <ajax:ModalPopupExtender runat="server" ID="MPE_ServicesTest" BackgroundCssClass="modalBackground"
                                            DropShadow="false" PopupControlID="Pnl_ServiceTest" TargetControlID="Btn_Display"
                                            OkControlID="Btn_OK">
                                        </ajax:ModalPopupExtender>

                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Databases" runat="server" HeaderText="<%$ Resources:Content,String18 %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                        <UC:HealthDatabases ID="UCDatabases" runat="server"></UC:HealthDatabases>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Licenses" runat="server" HeaderText="<%$ Resources:Content,Licenses %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab4" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                        <UC:HealthLicenses ID="UCLicenses" runat="server"></UC:HealthLicenses>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Compliance" runat="server" HeaderText="<%$ Resources:Content,strCompliance %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab5" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">
                                        <UC:PanelConfigReport ID="PanelConfigReport2" runat="server"></UC:PanelConfigReport>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Configuration" runat="server" HeaderText="<%$ Resources:Content,strConfiguration %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab6" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent6" runat="server" Visible="false">
                                        <UC:PanelConfigReport ID="PanelConfigReport1" runat="server"></UC:PanelConfigReport>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Export" runat="server" HeaderText="<%$ Resources:Content,strExport %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab7" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent7" runat="server" Visible="false">
                                        <UC:HealthExport ID="UCHealthExport" runat="server"></UC:HealthExport>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Settings" runat="server" HeaderText="<%$ Resources:Content,strSettings %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab8" runat="server" Style="display: none;" />

                                    <asp:Panel ID="Pnl_TabContent8" runat="server" Visible="false">
                                        <UC:HealthSettings ID="UCHealthSettings" runat="server"></UC:HealthSettings>
                                    </asp:Panel>
                                </ContentTemplate>
                            </ajax:TabPanel>
                        </ajax:TabContainer>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>

    <script type="text/javascript">

        //Server Heath Info
        function ShowServerInfo(event, IP, ServerRecordId) {

            var params = "{'IP': '" + IP + "', 'ServerRecordId': '" + ServerRecordId + "'}";

            $.ajax({
                type: "POST",
                url: "/PCC/System/Health.aspx/GetServerStatsAsync",
                async: true,
                data: params,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {
                    if (msg.d.indexOf('Error') < 0) {

                                <%--$find('<%=MPE_ServerStats.ClientID%>').show();
                                setTimeout(function () {
                                    try {
                                        $('.width-modal-popup-auto').css('width', 85 / 100 * $(window).width() + 'px');
                                        $(window).on('resize', function () { $('.width-modal-popup-auto').css('width', 85 / 100 * $(window).width() + 'px'); });
                                    } catch { }
                                }, 100);--%>

                        let data = JSON.parse(msg.d);
                        try {

                            $("#cpu-stats").empty();
                            $("#memory-stats").empty();

                            let config = {
                                data: data.cpu.data,
                                parseTime: false,
                                xkey: 'x',
                                ykeys: ['y'],
                                labels: [data.cpu.label],
                                fillOpacity: 0.6,
                                hideHover: 'auto',
                                behaveLikeLine: true,
                                resize: true,
                                pointFillColors: ['#ffffff'],
                                pointStrokeColors: ['black'],
                                lineColors: ['#44c1b9', 'red'],
                                hoverCallback: function (index, options, content, row) {
                                    return "<div class='morris-hover-row-label'>" + row.x + "</div><div class='morris-hover-point' style='color: b'>" +
                                        "<%=Resources.Content.CPUUsage%>" + ":" + row.y + "</div>";
                                },
                                xLabelFormat: function(x){
                                                return '';
                                                }
                            };

                            config.element = 'cpu-stats';
                            let cpuGraph = Morris.Area(config);
                            $("#cpu-stats > svg:nth-child(1)").css("min-width", $("#cpu-stats").width());
                            cpuGraph.redraw();

                            config = {
                                data: data.memory.data,
                                parseTime: false,
                                xkey: 'x',
                                ykeys: ['y'],
                                labels: [data.memory.label],
                                fillOpacity: 0.6,
                                hideHover: 'auto',
                                behaveLikeLine: true,
                                resize: true,
                                pointFillColors: ['#ffffff'],
                                pointStrokeColors: ['black'],
                                lineColors: ['#b444c1', 'red'],
                                hoverCallback: function (index, options, content, row) {
                                    return "<div class='morris-hover-row-label'>" + row.x + "</div><div class='morris-hover-point' style='color: b'>" +
                                        "<%=Resources.Content.MemoryUsageInPercentage%>: " + row.y + "</div>";
                                },
                                xLabelFormat: function(x){
                                                return '';
                                                }
                            };

                            config.element = 'memory-stats';
                            let memoryGraph = Morris.Area(config);
                            $("#memory-stats > svg:nth-child(1)").css("min-width", $("#memory-stats").width());
                            memoryGraph.redraw();

                            let diskStatsWrapper = document.getElementById('disk-stats-wrapper');
                            diskStatsWrapper.innerHTML = "";//reset;

                            x = 0;
                            for (let x = 0; x < data.disk.volumes.length; x++) {
                                let v = data.disk.volumes[x];
                                let diskStatsCol = document.createElement("div");
                                $(diskStatsCol).addClass('col-md-4 col-sm-6 col-xs-12');

                                let diskStats = document.createElement('div');
                                diskStats.id = 'vol-stats-' + x.toString();
                                $(diskStats).css('position', 'relative');

                                diskStatsCol.append(diskStats);
                                diskStatsWrapper.append(diskStatsCol);

                                let donut = Morris.Donut({
                                    element: 'vol-stats-' + x.toString(),
                                    data: v.data
                                });

                                $("#disk-stats-wrapper #vol-stats-" + x + " > svg:nth-child(1)").css("max-height", "170px");
                                $("#disk-stats-wrapper #vol-stats-" + x + " > svg:nth-child(1)").css("max-width", "78%");
                                donut.redraw();
                            }

                            x = 0;
                            for (let x = 0; x < data.disk.volumes.length; x++) {
                                let v = data.disk.volumes[x];
                                let diskStats = document.getElementById('vol-stats-' + x.toString());
                                let diskLabel = document.createElement('span');
                                $(diskLabel).css('position', 'absolute');
                                $(diskLabel).css('top', '55%');

                                $(diskLabel).html("Drive: " + v.label);
                                diskStats.insertBefore(diskLabel, diskStats.firstChild);
                            }
                        }
                        catch (e) { console.error(e); }

                        $('#server-name').html("");//reset;
                        $('#server-name').html(data.serverName);

                        //general info
                        $('#general-info-os').html(data.general.windowsProductName);
                        $('#general-info-os-version').html(data.general.windowsVersion);
                        if (data.general.domain != '') {
                            $('#general-info-workgroup-main').addClass('hide');
                        }
                        else {
                            $('#general-info-workgroup').html(data.general.workGroup);
                        }
                        $('#general-info-domain').html(data.general.domain);
                        $('#general-info-install-path').html(data.general.installPath);
                        if (data.general.installUrl && data.general.installUrl != '') {
                            $('#general-info-install-url').html(data.general.installUrl);
                        }
                        else
                            $('#div-install-url').hide();

                        //database info
                        $('#div-general-info, #div-svc-info').removeClass('col-md-4');
                        $('#div-db-info').hide().addClass('hide');
                        //if (data.database) {
                        //    $('#db-info-server').html(data.database.dataSource);
                        //    $('#db-info-name').html(data.database.initialCatalog);
                        //    $('#db-info-user').html(data.database.userId);
                        //    $('#db-info-partner').html(data.database.failoverPartner);
                        //}
                        //else {
                        //    $('#div-general-info, #div-svc-info').removeClass('col-md-4');
                        //    $('#div-db-info').hide().addClass('hide');
                        //}

                        let svcWrapper = document.getElementById('panel-svc-wrapper');
                        svcWrapper.innerHTML = "";//reset;

                        x = 0;
                        for (x = 0; x < data.services.length; x++) {
                            let svc = data.services[x];

                            if (!svc.displayName.toLowerCase().includes('machsol') && !svc.displayName.toLowerCase().includes('machpanel'))
                                continue;

                            let svcNode = document.createElement('div');
                            $(svcNode).css('padding', '0.50rem 0rem');
                            $(svcNode).css('border-bottom', 'solid 1px #999');
                            $(svcNode).addClass('row');

                            let svcName = document.createElement('span');
                            $(svcName).css('font-size', '14px');
                            $(svcName).css('font-weight', 500);
                            $(svcName).css('padding', '7px 15px 7px 0px');
                            //$(svcName).css('border-bottom', 'solid 1px #999');
                            $(svcName).addClass('col-xs-9');

                            //$(svcName).addClass('svc-name');
                            $(svcName).html(svc.displayName);
                            svcNode.append(svcName);

                            let svcStatus = document.createElement('span');
                            $(svcStatus).css('font-size', '14px');
                            $(svcStatus).css('font-weight', 500);
                            $(svcStatus).css('padding', '7px 15px 7px 0px');
                            //$(svcStatus).css('border-bottom', 'solid 1px #999');
                            $(svcStatus).addClass('col-xs-3')
                            switch (svc.status.toLowerCase()) {
                                case 'running':
                                    $(svcStatus).css('color', 'green');
                                    break;
                                case 'stopped':
                                case 'disabled':
                                    $(svcStatus).css('color', 'red');
                                    break;
                                default:
                                    $(svcStatus).css('color', '#f8c30a');
                            }
                            $(svcStatus).html(svc.status);
                            svcNode.append(svcStatus);

                            svcWrapper.append(svcNode);
                        }
                    }
                    else {
                        alert(msg.d);
                    }
                },
                error: function (errorMessage) {
                    alert(errorMessage);
                },
                complete: function (jqXHR, textStatus) {
                    setTimeout(function () { $('.page-loader-wrapper').hide(); }, 30);
                }
            });

            event.preventDefault();

        }

    </script>

</asp:Content>
