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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h3>
                        <%= Resources.Content.RDSConfiguration%>
                    </h3>
                </div>
                <asp:LinkButton ID="lb_SPGoBack" runat="server" Text="<%$ Resources:Content,GoBackToServerGroups %>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <div class="displayInlineBlock">
                                    <h3>
                                        <%= Resources.Content.GN0000395%>
                                    </h3>
                                </div>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <asp:DropDownList ID="DDL_ServerGroups" runat="server">
                                        </asp:DropDownList>
                                    </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_SearchName" runat="server"></asp:TextBox>
                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strName%>" class="form-label"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_Filter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                        <asp:Button ID="Btn_Clear" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,String289 %>' />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <EM:TabContainer ID="TbCntr_Configuration" runat="server" OnClientActiveTabChanged="loadTabPanel">

                    <EM:TabPanel ID="Tab_SessionCollections" runat="server" HeaderText="<%$Resources:Content,SessionCollections%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" Visible="true" runat="server">
                                <asp:GridView ID="GV_SessionCollections" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Name %>'>
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Name" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Alias %>' HeaderStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Alias" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,Customers%>' HeaderStyle-CssClass="col-xs-6">
                                            <ItemTemplate>
                                                <div id="Div_Customers" runat="server" />
                                                <div id="Div_expandCustomers" runat="server" class="cursor-pointer" />
                                                <div id="HF_DataCustomers" runat="server" style="display: none;" />
                                                <div id="HF_FullDataCustomers" runat="server" style="display: none;" />
                                                <asp:HiddenField ID="HF_OpCustomers" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" Visible="false">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>

                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>


                    <EM:TabPanel ID="Tab_VirtualDesktopCollections" runat="server" HeaderText="<%$Resources:Content,VirtualDesktopCollections%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">
                                <asp:GridView ID="GV_VirtualDesktopCollections" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Name %>'>
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Name" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Alias %>' HeaderStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Alias" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000673 %>' HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Type" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,Customers%>' HeaderStyle-CssClass="col-xs-5">
                                            <ItemTemplate>
                                                 <div id="Div_Customers" runat="server" />
                                                <div id="Div_expandCustomers" runat="server" class="cursor-pointer" />
                                                <div id="HF_DataCustomers" runat="server" style="display: none;" />
                                                <div id="HF_FullDataCustomers" runat="server" style="display: none;" />
                                                <asp:HiddenField ID="HF_OpCustomers" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" Visible="false">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>

                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>


                    <EM:TabPanel ID="Tab_TSGatewayPolicies" runat="server" HeaderText="<%$Resources:Content,TSGatewayPolicies%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" Visible="false" runat="server">
                                <asp:GridView ID="GV_TSGatewayPolicies" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Name %>'>
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Name" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Alias %>' HeaderStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Alias" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,Customers%>' HeaderStyle-CssClass="col-xs-6">
                                            <ItemTemplate>
                                                <div id="Div_Customers" runat="server" />
                                                <div id="Div_expandCustomers" runat="server" class="cursor-pointer" />
                                                <div id="HF_DataCustomers" runat="server" style="display: none;" />
                                                <div id="HF_FullDataCustomers" runat="server" style="display: none;" />
                                                <asp:HiddenField ID="HF_OpCustomers" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" Visible="false">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>

                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>


                    <EM:TabPanel ID="Tab_PublishedApps" runat="server" HeaderText="<%$Resources:Content,PublishedApps%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" Visible="false" runat="server">
                                <asp:GridView ID="GV_PublishedApps" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Name %>'>
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Name" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Alias %>' HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_Alias" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, CollectionName %>' HeaderStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_CollectionName" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,Customers%>' HeaderStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <div id="Div_Customers" runat="server" />
                                                <div id="Div_expandCustomers" runat="server" class="cursor-pointer" />
                                                <div id="HF_DataCustomers" runat="server" style="display: none;" />
                                                <div id="HF_FullDataCustomers" runat="server" style="display: none;" />
                                                <asp:HiddenField ID="HF_OpCustomers" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" Visible="false">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>

                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function showagency(id) {
            //$('#IdOfLabel').each(function () {
            //    var text = $(this).text();
            //});

            console.log(id);
            var cont = document.getElementById(id);

            console.log(cont);

            //if (cont.style.display == 'block')
            //    cont.style.display = 'none';
            //else
            //    cont.style.display = 'block';


        }
    </script>
</asp:Content>
