<%@ page title="优惠券" language="C#" masterpagefile="~/shopdetail/MasterPage.master" autoeventwireup="true" inherits="shopdetail_Coupons, App_Web_w7a7wpou" enableviewstate="false" enableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
    $(function() {
        $(".fav").bind("click", function() {
            fav();
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="sblock mg_top coupons">
    <div class="tit">电子优惠券</div>
    <div class="cnt">
        <asp:Repeater ID="rptMain" runat="server">
        <HeaderTemplate>
        <ul>
        </HeaderTemplate>
        <ItemTemplate>
        <li>
            <center>
            <div class="name"><%# DataBinder.Eval(Container.DataItem, "title")%></div>
            <div class="img"><a target="_blank" href="/shopdetail/CouponsPrinting.aspx?couponid=<%# DataBinder.Eval(Container.DataItem, "couponid")%>"><img src="/uploadfiles/<%# DataBinder.Eval(Container.DataItem, "picurl") %>" /></a></div>
            <div class="time">有效日期：<%# Utils.GetCHSDate(DataBinder.Eval(Container.DataItem, "startdate"))%> 至 <%# Utils.GetCHSDate(DataBinder.Eval(Container.DataItem, "enddate")) %></div>
            <div class="print"><a class="p" target="_blank" href="/shopdetail/CouponsPrinting.aspx?couponid=<%# DataBinder.Eval(Container.DataItem, "couponid")%>"><img src="/images/print.gif" /></a> <a class="fav" href="javascript:void(0);"><img src="/images/favorite.gif" /></a></div></center>
            </li>
        </ItemTemplate>
        <FooterTemplate>
        </ul>
        </FooterTemplate>
        </asp:Repeater>
        <%if (rptMain.Items.Count == 0)
          { %>
        <div class="nodata">暂无优惠券</div>
        <%} %>
    </div>
    <div class="clear"></div>
</div>
</asp:Content>

