<%@ Page language="c#" Codebehind="SupplierCenter.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.SupplierCenter" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SupplierMenu" Src="Modules/SupplierMenu.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/encoding.inc"-->
		<title>商家中心,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
	</head>
	<body>
		<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			 <!--位置导航开始-->
			<div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;商家中心</div>
			<!--位置导航结束-->
			<div class="clear"></div>
			<div class="member_left">
			    <!--会员中心导航开始-->
				<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle">
				
				<h3>欢迎您,<%=user.Name%></h3>
				<hr class="itemhr" />
				<h3>销售量在前5位的商品</h3>
				<%BindTopSaleProduct(5); %>
				<div style="height:25px;color:blue;text-align:right;">全部销售商品 >></div>
				<asp:datagrid id="dgProductList" runat="server" AutoGenerateColumns="False" DataKeyField="ProductID" Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#A7CDF1">
			        <ItemStyle BackColor="White"></ItemStyle>
			        <HeaderStyle BackColor="#EBF4FB" height="22px"></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="<%=webSite %>upload/<%# 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="<%=webSite %>Show.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>" target="_blank">查看详细</a>
					        </ItemTemplate>
				        </asp:TemplateColumn>
			        </Columns>
		        </asp:datagrid>
				<div style="clear:both;"></div>
						
			</div>
			<div class="member_right">
			    <!--公告开始-->
			    <div class="memberframe">
	                <div class="tl"></div>
	                <div class="tr"></div>
	                <div class="tm"><div class="title">公告</div></div>
	                <div class="ml"></div>
	                <div class="mr"></div>
	                <div class="mm">
		                <ul class="content">
		                    <li><a href="#">五一正常营业公告五一正常营业公告五asdfasdfasdfsadfasdfasdf</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                    <li><a href="#">五一正常营业公告</a></li>
		                </ul>
		                <div class="clear"></div>
	                </div>
	                <div class="bl"></div>
	                <div class="br"></div>
	                <div class="bm"></div>
                </div>
			    <!--公告结束-->
			    
			    <!--会员帮助开始-->
			    <div class="memberframe">
	                <div class="tl"></div>
	                <div class="tr"></div>
	                <div class="tm"><div class="title">会员帮助</div></div>
	                <div class="ml"></div>
	                <div class="mr"></div>
	                <div class="mm">
		                <ul class="content">
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                    <li><a href="#">会员级别说明</a></li>
		                </ul>
		                <div class="clear"></div>
	                </div>
	                <div class="bl"></div>
	                <div class="br"></div>
	                <div class="bm"></div>
                </div>
			    <!--会员帮助结束-->
			    
			    <!--常见问题开始-->
			    <div class="memberframe">
	                <div class="tl"></div>
	                <div class="tr"></div>
	                <div class="tm"><div class="title">常见问题</div></div>
	                <div class="ml"></div>
	                <div class="mr"></div>
	                <div class="mm">
		                <ul class="content">
		                    <li><a href="#">常见问题</a></li>
		                    <li><a href="#">常见问题</a></li>
		                    <li><a href="#">常见问题</a></li>
		                    <li><a href="#">常见问题</a></li>
		                    <li><a href="#">常见问题</a></li>
		                    <li><a href="#">常见问题</a></li>
		                </ul>
		                <div class="clear"></div>
	                </div>
	                <div class="bl"></div>
	                <div class="br"></div>
	                <div class="bm"></div>
                </div>
			    <!--常见问题结束-->
			    
			</div>
			<div class="clear"></div>
			
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
	</body>
</html>