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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TC_UsageReport" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_ExpiringDomains" runat="server" HeaderText="<%$ Resources:Content,ExpiringDomains%>" Enabled="true">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="true">
                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_UsageReport" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_UsageReport">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_UsageReport" href="#<%= CSB_UsageReport.ClientID %>" aria-expanded="true" aria-controls="SH_UsageReport">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_UsageReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_UsageReport" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerLtl">
                                                                <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_CustomerName" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustomerName" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="TD_CompanyName" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustCompanyName" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="TD_TLDName" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_TLDName" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,TLDName%>" 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="Label15" 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_Registrar" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_ExpiringInDays" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content, SelectExpiringInDays %>" Value="-1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, GN00001509 %>" Value="0"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 5 Days" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 10 Days" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 15 Days" Value="15"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 30 Days" Value="30" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 60 Days" Value="60"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 90 Days" Value="90"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_ExportToExcel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Ex001%>" />
                                                <asp:Button ID="BtnExportToPDF" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="clearfix">
                                            <div class="double-scroll-wrapper1">
                                                <div>
                                                </div>
                                            </div>
                                            <div class="double-scroll-wrapper2">
                                                <asp:GridView ID="GV_UsageReport" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                                    AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" Style="width: 1200px;"
                                                    AutoGenerateColumns="False">

                                                    <Columns>
                                                        <asp:TemplateField SortExpression="DomainName" HeaderText='<%$ Resources:Content, GN000125 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_DomainName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.DomainName")%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="NextRenewal" HeaderText='<%$ Resources:Content,GN000137%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.NextRenewal")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_CustomerName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerName") & " - (" & DataBinder.Eval(Container, "DataItem.CompanyName") & ")"%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerNumber" HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-Width="100px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_CustomerNumber" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerNumber") & ")"%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="RegistrarName" HeaderText='<%$ Resources:Content,GN0000221%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.RegistrarName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="IsLocked" HeaderText='<%$ Resources:Content,DGN1110308%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.IsLocked")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_UsageDetails" runat="server" HeaderText="<%$ Resources:Content,FAM00210%>" Enabled="true">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_Filter2" runat="server" DefaultButton="Btn_Filter2">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_DetailReport" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_DetailReport">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DetailReport" href="#<%= CSB_DetailReport.ClientID%>" aria-expanded="true" aria-controls="SH_DetailReport">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_DetailReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DetailReport" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerLtl2">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_Owner2" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="TD_CustomerName2" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustomerName2" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="TD_CompanyName2" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustCompanyName2" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="TD_TLDName2" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_TLDName2" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,TLDName%>" 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_DomainName2" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label12" 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_Registrar2" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" ID="Div_ExpiringInDays2" runat="server" visible="false">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_ExpiringInDays2" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content, SelectExpiringInDays %>" Value="-1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, GN00001509 %>" Value="0"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 5 Days" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 10 Days" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 15 Days" Value="15"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 30 Days" Value="30"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 60 Days" Value="60"></asp:ListItem>
                                                                        <asp:ListItem Text="Expiring in 90 Days" Value="90"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_Filter2" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_Clear2" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_ExportToExcel2" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Ex001%>" />
                                                <asp:Button ID="BtnExportToPDF2" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="clearfix">
                                            <div class="double-scroll-wrapper1">
                                                <div>
                                                </div>
                                            </div>
                                            <div class="double-scroll-wrapper2">
                                                <asp:GridView ID="GV_UsageDetails" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                                    AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" Style="width: 2000px;"
                                                    AutoGenerateColumns="False">

                                                    <Columns>
                                                        <asp:TemplateField SortExpression="DomainName" HeaderText='<%$ Resources:Content, GN000125 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_DomainName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.DomainName")%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="NextRenewal" HeaderText='<%$ Resources:Content,GN000137%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.NextRenewal")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_CustomerName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerName") & " - (" & DataBinder.Eval(Container, "DataItem.CompanyName") & ")"%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="CustomerNumber" HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-Width="100px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_CustomerNumber" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerNumber") & ")"%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="RegistrarName" HeaderText='<%$ Resources:Content,GN0000221%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.RegistrarName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="IsLocked" HeaderText='<%$ Resources:Content,DGN1110308%>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.IsLocked")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, strOwnerEmail %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.RegEmail")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, L0029 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.AdminEmail")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN000202 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.BillingEmail")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, TechnicalEmail %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.TechEmail")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager2" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>

