<%@ Control Language="C#"  EnableViewState="false"  %>
<%@ Import Namespace="ShopNum1.WebControl" %>
<%@ Import Namespace="ShopNum1.Common"%>
 
<div class="warp">
  <div class="ProductCartTitle">商品列表</div>
  <div class="ProductCart">
  
    <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#dddddd" style="text-align:center">
      <tr>
      <th></th>
        <th bgcolor="#ffffff">商品名称</th>
        <th bgcolor="#ffffff">商品属性</th>
        <th bgcolor="#ffffff">市场价</th>
        <th bgcolor="#ffffff">本店价</th>
        <th bgcolor="#ffffff">购买价格</th>
        <th bgcolor="#ffffff">购买数量</th>
        <th bgcolor="#ffffff">小计</th>
      </tr>
      <asp:Repeater ID="RepeaterShopCart1" runat="server">
<ItemTemplate>
      <tr>
      <td><asp:checkbox id="checkboxAll" runat="server" />
          <asp:HiddenField ID="HiddenFieldIsPresent" Value='<%# Eval("IsPresent")%>'  runat="server" />
        <asp:HiddenField ID="HiddenFieldGuid" Value='<%# Eval("Guid")%>'  runat="server" /></td>
        <asp:HiddenField ID="HiddenFieldProductGuid" Value='<%# Eval("ProductGuid")%>'  runat="server" /></td>
        <td bgcolor="#ffffff" align="center" width="140">
       
         <a href='ProductDetail.aspx?guid=<%# Eval("ProductGuid") %>'   target="_blank"> 
                                    <asp:Image ID="ImageProduct" runat="server" Height="100px" 
                  ImageUrl= '<%# Globals.ImagePath+"s_"+Eval("OriginalImge") %>'
                    Width="100px" />
                                     </a><br />
                                     
         <%# Eval("Name")%><asp:Label ID="LabelIsPresent" runat="Server" Text="" ForeColor="Red"  /></td>
        <td bgcolor="#ffffff"><%# Eval("Attributes")%></td>
        <td align="right" bgcolor="#ffffff"><%# Globals.MoneySymbol%><asp:Label ID="labelMarketPrice" runat="server" Text=' <%# Eval("MarketPrice")%>' /></td>
        <td align="right" bgcolor="#ffffff"><%# Globals.MoneySymbol%><%# Eval("ShopPrice")%></td>
        <td align="right" bgcolor="#ffffff"><%# Globals.MoneySymbol%><asp:Label ID="labelBuyPrice" runat="server" Text=' <%# Eval("BuyPrice")%>' />
        </td>
        <td align="right" bgcolor="#ffffff"><asp:TextBox  ID="TextBoxBuyNumber" runat="server" Text=<%# Eval("BuyNumber")%>></asp:TextBox>
        </td>
        <td align="right" bgcolor="#ffffff"><%# Globals.MoneySymbol%><asp:Label ID="labelAll" runat="server" /></td>
      </tr>
      
</ItemTemplate>
</asp:Repeater>
    </table>
    <br/><%# Globals.MoneySymbol%>
    <table width="100%" border="0" cellpadding="5" cellspacing="0" style="font-size:14px;margin-bottom:6px;">
      <tr>
        <td > 购物金额小计
         <%# Globals.MoneySymbol%><asp:Label ID="labelAllPrice" runat="server" /> ，
        比市场价 ：<span class="Price"><%# Globals.MoneySymbol%><asp:Label ID="labelMaretPrice" runat="server" /></span> 节省了
      <span class="StorePrice">   <%# Globals.MoneySymbol%><asp:Label ID="labelLower" runat="server" /></span> </td>
        <td align="right" >
         <asp:ImageButton ID="ImageButtonDelete" runat="server"  
                ImageUrl="../Images/Delete.gif" Height="25px"  />
        <asp:ImageButton ID="ImageButtonRemove" runat="server"  ImageUrl="../Images/remove.gif"  />
		<asp:ImageButton ID="ImageButtonUpdate" runat="server"  
                ImageUrl="../Images/update.gif" 
                 /></td>
      </tr>
    </table>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td><a href="./"><img src='<%=ResolveUrl(Globals.SkinPath+"/Images/continue.gif") %>' alt="continue" /></a>
        
        </td>
        <td align="right">
        <!-- 去结算 -->
		<asp:ImageButton ID="ImageButtonPay" runat="server"  ImageUrl="../images/checkout.gif"  />
                </td>
      </tr>
    </table>
  </div>
  <div class="ProductCartDown"></div>
</div>
<asp:HiddenField ID="HiddenFieldMemLoginID" Value="0"  runat="server" />
<asp:HiddenField ID="HiddenFieldShopCart2" Value="ShoppingCart2.aspx"  runat="server" />

 <div class="warp">
  <div class="ProductCartTitle">您能参加以下优惠活动</div>
  <div class="ProductCart">
<table width="100%" border="0" cellspacing="1" cellpadding="0" style="text-align:center;line-height:150%;background-color:#e1e1e1" >
  <tr style="font-weight:bold;line-height:200%">
    <td width="8%" >参加活动 </td>
    <td  width="10%">活动名称</td>
    <td width="12%">开始时间</td>
    <td width="12%">结束时间</td>
    <td>需要会员等级</td>
    <td width="9%">优惠方式</td>
    <td width="10%">优惠范围</td>
    <td>活动描述</td>
  </tr>
  <!-- 买几送几(BuyAndGive_Operate)  -->
  <asp:Repeater ID="RepeaterBuyAndGive" runat="server" >
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td >  <%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
   </ItemTemplate>
</asp:Repeater>
<!-- 满额赠优惠券(FullAndFavourTicket_Operate)  -->
<asp:Repeater ID="RepeaterFullAndFavourTicket" runat="server" >
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
   </ItemTemplate>
</asp:Repeater> 
<!-- 满额赠送礼品(FullAndGiveGift_Operate) -->
<asp:Repeater ID="RepeaterFullAndGiveGift" runat="server" >
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%><br /></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
  </ItemTemplate>
</asp:Repeater> 
<!-- 满额赠送积分(PresentScore_Operate) -->
 <asp:Repeater ID="RepeaterPresentScore" runat="server">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
 </ItemTemplate>
</asp:Repeater> 
<!-- 满额打折(FullAndDiscount_Operate) -->
  <asp:Repeater ID="RepeaterFullAndDiscount" runat="server" >
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
   </ItemTemplate>
</asp:Repeater>  
<!-- 满额免费(FullAndFree_Operate)-->
  <asp:Repeater ID="RepeaterFullAndFree" runat="server">
<%-- <HeaderTemplate>       
</HeaderTemplate>--%><ItemTemplate>
  <tr>
    <td><asp:CheckBox ID="CheckBoxAttention" runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span></td>
    <td><%# Eval("Name")%></td>
    <td><%# Eval("StartTime")%></td>
    <td><%# Eval("EndTime")%></td>
    <td><%# CanAttentionPromotion.ChangeMemberRankBuyAndGive(Eval("Guid").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangePromotionType(Eval("PromotionType").ToString())%></td>
    <td><%# CanAttentionPromotion.ChangeSalesPromotionProduct(Eval("Guid").ToString())%></td>
    <td><%# Eval("Description")%></td>
  </tr>
   </ItemTemplate>
</asp:Repeater>  
</table>
  </div>
  <div class="ProductCartDown"></div>
</div>
    </div>
  </div>


