<%@ Control Language="C#"  %>
<%@ Import Namespace="ShopNum1.WebControl"  %>
 
<div class="mod3">
    <div class="title clearfix"> <span class="left"></span> <span class="right"></span>
      
      <span class="fl" style="font-size:16px">促销活动列表</span>
      <span class="fr" style="margin-top:6px">
						<asp:ImageButton 
                        ID="ImageButtonBuyAndGive" runat="server" 
                        ImageUrl="../Images/BuyAndGive.gif" ToolTip="买几送几" />
                        <asp:ImageButton ID="ImageButtonFullAndFavourTicket" runat="server" 
                        ImageUrl="../Images/FullAndFavourTicket.gif" 
                        ToolTip="满额赠优惠券" />&nbsp;<asp:ImageButton ID="ImageButtonFullAndGiveGift" runat="server" 
                        ImageUrl="../Images/FullAndGiveGift.gif" ToolTip="满额赠送礼品" />&nbsp;<asp:ImageButton ID="ImageButtonPresentScore" runat="server" 
                        ImageUrl="../Images/PresentScore.gif" ToolTip="满额赠送积分" />&nbsp;<asp:ImageButton ID="ImageButtonFullAndDiscount" runat="server" 
                        ImageUrl="../Images/FullAndDiscoun.gif" ToolTip="满额打折" />&nbsp;<asp:ImageButton ID="ImageButtonFullAndFree" runat="server" 
                        ImageUrl="../Images/FullAndFree.gif" ToolTip="满额免费" /></span></div>
    <div class="content " style="padding-top:15px">
	<!-- 买几送几(BuyAndGive_Operate)  -->
 <asp:DataList ID="DataListBuyAndGive" runat="server" RepeatColumns="1" Width="100%" 
            BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>   
 </ItemTemplate>
</asp:DataList>         

<!-- 满额赠优惠券(FullAndFavourTicket_Operate)  -->
 <asp:DataList ID="DataListFullAndFavourTicket" runat="server" RepeatColumns="1" 
            Width="100%" BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>
    
 </ItemTemplate>
</asp:DataList> 

<!-- 满额赠送礼品(FullAndGiveGift_Operate) -->
 <asp:DataList ID="DataListFullAndGiveGift" runat="server" RepeatColumns="1" 
            Width="100%" BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
     <table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>

 </ItemTemplate>
</asp:DataList> 

<!-- 满额赠送积分(PresentScore_Operate) -->
 <asp:DataList ID="DataListPresentScore" runat="server" RepeatColumns="1" Width="100%" 
            BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>
    
 </ItemTemplate>
</asp:DataList>   

<!-- 满额打折(FullAndDiscount_Operate) -->
 <asp:DataList ID="DataListFullAndDiscount" runat="server" RepeatColumns="1" 
            Width="100%" BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
     <table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>

 </ItemTemplate>
</asp:DataList>   

<!-- 满额免费(FullAndFree_Operate)-->
 <asp:DataList ID="DataListFullAndFree" runat="server" RepeatColumns="1" Width="100%" 
            BorderWidth="0">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="p_table" >
  <tr>
    <td width="10%">优惠活动名称：</td>
    <td colspan="3"><%# DataBinder.Eval(Container, "DataItem(Name)", "{0}")%></td>

  </tr>
  <tr>
    <td>优惠开始时间：</td>
    <td width="38%"><%# DataBinder.Eval(Container, "DataItem(StartTime)", "{0}")%></td>
    <td  width="14%">优惠范围：</td>
    <td><%# SalesPromotion.ChangeSalesPromotionProduct(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠结束时间：</td>
    <td><%# DataBinder.Eval(Container, "DataItem(EndTime)", "{0}")%></td>
    <td>享受优惠的会员等级：</td>
    <td><%# SalesPromotion.ChangeMemberRankBuyAndGive(DataBinder.Eval(Container, "DataItem(Guid)", "{0}"))%></td>
  </tr>
  <tr>
    <td>优惠活动方式：</td>
    <td  colspan="3"> <%# SalesPromotion.ChangePromotionType(DataBinder.Eval(Container, "DataItem(PromotionType)", "{0}"))%></td>
 
  </tr>
</table>

 </ItemTemplate>
</asp:DataList>  	    

    </div>
  </div>
<!-- 分页部分-->
    <div class="pager" >
<asp:Label ID="LabelPageMessage" runat="server"></asp:Label>

&nbsp;<asp:HyperLink ID="lnkFirst" runat="server"><span class="fpager">[ 首页</span></asp:HyperLink>
<asp:HyperLink ID="lnkPrev" runat="server"><span class="fpager">| 上一页</span></asp:HyperLink>
<asp:HyperLink ID="lnkNext" runat="server"><span class="fpager">| 下一页</span></asp:HyperLink>
<asp:HyperLink ID="lnkLast" runat="server"><span class="fpager">| 末页 ]</span></asp:HyperLink>
&nbsp;<span class="fpager">转到 <asp:Literal ID="lnkTo" runat="server" /> 页</span>

</div>  
