<%@ control language="VB" autoeventwireup="false" inherits="PCC_System_CC_HealthDatabases, MachSol.MachPanel.Web" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>

<div class="row">
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_FilterDBs" runat="server" DefaultButton="Btn_FilterDBs">
            <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_DateAfterCS" runat="server"></asp:TextBox>
                                            </div>
                                        </div>

                                        <i runat="server" id="A_DRangeAfterCS" class="material-icons icon-calendar col-calendar"></i>
                                        <ajax:CalendarExtender ID="CE_DRangeAfterCS" runat="server" TargetControlID="TxBx_DateAfterCS"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_DRangeAfterCS" CssClass="date__calendar">
                                        </ajax:CalendarExtender>
                                    </div>
                                    <%--<div class="col-md-3 col-sm-6 col-xs-12">
                                        <label class="row-label display-date-label">
                                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />:
                                        </label>
                                        <div class="form-group display-date-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_DateBeforeCS" runat="server"></asp:TextBox>
                                            </div>
                                        </div>

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

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

        <div class="row" id="Pnl_Databases" runat="server">
            <div class="col-xs-12">
                <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                    <asp:Repeater ID="Rep_Databases" runat="server">
                        <ItemTemplate>
                            <div class="row">
                                <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_LogDate" runat="server" />
                                                </a>
                                            </h2>
                                        </div>
                                        <div id="collapseOne" runat="server" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="PanelHeading">

                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <span>
                                                                <h3>

                                                                    <%= Resources.Content.String18 %>
                                                                                      
                                                                </h3>
                                                            </span>
                                                        </div>
                                                        <div class="body">
                                                            <table class="table noborders small">
                                                                <tbody>
                                                                    <tr>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.GN0000980 & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-4 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBServerName") %>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.FailoverPartner & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-4 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.FailOverPartner") %>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <strong><%# Resources.Content.SPT002073 & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBName") %>
                                                                        </td>
                                                                        <td>
                                                                            <strong><%# Resources.Content.DGN1119982 & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Lbl_DBSize" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <strong><%# Resources.Content.USM0061 & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBUser") %>
                                                                        </td>
                                                                        <td>
                                                                            <strong><%# Resources.Content.ReadCommittedSnapshot & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBReadCommittedSnapshot") %>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <strong><%# Resources.Content.CompatabilityLevel & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBCompatabilityLevel") %>
                                                                        </td>
                                                                        <td>
                                                                            <strong><%# Resources.Content.RecoveryMode & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBRecoveryMode") %>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <strong><%# Resources.Content.DBCollation & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBCollation") %>
                                                                        </td>
                                                                        <td>
                                                                            <strong><%# Resources.Content.UserAccessMode & ":" %></strong>
                                                                        </td>
                                                                        <td>
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBUserAccessMode") %>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <span>
                                                                <h3><%= Resources.Content.DataFile %></h3>
                                                            </span>
                                                        </div>
                                                        <div class="body">
                                                            <table class="table noborders small">
                                                                <tbody>
                                                                    <tr>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.DGN1119982 & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <asp:Label ID="Lbl_DBDataFileSize" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.MaximumSize & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <asp:Label ID="Lbl_DBDataFileMaxSize" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.FileGrowth & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBDataFileGrowth") %>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.FilePath & ":" %></strong>
                                                                        </td>
                                                                        <td colspan="5" class="col-md-10 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBDataFilePath") %>
                                                                        </td>
                                                                    </tr>

                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <span>
                                                                <h3><%= Resources.Content.LogFile %></h3>
                                                            </span>
                                                        </div>
                                                        <div class="body">
                                                            <table class="table noborders small">
                                                                <tbody>
                                                                    <tr>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong>
                                                                                <%# Resources.Content.DGN1119982 & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <asp:Label ID="Lbl_DBLogFileSize" runat="server"></asp:Label>
                                                                        </td>

                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong>
                                                                                <%# Resources.Content.MaximumSize & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <asp:Label ID="Lbl_DBLogFileMaxSize" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong>
                                                                                <%# Resources.Content.FileGrowth & ":" %></strong>
                                                                        </td>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBLogFileGrowth") %>
                                                                        </td>
                                                                    </tr>

                                                                    <tr>
                                                                        <td class="col-md-2 col-xs-6">
                                                                            <strong><%# Resources.Content.FilePath & ":" %></strong>
                                                                        </td>
                                                                        <td colspan="5" class="col-md-10 col-xs-6">
                                                                            <%# DataBinder.Eval(Container, "DataItem.DBLogFilePath") %>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                                <%-- </div>--%>
                                            </div>

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </ItemTemplate>
                        <FooterTemplate>
                            <div 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>
</div>
<%-- </div>
</div>--%>
