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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ 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="body">

                <EM:TabContainer ID="TbCntr_Tenants" runat="server" OnClientActiveTabChanged="loadTabPanel">

                    <EM:TabPanel ID="Tab_Tenants" runat="server" HeaderText="<%$ Resources:Content,TrialSubscriptions %>">

                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <asp:Panel ID="Pnl_Listing" runat="server" DefaultButton="Btn_ApplyFilter">
                                    <%--Search box--%>
                                    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter">
                                        <div class="panel-group search-panel" id="AS_O365Accounts" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_O365Accounts">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365Accounts" href="#<%= CSB_O365Accounts.ClientID%>" aria-expanded="true" aria-controls="SH_O365Accounts">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_O365Accounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_O365Accounts" aria-expanded="false">
                                                        <div class="row">

                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="td_DDL_Owner" runat="server">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="td_DDL_CustomerId" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustomerID" runat="server" />
                                                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>"></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_TenantName" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Ltrl_TenantName" class="form-label" runat="server" Text="<%$ Resources:Content,TenantName %>"></asp:Label>
                                                                    </div>

                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_TrialStatus" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI53106 %>" Value="0"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000222 %>" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,strUpgraded %>" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content,Expired %>" Value="6"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_ApplyFilter" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearFilter" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_Subscriptions" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField SortExpression="MSTenantPrefix" HeaderText="<%$ Resources:Content,TenantName%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="HL_TenantName" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110287%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_SubName" runat="server"></asp:Literal>
                                                            <asp:HiddenField ID="HF_Status" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000850 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="HL_CustomerId" runat="server" />
                                                            <asp:HiddenField ID="HF_CustomerId" runat="server" Value='<%# Eval("CustomerId")%>' />
                                                            <asp:HiddenField ID="HF_CompanyId" runat="server" Value='<%# Eval("CompanyId")%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="HL_CustomerOwner" runat="server" ></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001082 %>' SortExpression="SubscriptionSetupDate" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_SetupDate" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, ExpiryDate %>' SortExpression="SubscriptionEndDate" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_ExpiryDate" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Button ID="Btn_SendEmail" runat="server" Text="<%$ Resources:Content,GN0000752 %>" CommandName="SendEmail" class="btn btn-primary waves-effect" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <UC:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                </EM:TabContainer>

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

</asp:Content>

