<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupBuyList.aspx.cs" Inherits="SocoShop.Web.GroupBuyList" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Web" %>
<%@ Register Src="~/Plugins/Template/Red/Controls/Head.ascx" TagName="Head" TagPrefix="SocoShop" %>
<%@ Register Src="~/Plugins/Template/Red/Controls/Top.ascx" TagName="Top" TagPrefix="SocoShop" %>
<%@ Register Src="~/Plugins/Template/Red/Controls/Foot.ascx" TagName="Foot" TagPrefix="SocoShop" %>
<!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 id="Head1" runat="server">
    <SocoShop:Head ID="Head" runat="server" />
    <style type="text/css">
     .price{
     	 font-weight:bold; font-size:16px; color:#A10000
     }
     .info li{
     	line-height:20px; height:20px; overflow:hidden;
     }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <SocoShop:Top ID="Top" runat="server" />
    <div class="main">
        <div class="position">首页 > 团购活动</div>
        <div class="height10"></div>
        <%foreach(GroupBuyInfo groupBuy in groupBuyList){ %>
        <div class="favorableActivityList">
            <div class="photo"><a href="GroupBuyDetail.aspx?ID=<%=groupBuy.ID%>" target="_blank"><img src="<%=groupBuy.Photo%>" onload="photoLoad(this,300,120)"  /></a></div>
            <ul class="info">
                <li class="name"><a href="GroupBuyDetail.aspx?ID=<%=groupBuy.ID%>"><%=groupBuy.Name%></a> </li>
                <li class="time">活动时间：<%=groupBuy.StartDate.ToString("yyyy年MM月dd日")%> — <%=groupBuy.EndDate.ToString("yyyy年MM月dd日")%> </li>
                <li>价格：<span class="price">￥<%=groupBuy.Price %></span></li>
                <li>团购数量要求：<span><%=groupBuy.MinCount %></span> - <span><%=groupBuy.MaxCount %></span></li>
                <li>单人限购数量：<span><%=groupBuy.EachNumber %></span></li>
            </ul>
        </div>
        <%} %>
        <SkyCES:CommonPager ID="MyPager" runat="server" />
    </div>
    <SocoShop:Foot ID="Foot" runat="server" />
    </form>
</body>
</html>
