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

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

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

    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <ajax:UpdatePanel ID="UP_Parent" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <EM:TabContainer ID="TC_Clients" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_Summary" runat="server" HeaderText="<%$ Resources:Content,SM200002 %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
                                    <asp:Panel DefaultButton="Btn_Search" ID="Pnl_TabContent0" runat="server">
                                        <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                                            <div class="row">
                                                <div class="panel-group search-panel" id="AS_Summary" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_Summary">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Summary" href="#<%= CSB_Summary.ClientID%>" aria-expanded="true" aria-controls="SH_Summary">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_Summary" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Summary" aria-expanded="false">
                                                                <div class="row">
                                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                                        <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_ClientId" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000678%>" 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_Name" runat="server" MaxLength="200"></asp:TextBox>
                                                                                <asp:Label ID="Label15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000170%>" 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_Email" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>" 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_DomainName" runat="server" MaxLength="263"></asp:TextBox>
                                                                                <asp:Label ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000125%>" 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">
                                                                            <asp:DropDownList ID="DDL_Status" runat="server">
                                                                                <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="GN0000261" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="<%$ Resources:Content, GN0000222 %>" Value="GN0000222"></asp:ListItem>
                                                                                <asp:ListItem Text="<%$ Resources:Content, GN0000345 %>" Value="GN0000345"></asp:ListItem>
                                                                                <asp:ListItem Text="<%$ Resources:Content, GN0000349 %>" Value="GN0000349"></asp:ListItem>
                                                                                <asp:ListItem Text="<%$ Resources:Content, GN0000302 %>" Value="GN0000302"></asp:ListItem>
                                                                            </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_Address1" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000878%>" 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_Address2" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001136%>" 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_Phone" runat="server" />
                                                                                <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" 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_CCV2" runat="server" MaxLength="4"></asp:TextBox>
                                                                                <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String126%>" 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_Notes" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001336%>" 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_Company" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button ID="Btn_Search" 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">
                                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_List" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Img_AccStatus" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerId" HeaderText="<%$ Resources:Content, GN0000678 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Client" CommandName="Client" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>'
                                                                    Text='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>' runat="server"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerNumber" HeaderText="<%$ Resources:Content, GN000924 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_CustomerNumber" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerNumber")%>'
                                                                    runat="server"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Name" HeaderText="<%$ Resources:Content, GN000170 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Name" Text='<%#DataBinder.Eval(Container, "DataItem.Name")%>'
                                                                    runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField HeaderText="<%$ Resources:Content, GN00001077 %>" DataField="CustCompanyName"
                                                            SortExpression="CustCompanyName" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" />
                                                        <asp:TemplateField Visible="true" SortExpression="CompanyName" HeaderText="<%$ Resources:Content, SPT002811%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Owner" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.CompanyName")%>'
                                                                    CommandName="Owner" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000882 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Image ID="Img_CountryFlag" runat="server"  data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"/>
                                                                <asp:Label ID="Lbl_Country" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, AB0003 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Total" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Details" runat="server" HeaderText="<%$ Resources:Content,AB0002 %>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-md-12 col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN0000836%>
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal166" runat="server" Text="<%$ Resources:Content,GN0000716%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12">
                                                                <asp:Label ID="lbl_AccountStatus" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN00001492%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Name" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Tr_CustomerNumber" runat="server">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal101" runat="server" EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_CustomerNumber" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000491%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Email_td" runat="server">
                                                                <asp:HyperLink ID="Td_Email" runat="server"></asp:HyperLink>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Tr_ResellerType" runat="server">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,GN0000673%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_ResellerType" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN00001493%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Address" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0000882%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12">
                                                                <asp:Image ID="Img_CountryFlag" runat="server" />
                                                                <asp:Label ID="Lbl_Country" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,GN00012%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Phone" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN00001496%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Date" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,AB0003%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12" id="Td_Total" runat="server">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <asp:Panel ID="Pnl_Search_Inv" runat="server" DefaultButton="Btn_FilterSub">

                                                <div class="panel-group search-panel" id="AS_Details" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_Details">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Details" href="#<%= CSB_Details.ClientID%>" aria-expanded="true" aria-controls="SH_Details">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_Details" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Details" aria-expanded="false">
                                                                <div class="row">
                                                                    <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_Subscription" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110287%>" 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_PackageName" runat="server"></asp:TextBox>
                                                                                <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String246%>" class="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button ID="Btn_FilterSub" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                            <asp:Button ID="Btn_ClearSub" 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="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.M0091 %></h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="true" ID="GV_SubscriptionList" AllowPaging="true"
                                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                                            <Columns>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, String385 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="img_Status" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, DGN1110287 %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Spacer" runat="server" Text="&nbsp;&nbsp;" />
                                                                        <asp:LinkButton ID="LB_DomainName" runat="server"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, String246 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton runat="server" ID="LB_Package">
                                                                        </asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN00001473%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_Cycle">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000112%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_Price">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, String35 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_Quantity">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, USM0099 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_Total">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN000115 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_OrderDate">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <%--PagerTemplate Start--%>
                                                            <PagerTemplate>
                                                                <EM:Pager ID="Pager2" runat="server" />
                                                            </PagerTemplate>
                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>

</asp:Content>

