<%@ control language="C#" autoeventwireup="true" inherits="Controls_CartOne, Huibo.Net" %>
<div class="flowBox">
    <asp:DataList ID="ShowCart" OnItemDataBound="ShowCart_ItemDataBound" runat="server"
        Width="100%" OnDeleteCommand="ShowCart_DeleteCommand">
        <HeaderTemplate>
            <table width="99%" align="center" border="0">
                <tr>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            商品名称</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            商品样式</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            市场价格</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            您的价格</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            数量</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            小计</div>
                    </td>
                    <td bgcolor="f5f5f5" align="center">
                        <div align="center" class="cartfujia">
                            操作</div>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="middle" bgcolor="#ffffff" class="f6">
                    <asp:HyperLink ID="PicUrl" runat="server">
                        <asp:Label ID="Name" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.id")%>'></asp:Label>
                    </asp:HyperLink></td>
                <td align="middle" bgcolor="#ffffff">
                    <asp:Label ID="ProColor" runat="server" Text=""></asp:Label>
                    <asp:Label ID="ProSize" runat="server" Text=""></asp:Label>
                </td>
                <td align="middle" bgcolor="#ffffff">
                    ￥
                    <asp:Label ID="Price2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.id")%>'></asp:Label>元</td>
                <td align="middle" bgcolor="#ffffff">
                    ￥
                    <asp:Label ID="Price" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.orderid")%>'></asp:Label>元</td>
                <td align="middle" bgcolor="#ffffff">
                    <asp:TextBox ID="pronum" class="inputBg" Style="text-align: center; width: 30px;"
                        Text='<%# DataBinder.Eval(Container, "DataItem.productnum")%>' runat="server"></asp:TextBox>
                    <asp:HiddenField ID="ID" Value='<%# DataBinder.Eval(Container, "DataItem.id")%>'
                        runat="server" />
                </td>
                <td align="middle" bgcolor="#ffffff">
                    ￥<asp:Label ID="TotalPrice" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.productnum")%>'></asp:Label>元</td>
                <td align="middle" bgcolor="#ffffff">
                    <asp:ImageButton ID="Delete" ImageUrl="images/b-delete.gif" CommandName="Delete"
                        runat="server" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:DataList>
    <table width="99%" align="center" border="0">
        <tr>
            <td bgcolor="#ffffff" align="left">
                购物金额总计 ￥<asp:Label ID="realTotal" runat="server" Text=""></asp:Label>元，比市场价 ￥<asp:Label
                    ID="totalPrice" runat="server" Text=""></asp:Label>元 <font color="red">节省了 ￥<asp:Label
                        ID="totalSpare" runat="server" Text=""></asp:Label>元 (<asp:Label ID="percentSpare"
                            runat="server" Text=""></asp:Label>%)</font>
            </td>
            <td align="right" bgcolor="#ffffff">
                <asp:Button ID="Clear" class="bnt_blue_1" runat="server" Text="清空购物车" OnClick="Clear_Click" />
                <asp:Button ID="Update" class="bnt_blue_1" runat="server" Text="更新购物车" OnClick="Update_Click" />
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td style="height: 10px">
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="5" width="99%" align="center" bgcolor="#dddddd"
        border="0">
        <tr>
            <td bgcolor="#ffffff">
                <a href="Index.aspx">
                    <asp:Image ID="continu" ImageUrl="images/continue.gif" runat="server" /></a></td>
            <td align="right" bgcolor="#ffffff">
                <a href="CartTwo.aspx">
                    <asp:Image ID="checkout" ImageUrl="images/checkout.gif" runat="server" /></a></td>
        </tr>
    </table>
</div>
