<%@ Page language="c#" Codebehind="Price.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Price" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SmallCart" Src="Modules/SmallCart.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LoginForm" Src="Modules/LoginForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNav" Src="Modules/LeftNav.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="Modules/LeftNavTop2Level.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--#include file="../../inc/head.inc"-->
<title><%=GetResourceString("PriceCenter")%>-<%=config.SiteTitle%></title>
<script type="text/javascript" src="inc/overlib.js"></script>
</head>
<body id="MenuM7">
<uc1:Header id="Header1" runat="server"></uc1:Header>
<div class="twidth">
  <!--当前位置开始-->
  <div id="cnav">
    <div class="l"></div>
    <div class="r"></div>
    <div class="m"><%=GetResourceString("WhereYouAre")%><a href="default.aspx"><%=GetResourceString("Home")%></a> <font face="Times New Roman, Times, serif">>></font> <%=GetResourceString("PriceCenter")%></div>
  </div>
  <!--当前位置结束-->
  <div id="middle">
    <div class="middlel">
      <!--购物车开始-->
      <uc1:SmallCart id="SmallCart1" runat="server"></uc1:SmallCart>
      <!--购物车结束-->
    </div>
    <div class="middler">
      <div class="mframe">
        <div class="tl"></div>
        <div class="tr"></div>
        <div class="tm"><span class="tt"><%=GetResourceString("PriceCenter")%></span></div>
        <div class="wrapper">
        <div class="ml"></div>
        <div class="mr"></div>
        <div class="mm" style="padding-left:15px;">
          <form id="Form1" method="post" runat="server">
            <table width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td>请选择需要查看报价的类别：<a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>price.aspx<%}else{%>price.<%=config.html%><%}%>'>全部类别</a></td>
              </tr>
              <tr>
                <td><%BindSubCatList();%>
                  <table width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><asp:DataList id="dlSubCatList" CellPadding="3" CellSpacing="0" RepeatLayout="Table" RepeatDirection="Horizontal" RepeatColumns="7" CssClass="tdbg" Style="MARGIN-LEFT:30px" runat="server">
                          <ItemStyle Width="100px" />
                          <ItemTemplate> <a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>price.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>'><%#DataBinder.Eval(Container.DataItem,"Name")%> </a> </ItemTemplate>
                        </asp:DataList>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><asp:DataGrid ID="dgList" Runat="server" DataKeyField="ProductID" AutoGenerateColumns="False" HeaderStyle-BackColor="Gainsboro" ItemStyle-BackColor="#ffffff" BorderWidth="1" BorderColor="#DBD8D8" Width="100%">
                    <Columns>
                    <asp:TemplateColumn HeaderText="图片预览">
                      <ItemTemplate> <a href="#" onMouseOver="return overlib(&quot;<IMG SRC='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Upload/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %>' class='chnsimg'>&quot;, CAPTION, &quot;<%# DataBinder.Eval(Container.DataItem, "Name") %>&quot;,FGCOLOR, '#fcfcfc', BGCOLOR, '#0080C0', CAPCOLOR, '#ffffff', BORDER, 2, CLOSETEXT, 'Close');" onMouseOut="nd();"><IMG SRC="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>images/icon-viewpic.gif" border="0"></a> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="商品名称">
                      <ItemTemplate><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Show.aspx?PID=<%# DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products/Product_<%# DataBinder.Eval(Container.DataItem,"ProductID") %>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a></ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="市场价">
                      <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"MarketPrice")%> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="会员价">
                      <ItemTemplate> <%# GetPrice(DataBinder.Eval(Container.DataItem,"MemberPrice").ToString(),DataBinder.Eval(Container.DataItem,"ProductID").ToString())%> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="当前库存">
                      <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"Storage")%><%# DataBinder.Eval(Container.DataItem,"Unit")%></ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="浏览次数">
                      <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"Hits")%> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="商品品牌">
                      <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"Brand")%> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="规格">
                      <ItemTemplate>重量:<%# DataBinder.Eval(Container.DataItem,"Weight")%>克</ItemTemplate>
                    </asp:TemplateColumn>
                    </Columns>
                  </asp:DataGrid>
                </td>
              </tr>
            </table>
          </form>
        </div></div>
        <div class="bl"></div>
        <div class="br"></div>
        <div class="bm"></div>
      </div>
    </div>
  </div>
</div>
<div id="overDiv" style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</html>
