<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.ascx" %>
<%@ Page language="c#" Codebehind="MyFavorite.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.MyFavorite" %>
<!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("Favourites")%>-<%=config.SiteTitle%></title>
<script language="javascript1.2" src="inc/popmenu.js" type="text/javascript"></script>
 <script type="text/javascript">
						function addtocart(pid)
						{
							if('<%=config.ShopStop%>' == 'True')
							{
								temp=window.open('/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>ShoppingCart.aspx?pid='+pid,'shopcat','width=700,height=650,scrollbars=yes,top=0,left=0');
								temp.focus();
							}
							else
							{
								alert('<%=config.ShopStopWords%>');
								return false;
							}
						}
						function gotoUrl(url)
						{
							this.location = url;
						}
						function myOpenWindow()
						{
							temp=window.open('/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>ShoppingCart.aspx','shopcat','width=700,height=650,scrollbars=yes,top=0,left=0');
							temp.focus();
						}
						</script>
</head>
<body>
<form id="Form1" method="post" runat="server">
  <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='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Default.aspx<%}else{%>index.<%=config.html%><%}%>'><%=GetResourceString("Home")%></a> <font face="Times New Roman, Times, serif">>></font> <a href="MemberCenter.aspx"><%=GetResourceString("MemberCenter")%></a> → <%=GetResourceString("Favourites")%></div>
    </div>
    <!--当前位置结束-->
    <div id="middle">
      <div class="middlel">
        <!--会员中心导航开始-->
        <uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
        <!--会员中心导航结束-->
      </div>
      <div class="middler">
        <div class="mframe">
          <div class="tl"></div>
          <div class="tr"></div>
          <div class="tm"><span class="tt"><%=GetResourceString("Favourites")%></span></div>
          <div class="wrapper"><div class="ml"></div>
          <div class="mr"></div>
          <div class="mm">
            <asp:datagrid id="dgList" runat="server" AutoGenerateColumns="False" DataKeyField="FavoriteID" HorizontalAlign="Center">
              <ItemStyle CssClass="bgc2"></ItemStyle>
              <headerStyle CssClass="bgc1"></headerStyle>
              <Columns>
              <asp:TemplateColumn HeaderText="商品名称">
                <headerStyle HorizontalAlign="Center" Width="100px"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                <ItemTemplate> <a href='Show.aspx?PID=<%# DataBinder.Eval(Container.DataItem, "PID") %>'> <%# DataBinder.Eval(Container.DataItem, "Name") %> </a> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="会员价">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "MemberPrice","{0:c}") %> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="放入购物车">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate> <a href="#" onclick='addtocart(<%#DataBinder.Eval(Container.DataItem,"PID")%>)'>放入购物车</a> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
              </asp:ButtonColumn>
              </Columns>
            </asp:datagrid>
          </div>
          </div><div class="bl"></div>
          <div class="br"></div>
          <div class="bm"></div>
        </div>
      </div>
    </div>
  </div>
</form>
<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</html>
