<%@ Page language="c#" Codebehind="MyGifts.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MyGifts" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="MemberHelper" Src="Modules/MemberHelper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="memberfooter" Src="Modules/memberfooter.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/encoding.inc"-->
		<title>我的礼品,<%=config.SiteTitle%></title>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" type="text/css" rel="stylesheet" />
		<!--#include file="../../inc/head.inc"-->
	</HEAD>
	<body>
	<% if (HaveCoupon(Request.Url.ToString())){%>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-qgw clear">
		    <!--位置导航开始-->
		    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> &nbsp;&gt;&nbsp;<a href="<%=webSite %>Center.<%=config.html %>"><%=GetResourceString("MemberCenter")%></a>&nbsp;&gt;&nbsp;我的礼品</div>
		    <!--位置导航结束-->
			<div class="member_left">
				<!--会员中心导航开始-->
				<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle_right">
			    <!--内容开始-->
			    <div class="mframe">
			        <div class="tl"></div>
			        <div class="tr"></div>
			        <div class="tm">我的礼品</div>
			        <div class="ml"></div>
			        <div class="mr"></div>
			        <div class="mm">
                        <form id="Form1" method="post" runat="server">
					        <table width="100%" cellspacing="0" cellpadding="0">
						        <tr>
							        <td align="center">
								        <asp:datagrid id="dgListt" CssClass="dgborder" runat="server" AutoGenerateColumns="False" Width="100%"
									        HorizontalAlign="Center" BorderWidth="1" BorderColor="#e6e6e6">
									        <ItemStyle BackColor="White"></ItemStyle>
		                                    <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
									        <Columns>
										        <asp:TemplateColumn HeaderText="序号">
											        <HeaderStyle HorizontalAlign="Center" Height="20px"></HeaderStyle>
											        <ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
											        <ItemTemplate>
													    <%# Container.ItemIndex + 1%>
											        </ItemTemplate>
										        </asp:TemplateColumn>											    
										        <asp:TemplateColumn HeaderText="礼品名称">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                                    <ItemTemplate>
                                                        <a href='GiftDetails-<%# DataBinder.Eval(Container.DataItem, "GiftID") %>.<%=config.html%>' target="_blank"><%# DataBinder.Eval(Container.DataItem, "GiftName") %></a>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="积分">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container.DataItem, "Integral") %>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="获得时间">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container.DataItem, "OrderTime") %>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="获得方式">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container.DataItem, "Method").ToString() == "exchange" ? "积分兑换" : "购物赠送" %>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="收货地址">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container.DataItem, "ReceiverAddress") %>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
									        </Columns>
								        </asp:datagrid>
							        </td>
						        </tr>
						        <tr>
							        <td colspan="3" height="20"></td>
						        </tr>
					        </table>
	                    </form>
	                </div>
			        <div class="bl"></div>
			        <div class="br"></div>
			        <div class="bm"></div>
			    </div>
				<!--内容结束-->
			</div>
		</div>
		<uc1:MemberHelper id="Helper1" runat="server"></uc1:MemberHelper>
		<uc1:memberfooter id="Footer1" runat="server"></uc1:memberfooter>
		<%} %>
	</body>
</HTML>
