<%@ Page language="c#" Codebehind="MyCoupon.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.MyCoupon" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.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="LoginForm" Src="Modules/LoginForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.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("DiscountCoupons")%>|<%=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.Coupon(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("IntegralExchangeCoupons")%></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("DiscountCoupons")%></div></div>
						    <div class="ml"></div>
						    <div class="mr"></div>
						    <div class="mm">
						        <%BindList(4,1);%>
						        <asp:datalist id="dlList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"
							        CellSpacing="0" CellPadding="0" Width="100%" Visible="true" GridLines="None">
							        <ItemStyle CssClass="alignCenterTop" />
							        <ItemTemplate>
								        <table cellpadding="3" cellspacing="0" border="0" width="240">
									        <tr>
										        <td colspan="2" align="center">
											        <a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><img src='Upload/CouponPic/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' width="108" border=0></a>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("CouponsName")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"Name")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("ProductDiscount")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"Price")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("LowestConsumption")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"LowestConsumption")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("ExchangeExpiredTime")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"ExchangeExpireDate","{0:D}")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("ExpiredTime")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"ExpireDate","{0:D}")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("IntegralRequired")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"score")%>
										        </td>
									        </tr>
									        <tr>
										        <td colspan="2" align="center"><a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><%=GetResourceString("SelectExchange")%></a></td>
									        </tr>
								        </table>
							        </ItemTemplate>
						        </asp:datalist>
					        </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("CashCoupons")%></div></div>
						    <div class="ml"></div>
						    <div class="mr"></div>
						    <div class="mm">
						        <%BindList(4,2);%>
						        <asp:datalist id="dlList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"
							        CellSpacing="0" CellPadding="0" Width="100%" Visible="true" GridLines="None">
							        <ItemStyle CssClass="alignCenterTop" />
							        <ItemTemplate>
								        <table cellpadding="3" cellspacing="0" border="0" width="240">
									        <tr>
										        <td colspan="2" align="center">
											        <a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><img src='Upload/CouponPic/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' width="108" border=0></a>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("CouponsName")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"Name")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("LowestConsumption")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"LowestConsumption")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("SubstituteMoney")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"Price")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("ExchangeExpiredTime")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"ExchangeExpireDate","{0:D}")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("ExpiredTime")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"ExpireDate","{0:D}")%>
										        </td>
									        </tr>
									        <tr>
										        <td align="right"><%=GetResourceString("IntegralRequired")%>：</td>
										        <td>
											        <%#DataBinder.Eval(Container.DataItem,"score")%>
										        </td>
									        </tr>
									        <tr>
										        <td colspan="2" align="center"><a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><%=GetResourceString("SelectExchange")%></a></td>
									        </tr>
								        </table>
							        </ItemTemplate>
						        </asp:datalist>
				            </div>
				            <div class="bl"></div>
				            <div class="br"></div>
				            <div class="bm"></div>
				        </div>
					    <div class="mframe" style="display:none">
						    <div class="tl"></div>
						    <div class="tr"></div>
						    <div class="tm"><div class="on"><%=GetResourceString("GiftCoupons")%></div></div>
						    <div class="ml"></div>
						    <div class="mr"></div>
						    <div class="mm">
						    <%BindList(4,3);%>
						    <asp:datalist id="dlList2" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"
							    CellSpacing="0" CellPadding="0" Width="100%" Visible="true" GridLines="None">
							    <ItemStyle CssClass="alignCenterTop" />
							    <ItemTemplate>
								    <table cellpadding="3" cellspacing="0" border="0" width="240">
									    <tr>
										    <td colspan="2" align="center">
											    <a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><img src='Upload/CouponPic/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' width="108" border=0></a>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("CouponsName")%>：</td>
										    <td>
											    <%#DataBinder.Eval(Container.DataItem,"Name")%>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("ExchangeGifts")%>：</td>
										    <td>
											    <%#DataBinder.Eval(Container.DataItem,"Price")%>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("LowestConsumption")%>：</td>
										    <td>
											    <%#DataBinder.Eval(Container.DataItem,"LowestConsumption")%>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("UesArea")%>：</td>
										    <td>
											    <%#DataBinder.Eval(Container.DataItem, "Conditions")%>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("ExpiredTime")%>：</td>
										    <td>
											    <%#DataBinder.Eval(Container.DataItem,"ExpireDate","{0:D}")%>
										    </td>
									    </tr>
									    <tr>
										    <td align="right"><%=GetResourceString("IntegralRequired")%>：</td>
										    <td>
											    <%# DataBinder.Eval(Container.DataItem,"Score")%>
										    </td>
									    </tr>
									    <tr>
										    <td colspan="2" align="center"><a href='CouponFavourites.aspx?CouponID=<%#DataBinder.Eval(Container.DataItem,"CouponID")%>'><%=GetResourceString("SelectExchange")%></a></td>
									    </tr>
								    </table>
							    </ItemTemplate>
						    </asp:datalist>
				        </div>
				        <div class="bl"></div>
				        <div class="br"></div>
				        <div class="bm"></div>
				    </div>
				    <!--内容结束-->
				    <!-- 翻页-->
					<form id="Form2" method="post" runat="server">
						<table width="100%">
							<tr>
								<td><asp:hyperlink id="hplPrev" runat="server"><%=GetResourceString("PreviousPage")%></asp:hyperlink>[&nbsp;
									<asp:label id="lbPage" Runat="server"></asp:label>&nbsp;]
									<asp:hyperlink id="hplNext" runat="server"><%=GetResourceString("NextPage")%></asp:hyperlink></td>
							</tr>
						</table>
					</form>
				</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>

