<%@ control language="VB" autoeventwireup="false" inherits="PCC_Exchange_CC_Inventory, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>

<script type="text/javascript">
    $(document).ready(function () {
        $(".span_refresh").on("click", function () {
            $("#<%= Btn_UpdateNow.ClientID%>").trigger("click");
        });
    });
</script>
<asp:Panel ID="Pnl_Listing_Inventory" runat="server">

    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row">
        <div class="panel-group search-panel" id="AS_Inventory" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_Inventory">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Inventory" href="#<%= CSB_Inventory.ClientID%>" aria-expanded="true" aria-controls="SH_Inventory">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_Inventory" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Inventory" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_ServerGroups" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID="Btn_UpdateNow" runat="server" Text="<%$ Resources:Content,UpdateNow %>" CssClass="hide btnAction" />
                            
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <%= Resources.Content.Sites%>
                    </h3>
                    <span class="close span_refresh glyphicon glyphicon-refresh" >
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 row-label">
                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,ADSite %>"></asp:Label>:
                        </div>
                        <div class="col-sm-10">
                            <asp:Label ID="Lbl_ADSite" runat="server"></asp:Label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <%= Resources.Content.DomainControllers%>
                    </h3>
                    <span class="close span_refresh glyphicon glyphicon-refresh" >
                    </span>
                </div>
                <div class="body">

                    <table class="table table-bordered table-hover table-striped table-responsive">
                        <tbody>
                            <tr>
                                <th class="col-xs-2"><%= Resources.Content.Name%></th>
                                <th class="col-xs-4"><%= Resources.Content.DNSHostName%></th>
                                <th class="col-xs-6"><%= Resources.Content.ADSite %></th>
                            </tr>

                            <asp:Repeater ID="Rep_DomainControllers" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label9" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>'></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DNSHostName")%>'></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label12" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ADSite")%>'></asp:Label>

                                        </td>
                                    </tr>
                                    <%--  <div class="row">
                                            <div class="col-sm-3 row-label">
                                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,Name %>"></asp:Label>:
                                            </div>
                                            <div class="col-sm-9">
                                                <asp:Label ID="Lbl_DC_Name" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>'></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 row-label">
                                                <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Content,DNSHostName %>"></asp:Label>:
                                            </div>
                                            <div class="col-sm-9">
                                                <asp:Label ID="Lbl_DNSHostName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DNSHostName")%>'></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 row-label">
                                                <asp:Label ID="Label10" runat="server" Text="<%$ Resources:Content,ADSite %>"></asp:Label>:
                                            </div>
                                            <div class="col-sm-9">
                                                <asp:Label ID="Lbl_ADSite" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ADSite")%>'></asp:Label>
                                            </div>
                                        </div>--%>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                    <hr />
                    <div class="row">
                        <div class="col-sm-4 row-label">
                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,DefaultGlobalCatalog %>"></asp:Label>:
                        </div>
                        <div class="col-sm-8">
                            <asp:Label ID="Lbl_DefaultGlobalCatalog" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 row-label">
                            <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,DefaultPreferredDomainControllers %>"></asp:Label>:
                        </div>
                        <div class="col-sm-8">
                            <asp:Label ID="Lbl_DefaultPreferredDomainControllers" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 row-label">
                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,UserPreferredGlobalCatalog %>"></asp:Label>:
                        </div>
                        <div class="col-sm-8">
                            <asp:Label ID="Lbl_UserPreferredGlobalCatalog" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 row-label">
                            <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content,UserPreferredConfigurationDomainController %>"></asp:Label>:
                        </div>
                        <div class="col-sm-8">
                            <asp:Label ID="Lbl_UserPreferredConfigurationDomainController" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 row-label">
                            <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content,UserPreferredDomainControllers %>"></asp:Label>:
                        </div>
                        <div class="col-sm-8">
                            <asp:Label ID="Lbl_UserPreferredDomainControllers" runat="server"></asp:Label>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <%= Resources.Content.ExchangeServers%>
                    </h3>
                    <span class="close span_refresh glyphicon glyphicon-refresh" >
                    </span>
                </div>
                <div class="body">
                    <div class="double-scroll-wrapper1">
                        <div>
                        </div>
                    </div>
                    <div class="double-scroll-wrapper2">
                        <asp:GridView ID="GV_ExchangeServers" CssClass="table table-bordered table-hover table-striped table-responsive"
                            AllowSorting="false" AllowPaging="false" Style="width: 2800px;"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                            <Columns>

                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, Name %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Name" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, GN0000653 %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Domain" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, Edition %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Edition" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, FQDN %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_FQDN" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, DisplayVersion %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_AdminDisplayVersion" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, USM0063 %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_ServerRole" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, IsExchangeTrialEdition %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_IsExchangeTrialEdition" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, StaticDomainControllers %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_StaticDomainControllers" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, StaticGlobalCatalogs %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_StaticGlobalCatalogs" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, StaticConfigDomainControllers %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_StaticConfigDomainControllers" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, StaticExcludeDomainControllers %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_StaticExcludeDomainControllers" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, CurrentDomainControllers %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_CurrentDomainControllers" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, CurrentGlobalCatalogs %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_CurrentGlobalCatalogs" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, CurrentConfigDomainControllers %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_CurrentConfigDomainControllers" runat="server" Text="" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

