<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.Default" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SupplierMenu" Src="Modules/SupplierMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!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>
		<!--#include file="inc/head.inc"-->
		<title>商家中心 <%=config.SiteTitle%></title>
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="ws xp-clear">
			<div class="content-left">
				<!--会员中心导航开始-->
				<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="content-middle">				
				<h3>欢迎您,<%=CurrentSupplier.RealName%></h3>
				<hr class="itemhr" />
				<div class="xp-clear" style="margin:10px 0px;">
				    <h3 style="float:left;">销售量在前5位的商品</h3>
				    <div style=" float:right; height:25px; line-height:25px; color:blue;text-align:right;"><a href="product/Product.aspx?ProductType=Normal" target="_blank">全部销售商品 >></a></div>
				</div>
				<%BindTopSaleProduct(5); %>
				<asp:datagrid id="dgProductList" runat="server" AutoGenerateColumns="False" DataKeyField="ProductID" Width="100%" HorizontalAlign="Center" BorderWidth="1" 
					BorderColor="#c8dcf4">
			        <ItemStyle CssClass="datagrid-item"></ItemStyle>
			        <HeaderStyle CssClass="datagrid-header"></HeaderStyle>
					<Columns>
						<asp:TemplateColumn HeaderText="商品编号">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center" Height="20px" Width="8%"></ItemStyle>
							<ItemTemplate>
								<%# DataBinder.Eval(Container.DataItem, "ProductNo") %>
							</ItemTemplate>
						</asp:TemplateColumn>
					    <asp:TemplateColumn HeaderText="商品名称">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center" Height="20px" Width="20%"></ItemStyle>
							<ItemTemplate>
								<%# DataBinder.Eval(Container.DataItem, "ProductName") %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="商品图片">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
							<ItemTemplate>
								<%--<img src="/<%=ShopFolder %>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %>" />--%>
							    <img src="<%=webSite %>upload/ProductImg/<%# DataBinder.Eval(Container.DataItem,"ImgFolder")%><%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %>" />
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="销售量">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center" Width="13%"></ItemStyle>
							<ItemTemplate>
		<%--						<%# DataBinder.Eval(Container.DataItem, "SaleNum") %>--%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="操作">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
							<ItemTemplate>
								<a href="/<%=ShopFolder %>products/product-<%# DataBinder.Eval(Container.DataItem, "ProductID") %>.<%=config.html%>" target="_blank">查看详细</a>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:datagrid>						
			</div>
		</div>
		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>
	</body>
</html>
