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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" Text="<%$ Resources:Content,L00242 %>" /></h2>
            </div>
            <div class="body">

                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_RemoteServers" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_RemoteServers">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_RemoteServers" href="#<%= CSB_RemoteServers.ClientID%>" aria-expanded="true" aria-controls="SH_RemoteServers">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_RemoteServers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_RemoteServers" 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_ADDomains" 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_ProductTypes" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_Status" MaxLength="255" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,SelectStatus %>" Value="-1" Selected="True" />
                                                        <asp:ListItem Text="<%$ Resources:Content,GN000195 %>" Value="1" />
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000860 %>" Value="0" />
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ReferenceID" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110019%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_IP" runat="server" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000174%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>

                <div class="row">
                    <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_RemoteServers" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                    AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" style="width:1470px;"
                                    AutoGenerateColumns="False">

                                    <Columns>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-Width="120px">
                                            <ItemTemplate>
                                                <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_TestService" CommandName="TestService"
                                                    runat="server" Text='<%$Resources:Content,String318%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="IP" HeaderText='<%$ Resources:Content,GN000174%>' HeaderStyle-Width="120px">
                                            <ItemTemplate>
                                                <div id="Div_IP" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="ReferenceId" HeaderText='<%$ Resources:Content,DGN1110019%>' HeaderStyle-Width="200px">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ServerName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ReferenceId")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="ServerGroupName" HeaderText='<%$ Resources:Content,GN0000971%>' HeaderStyle-Width="200px">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ServerGroupName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ServerGroupName")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001101 %>' HeaderStyle-Width="80px">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_RemoteVersion" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.RemoteVersion")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="Status" HeaderText='<%$ Resources:Content, String385 %>' HeaderStyle-Width="100px">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltl_Status" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="ADDomain" HeaderText='<%$ Resources:Content, DGN1110433 %>' HeaderStyle-Width="150px">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ADDomain" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ADDomain")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110261%>' HeaderStyle-Width="150px">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltl_LoginName" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='Additional Servers' HeaderStyle-Width="150px" Visible="false">
                                            <ItemTemplate>
                                                <div id="Div_DAGIPs" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="ServiceTypeName" HeaderText='<%$ Resources:Content,GN000140%>' HeaderStyle-Width="200px">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container, "DataItem.ServiceTypeName")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </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>
    <EM:ModalPopupExtender runat="server" ID="MPE_ServicesTest" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_ServiceTest" TargetControlID="Btn_Display"
        OkControlID="Btn_OK">
    </EM:ModalPopupExtender>
</asp:Content>

