<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Promotion.aspx.cs" Inherits="XpShop.WebUI.Promotion" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <!--#include file="../../inc/encoding.inc"-->
    <title>促销专题</title>
    <!--#include file="../../inc/head.inc"-->
    <link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/list.css" type="text/css" rel="stylesheet" />
    <script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/AjaxLimit.js" type="text/javascript"></script>
</head>
<body>
    <uc1:Header id="Header1" runat="server"></uc1:Header>
    <div class="xp-w"><%=rule.RuleAD %></div>
    <div class="xp-w" style="background-color:#EEE9EE;height:25px;padding:5px 5px 2px">
        <div style="float:left;"><%=rule.RuleName %></div>
        <div style="float:right;">
            <div class="xp-qg-time" id="timener"  style="text-align:center;"></div>
            <script>
	            var t=new calculagraph();
	            t._id='timener';
	            t._sT='<%=rule.BeginTime%>';
	            t._cT='<%=DateTime.Now%>';
	            t._eT='<%=rule.EndTime%>';
	            t._interval();
            </script>
        </div>
    </div>
    <div class="xp-w clear">
        <div></div>
        <div class="pro_wlist">
            <ul>
        <!--商品列表开始-->
        <form id="form1" runat="server">
        <asp:Repeater ID="rptPdt" runat="server">
            <ItemTemplate>
            <li style="float:left;width:245px;">
			    <table cellpadding="3" cellspacing="0" width="100%">
	                <tr>
		                <td>
			               <div class="xp-pdt-img">
                                <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" >
                                    <img width="160" height="160" src="<%=webSite %>upload/ProductImg/<%# DataBinder.Eval(Container.DataItem,"ImgFolder")%><%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" alt='' />
                                </a>
                            </div>
				        </td>
		            </tr>
		            <tr>
                        <td>
                           <div class="qg-pdtname"> <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="qg-shortdesc"><%#DataBinder.Eval(Container.DataItem,"ShortDesc")%></div>
                        </td>
                    </tr>
	                <tr>
	                    <td>
	                        百悦价：<span style="text-decoration:line-through;"><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%></span>
	                    </td>
	                </tr>
	                <tr>
	                    <td>
	                        节省：￥<%#string.Format("{0:f2}", (decimal)DataBinder.Eval(Container.DataItem, "MemberPrice") - (decimal)DataBinder.Eval(Container.DataItem, "PmtPrice"))%>
	                    </td>
	                </tr>
	                <tr>
	                    <td style="color:#ff4e00;">
	                        抢购价：<span class="limitprice">￥<%#DataBinder.Eval(Container.DataItem, "PmtPrice", "{0:f}")%></span>(<%#string.Format("{0:f1}", (decimal)DataBinder.Eval(Container.DataItem, "PmtPrice") * 10 / (decimal)DataBinder.Eval(Container.DataItem, "MemberPrice"))%>折)
	                    </td>
	                </tr>
		            <tr style="display:none;">
		                <td align="center" class="limitbt">
		                    <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank"><div class="buyLimit_btn">抢购</div></a>
		                </td>
		            </tr>
	            </table>
			</li>
			</ItemTemplate>
        </asp:Repeater>
        
        <!--商品列表结束-->
        </ul>
        <!-- 翻页开始-->
        <asp:panel id="plPage" visible="true" runat="server">		
		    <div class="page clear">
                <div class="fpage clearfix">
                    <asp:Label ID="lbPage" class="lb-page" runat="server"></asp:Label>
                </div>                                
		    </div>		
		</asp:panel>
		<!-- 翻页结束-->
		<asp:panel id="plNoProduct" visible="false" runat="server">
			<div style="margin:20px;">
				<h3>抱歉，没有找到符合条件的商品！</h3>
			</div>
		</asp:panel>
		</form>
		</div>
    </div>
    <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
	<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</html>
