<%@ Page Language="c#" CodeBehind="ComCart.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.ComCart" %>

<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/CartHeader.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <!--#include file="../../inc/encoding.inc"-->
    <title>
        <%=GetResourceString("ShoppingCart")%>--合并订单 </title>
    <!--#include file="../../inc/head.inc"-->
    <link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/mycart.css" rel="stylesheet" />
</head>
<body>
    <uc1:Header id="Header1" runat="server">
    </uc1:Header>
    <div class="xp-w clear">
        <div class="cart_step clear">
            <div style="float: left; margin-right: 20px;">
                <%=config.SiteLogo %></div>
            <ul>
                <li class="onc">1.我的购物车 </li>
                <li class="outco">2.选择订单 </li>
                <li class="outco">
                    <%-- 3.填写核对订单信息--%>
                    3.确认订单信息 </li>
                <li class="outcs">4.成功提交订单 </li>
            </ul>
        </div>
        <form action="ComOrder.aspx" method="get">
        <!--内容开始-->
        <div id="CartInfo">
            <%if (pnum > 0){%>
            <%--购买的商品--%>
            <table cellspacing="0" align="Center" rules="none" class="cart_product" border="0">
                <tr class="title">
                    <td align="Center">商品编号</td>
                    <td align="Center">商品名称</td>
                    <td align="Center">规格</td>
                    <td align="Center">价格</td>
                    <td align="Center">商品数量</td>
                </tr>
                <asp:Repeater runat="server" ID="rptShoppingCart">
                    <ItemTemplate>
                        <tr class="item">
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "ProductNo") %>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
                                <br />
                                <asp:Repeater ID="rptPresent" runat="server" DataSource='<%# GetPresent(DataBinder.Eval(Container.DataItem, "ProductID").ToString()) %>'>
                                    <ItemTemplate>
                                        <span style="color: Red;">[赠品]</span><%# DataBinder.Eval(Container.DataItem, "PresentName") %>
                                        <span style="color: Red;">×<%# DataBinder.Eval(Container.DataItem,"PresentNum") %></span><br />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </td>
                            <td align="left">
                                <%# DataBinder.Eval(Container.DataItem, "ProductSpecs") %>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "UnitPrice","{0:f2}") %>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Quantity") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <%} %>
            <%if (giftNum > 0)
              {%>
            <br />
            兑换的礼品
            <table cellspacing="0" align="Center" rules="none" class="cart_product" border="0">
                <tr style="background-color: #EBF4FB; height: 20px;">
                    <td align="center">礼品名称</td>
                    <td align="center">礼品数量</td>
                    <td align="center">积分小计</td>
                </tr>
                <asp:Repeater runat="server" ID="rptGift">
                    <ItemTemplate>
                        <tr class="item">
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Quantity") %>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "GiftScore") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <%} %>
            
            <div style="padding-top: 20px; zoom: 1;">
                <div style="float: right;"><input type="image" name="ibtNextStep" id="ibtNextStep" src="<%=webSite %>Images/<%=GetResourceString("ButtonCartNext")%>" style="border-width: 0px;" /></div>
            </div>
            <div class="clear"></div>
        </div>
        <input type="hidden" name="OrderID" value="<%=Request.QueryString["OrderID"] %>" />
        <input type="hidden" name="chk_orders" value="<%=Request.QueryString["chk_orders"] %>" />
        </form>
        <!--内容结束-->
    </div>
    <uc1:Footer id="Footer1" runat="server">
    </uc1:Footer>
</body>
</html>
