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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.strBillingSubscriptionReport%>
                </h3>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Search">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_Subscriptions" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_Subscriptions">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Subscriptions" href="#<%= CSB_Subscriptions.ClientID%>" aria-expanded="true" aria-controls="SH_Subscriptions">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_Subscriptions" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Subscriptions" aria-expanded="false">
                                                <div class="row">
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_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">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Id" runat="server"></asp:TextBox>
                                                                <asp:Label class="form-label" ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,SPT002807%>'></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                 <%--   <div class="col-md-3 col-sm-6 col-xs-12" id="td_SearchTitle_WHMCS_Id" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_SearchWHMCS_Id" runat="server"></asp:TextBox>
                                                                <asp:Label class="form-label" ID="Literal9" runat="server" EnableViewState="false" Text='<%$ Resources:Content,USM0159%>'></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>--%>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="TdClientId">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ClientId" runat="server"></asp:TextBox>
                                                                <asp:Label class="form-label" ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000715%>'></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12"  runat="server" id="TdClientName">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ClientName" runat="server"></asp:TextBox></td>
                                                <asp:Label class="form-label" ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000850%>'></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_DomainName" runat="server" MaxLength="255"></asp:TextBox>
                                                                <asp:Label class="form-label" ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000125%>'></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_SoldPackageName" runat="server" />
                                                                <asp:Label class="form-label" ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000141%>'></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_Notes" runat="server" />
                                                                <asp:Label CssClass="form-label" ID="Label12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001336%>"></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_CustCompanyName" runat="server" />
                                                                <asp:Label class="form-label" ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN00001077%>'></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_ProductTypes" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content, USM0128 %>" Value="0" Selected="True"></asp:ListItem>
                                                                <%--GN000135--%>
                                                            </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" runat="server"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Search" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Clear" Visible="false" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,String289%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </ajax:UpdatePanel>

                <ajax:UpdatePanel ID="UP_Subscriptions" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                    </div>
                                    <div class="body">
                                         <asp:Button ID="Btn_ExportToExcel" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <asp:GridView ID="GV_Subscriptions" AllowSorting="false" runat="server" CssClass="table table-striped table-hover table-bordered"
                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>" AllowPaging="true"
                                    CurrentSortExpression="Id" CurrentSortDirection="Asc">
                                    <Columns>
                                      <%--   <asp:TemplateField HeaderStyle-CssClass="col-xs-1 hidden-xs">
                                           <HeaderTemplate>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 m-l--5">
                                                        <asp:CheckBox class="option-menu" runat="server" ID="ChkBx_All" onclick="SetCheckedaddon(this.checked, this, 'All');" Text=" " />
                                                    </div>
                                                    <div class="col-sm-6 col-xs-12 m-l--20">
                                                        <asp:Label ID="ltrl_Status" runat="server" Text="<%$ Resources:Content,String385%>" EnableViewState="false" />
                                                    </div>
                                                </div>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 m-l--5">
                                                        <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onClick="SetCheckedaddon(this.checked, this,'1');" />
                                                        <asp:HiddenField ID="HF_PackageID" runat="server" />
                                                        <asp:HiddenField ID="HF_SoldPackageID" runat="server" />
                                                        <asp:HiddenField ID="HF_PackageTypeID" runat="server" />
                                                        <asp:HiddenField ID="HF_Status" runat="server" />
                                                    </div>
                                                    <div class="col-sm-6 col-xs-12 m-l--20">
                                                        <asp:Label ID="lbl_Status" runat="server" />
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, DGN1119987 %>' HeaderStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <table class="table small">
                                                    <tbody>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Literal612" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN0000678%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:HyperLink ID="LB_Id" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Id")%>'></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label11" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN000170%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:HyperLink ID="LB_SubscName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.UserName")%>'></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label3" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN000140%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="Lbl_PackageTypeId" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="lblPackageAddon" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN000141%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">

                                                                <div id="Div_Service" runat="server">
                                                                </div>
                                                                <asp:Label ID="Lbl_WHMCS_SvcId" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText='<%$ Resources:Content, AB0002 %>' HeaderStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <table class="table small">
                                                    <tbody>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label1" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN0000718%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:HyperLink ID="LB_InvoiceId" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.InvoiceNo")%>'></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Literal61" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,strOriginalPrice%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="LB_OriginalPrice" runat="server" Text=''></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label12" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,USM0010%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="LB_ProratedPrice" runat="server" Text=''></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label31" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,String35%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="Lbl_Quantity" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Quantity")%>'></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label21" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN0000685%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8 row-label">
                                                                <asp:Label ID="Lbl_InvoicedFromDate" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="col-xs-4 row-label">
                                                                <asp:Label ID="Label41" runat="server"
                                                                    EnableViewState="false" Text='<%$ Resources:Content,GN0000690%>'></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8 row-label">
                                                                <asp:Label ID="Lbl_InvoicedToDate" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField   HeaderText='<%$ Resources:Content,GN0000850%>' HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField   HeaderText="<%$ Resources:Content,Exh505%>" HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Owner" runat="server" Text='<%# Eval("Owner")%>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                       <%-- <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001489 %>' HeaderStyle-CssClass="col-xs-1 hidden-xs">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_AddonCount" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                        <%--<asp:TemplateField SortExpression="StartDate" HeaderText='<%$ Resources:Content, GN00001547 %>' HeaderStyle-CssClass="col-xs-1 hidden-xs">
                                            <ItemTemplate>
                                                <div id="Div_StartDate" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="Tooltip on top" />
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>

                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
