<%@ Page language="c#" Codebehind="GiftInfo.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.GiftInfo" %>
<%@ 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" %>
<!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("ExchangeGifts")%>|<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
	</HEAD>
	<body>
	<% if (XpShop.WebUI.WebUtils.GiftApply(Request.Url.ToString())){%>
	    <div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			<div id="content">
		        <form id="Form1" method="post" runat="server">
			        <div class="mframe">
						        <div class="tl"></div>
						        <div class="tr"></div>
						        <div class="tm"><div class="on"><%=GetResourceString("ExchangeGifts")%></div></div>
						        <div class="ml"></div>
						        <div class="mr"></div>
						        <div class="mm">
							        <table width="100%" cellpadding="0" cellspacing="0" border="0">
						                <tr>
							                <td valign="top">
								                <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
									                <TR align="center">
										                <TD height="38" width="50">
										                </TD>
										                <TD height="38" align="left" width="200"><b><%=GetResourceString("GiftName")%></b></TD>
										                <TD height="38" width="80"><b><%=GetResourceString("IntegralRequired")%></b></TD>
										                <TD height="38" width="80"><b></b></TD>
										                <TD height="38" width="50"><b></b></TD>
										                <TD width="50"><b></b></TD>
										                <TD height="38" width="30"><b></b></TD>
										                <TD height="38" width="30"></TD>
									                </TR>
								                </TABLE>
								                <asp:datalist id="dlGift" Width="100%" RepeatColumns="1" Runat="server" DataKeyField="GiftID">
									                <ItemTemplate>
										                <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
											                <TR align="center">
												                <TD height="38" width="50px">
												                </TD>
												                <TD height="38" align="left" width="200"><%# DataBinder.Eval(Container.DataItem, "GiftName") %></TD>
												                <TD height="38" width="80px"><%# DataBinder.Eval(Container.DataItem, "Integral") %></TD>
												                <TD height="38" width="80px">
													                <asp:TextBox ID="txtIntegral" Runat=server Visible=False Text='<%# DataBinder.Eval(Container.DataItem, "Integral") %>'>
													                </asp:TextBox>
													                <asp:TextBox ID="txtID" Runat=server Visible=False Text='<%# DataBinder.Eval(Container.DataItem, "GiftID") %>'>
													                </asp:TextBox></TD>
												                <TD height="38" width="50px"></TD>
												                <TD width="50px">
												                </TD>
												                <TD height="38" width="30px"></TD>
												                <TD height="38" width="30px"><A href='Actions.aspx?Action=DeleteGiftItem&giftID=<%# DataBinder.Eval(Container.DataItem, "GiftID") %>'><IMG height="16" src="images/delete.gif" width="16" border="0"></A></TD>
											                </TR>
										                </TABLE>
									                </ItemTemplate>
								                </asp:datalist>
							                </td>
						                </tr>
						                <tr>
							                <td align="right"><b><%=GetResourceString("IntegralRequired")%>：</b><%=GetTotal()%>,<b><%=GetResourceString("YourCredit")%>：</b><%=GetMemberScore()%></td>
						                </tr>
					                </table>
						        </div>
					            <div class="bl"></div>
					            <div class="br"></div>
					            <div class="bm"></div>
					        </div>
				            <div class="mframe">
						        <div class="tl"></div>
						        <div class="tr"></div>
						        <div class="tm"><div class="on"><%=GetResourceString("ReceiverInfo")%></div></div>
						        <div class="ml"></div>
						        <div class="mr"></div>
						        <div class="mm">
							        <table cellSpacing="0" cellPadding="0" align="center" width="98%">
						                <tr>
							                <td width="100"><%=GetResourceString("OrderEmail_ReceiverName")%>：</td>
							                <td>
								                <asp:TextBox id="txtReceiverName" runat="server"></asp:TextBox><font color="red">*</font></td>
						                </tr>
						                <tr>
							                <td><%=GetResourceString("ReceiverTelephone")%>：</td>
							                <td>
								                <asp:TextBox id="txtReceiverPhone" runat="server"></asp:TextBox><font color="red">*</font></td>
						                </tr>
						                <tr>
							                <td><%=GetResourceString("OrderEmail_ReceiverAddress")%>：</td>
							                <td>
								                <asp:TextBox id="txtReceiverAddress" runat="server" Width="300px"></asp:TextBox><font color="red">*</font></td>
						                </tr>
						                <tr>
							                <td><%=GetResourceString("ReceiverPostalcode")%>：</td>
							                <td>
								                <asp:TextBox id="txtReceiverPostalcode" runat="server"></asp:TextBox><font color="red">*</font></td>
						                </tr>
						                <tr>
							                <td height="10" colspan="2"></td>
						                </tr>
						                <tr>
							                <td height="10" colspan="2" align="center">
								                <asp:Button id="btnSave" runat="server" Text="确定上面的资料，提交"></asp:Button></td>
						                </tr>
					                </table>
						        </div>
					            <div class="bl"></div>
					            <div class="br"></div>
					            <div class="bm"></div>
					        </div>
		                </form>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>	
		<%} %>
	</body>
</HTML>
