<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.BestSellersStatControl"
    CodeBehind="BestSellersStat.ascx.cs" %>
<div class="statisticsTitle">
    Best Sellers
</div>
<asp:GridView ID="gvBestSellers" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="ProductVariantID" HeaderText="ProductVariantID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Product" ItemStyle-Width="65%">
            <ItemTemplate>
                <div style="padding-left: 10px; padding-right: 10px; text-align: left;">
                    <a href='<%#GetProductURL(Convert.ToInt32(Eval("ProductVariantID")))%>' title="View product variant details">
                        <%#Server.HtmlEncode(GetProductVariantName(Convert.ToInt32(Eval("ProductVariantID"))))%></a>
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="SalesTotalCount" HeaderText="Total count" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:TemplateField HeaderText="Total amount (excl tax)" ItemStyle-Width="20%">
            <ItemTemplate>
                <%#Server.HtmlEncode(PriceHelper.FormatPrice(Convert.ToDecimal(Eval("SalesTotalAmount")), true, false))%>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
