<%@ page language="C#" autoeventwireup="true" inherits="Admin_Statistics_ProductSaleStatistics, ShopWe" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>商品访问与购买次数统计</title>
    <link href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../css/jquery.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td style="width: 380px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" style="height: 22px">
                                    商品搜索</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:TextBox ID="TextBoxGoodsName" runat="server" Width="100px" Height="15px" Text="商品名称或货号"
                                        CssClass="input_tle"></asp:TextBox>
                                    <asp:DropDownList ID="GoodsGroup" runat="server" Width="100px" Height="22px" CssClass="input_tle">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="SearchGoodsTag" runat="server" Width="100px" Height="22px"
                                        CssClass="input_tle">
                                        <asp:ListItem>全部</asp:ListItem>
                                        <asp:ListItem>最新</asp:ListItem>
                                        <asp:ListItem>热卖</asp:ListItem>
                                        <asp:ListItem>推荐</asp:ListItem>
                                        <asp:ListItem>促销</asp:ListItem>
                                        <asp:ListItem>配件</asp:ListItem>
                                        <asp:ListItem>精品</asp:ListItem>
                                        <asp:ListItem>潮流</asp:ListItem>
                                        <asp:ListItem>畅销</asp:ListItem>
                                        <asp:ListItem>创意</asp:ListItem>
                                        <asp:ListItem>特价</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="SearchButton" runat="server" Text="搜索" OnClick="SearchButton_Click"
                                        CssClass="butt_tle" Height="22px" Width="45px" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 80px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" style="height: 22px">
                                    下载报表</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Button ID="SaveToCSV" runat="server" Text="下载报表" OnClick="SaveToCSV_Click" CssClass="butt_tle"
                                        Height="22px" Width="70px" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <div id="all">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <thead>
                    <tr>
                        <th style="width: 250px">
                            商品名称
                        </th>
                        <th style="width: 80px">
                            访问次数
                        </th>
                        <th style="width: 80px">
                            购买数量
                        </th>
                        <th>
                            访问购买率</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("GoodsName") %>
                                </td>
                                <td>
                                    <%# Eval("BrowseNumber") %>
                                </td>
                                <td>
                                    <%# Eval("SellNumber") %>
                                </td>
                                <td>
                                    <%# GetPercentage(new Guid(Eval("GoodsGuid").ToString())) %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="k_all3">
                <div id="bk_line">
                    <div class="txte">
                        <img src="../Themes/Default/Images/shop_xl1.png" />
                        商品总数：<asp:Literal ID="CountItem" runat="server" Text="0"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" PageSize="15"
                        OnPageChanged="AspNetPagerItem_PageChanged" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
