<%@ Page Language="C#" MasterPageFile="~/Includes/Product.master" AutoEventWireup="true" CodeFile="Cart.aspx.cs" Inherits="Cart" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1" >
  <tr bgcolor=#f1f1f1 align=center>
    <td width=25%  >商品名称</td>
    <td width=15% >单价</td>
    <td width=15% >数量</td>
    <td width=15% >总价</td>
    <td width=10% >删除</td>
  </tr>
  </table>
   <asp:Repeater runat="server" ID="cartrepeater" OnItemDataBound="cartrepeater_ItemDataBound" OnItemCommand="cartrepeater_ItemCommand" OnItemCreated="cartrepeater_ItemCreated">
       <ItemTemplate>
          <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1">
          <tr bgcolor="white" align=center>
            <td width=25% >
                <asp:Label runat="server" ID="cartidlabel" Text='<%#Eval("cartid") %>'></asp:Label>
                <asp:Label runat="server" ID="productidlabel" Text='<%#Eval("productid") %>'></asp:Label>
               <%#Eval("productname") %>
            </td>
            <td width=15% >
               <asp:Label runat="server" ID="pricelabel"></asp:Label>   
            </td>
            <td width=15% >
               <asp:TextBox runat="server" ID="counttb" Width="30px"></asp:TextBox>
            </td>
            <td width=15% >
                <asp:Label runat="server" ID="countpricelabel"></asp:Label>  
            </td>
            <td width=10% >
               <asp:ImageButton runat="server" ID="deletebt" ImageUrl="images/trash.gif" CausesValidation="false" CommandName="deletecart" />
            </td>
          </tr>
          </table>
       </ItemTemplate>
   </asp:Repeater>
   <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1" >
      <tr bgcolor="#ffffff">
        <td height=30 colspan=5 align=center > 购物车里有商品：<font color=red> <asp:Literal runat="server" ID="counttypelieteral"></asp:Literal> </font> 种　总数：<font color=red> <asp:Literal runat="server" ID="countnumlieteral"></asp:Literal> </font> 件　共计：<font color=red> <asp:Literal runat="server" ID="countpricelieral"></asp:Literal> </font> 元　</td>
      </tr>
      <tr bgcolor="#ffffff">
                    <td align="center" height=50 colspan=5>
                    <input class="go-wenbenkuang" type="button" name="imageField12" value="继续购物" onclick="window.location.href='Product_List.aspx'"/>
					<asp:Button runat="server" CssClass="go-wenbenkuang" ID="updatecount" Text="修改数量" OnClick="updatecount_Click" />
                    <asp:Button runat="server" CssClass="go-wenbenkuang" ID="clearcount" Text="清空购物车" OnClick="clearcount_Click" />
                    <asp:Button runat="server" ID="orderbt" CssClass="go-wenbenkuang" Text="去收银台" OnClick="orderbt_Click" />
                    </td>
                  </tr>
                  <tr bgcolor="#ffffff">
                    <td height="60" colspan="5" STYLE="PADDING-LEFT: 20px" align="left"> · 如果您想继续购物，请点选继续购物<br>
                      · 如果您想更新已在购物车内的产品，请先修改，然后点选修改数量<br>
                      · 如果您想全部取消已订购在购物车中的产品，请点选清空购物车<br>
                      · 如果您满意您所购买的产品，请点选去收银台(会员须先登陆，非会员须先免费注册成为会员)<br>                    </td>
                  </tr>
  </table>
</asp:Content>

