
<%@ Page language="c#" Codebehind="Gifts.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Gifts" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.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="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.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><%=GetResourceString("IntegralExchangeGift")%>|<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
		<script language="javascript">
		function addtogift(gid)
		{
			temp=window.open('GiftInfo.aspx?gid='+gid,'shopcat','width=700,height=850,scrollbars=yes,resizable=yes');
			temp.focus();
		}
		</script>
	</HEAD>
	<body>
	<% if (XpShop.WebUI.WebUtils.GiftApply(Request.Url.ToString())){%>
	    <div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
		    <!--位置导航开始-->
			<div class="path"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> > <%=GetResourceString("MemberCenter")%> > <%=GetResourceString("IntegralExchangeGift")%></div>
			<!--位置导航结束-->
			<div id="content">
				<div id="content_left_side">
					<!--会员中心导航开始-->
					<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
					<!--会员中心导航结束-->
				</div>
				<div id="content_middle_side">
					<!--内容开始-->
						<div class="mframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><div class="on"><%=GetResourceString("IntegralExchangeGift")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
							<%BindList();%>
							<asp:datalist id="dlList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"
								CellSpacing="0" CellPadding="5" Width="100%" Visible="true" GridLines="None">
								<ItemStyle CssClass="alignCenterTop"/>
								<ItemTemplate>
									<table cellpadding="3" cellspacing="0" border="0" width="150">
										<tr>
											<td colspan=2 align=center>
												<img src='upload/GiftPic/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' width="108" border=0>
											</td>
										</tr>
										<tr>
											<td align=right><%=GetResourceString("GiftName")%>：</td>
											<td>
												<%#DataBinder.Eval(Container.DataItem,"GiftName")%>
											</td>
										</tr>
										<tr>
											<td align="right"><%=GetResourceString("IntegralRequired")%>：</td>
											<td>
												<%#DataBinder.Eval(Container.DataItem,"Integral")%>
											</td>
										</tr>
										<tr>
											<td colspan=2 align="center"><a id="gift" href='GiftInfo.aspx?gid=<%#DataBinder.Eval(Container.DataItem,"GiftID")%>' ><%=GetResourceString("SelectExchange")%></a></td>
										</tr>
									</table>
								</ItemTemplate>
							</asp:datalist>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--内容结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>	
		<%} %>
	</body>
</HTML>
