<%@ page language="C#" autoeventwireup="true" inherits="Plugin_Gift, ShopWe" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>礼包</title>
    <link href="css/SelfSuitInfo.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="SelfSuitInfo_all">
            <div class="top_logo">
                <table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="300px" align="left">
                            <img src="../../Logo.jpg" alt="Logo" />
                        </td>
                        <td align="right">
                            <p>
                                <span style="color: #990000">您好，您现在的购物车中共有 <strong>
                                    <%=CartNumber %>
                                </strong>件商品</span></p>
                            <p>
                                <span style="color: #990000">一共需要支付<strong>￥：<%=CartAllMoney %></strong></span></p>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="Sel_top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30">
                            <ul>
                                <li><a href="../../index.aspx" class="withe">商城首页</a></li>
                                <li><a href="../../User.aspx" class="withe">我的订单</a></li>
                                <li><a href="../../User.aspx" class="withe">我的账户</a></li>
                                <li><a href="../../Flow.aspx" class="withe">购物车</a></li>
                                <li><a href="../../Search.aspx?act=search" class="withe">高级搜索</a></li>
                            </ul>
                        </td>
                        <td align="right" style="width: 300px">
                            <span style="color: #FFFFFF"><a href="../../Flow.aspx" class="withe" target="_blank">
                                立即查看我的购物车</a></span></td>
                    </tr>
                    <tr>
                    </tr>
                </table>
            </div>
            <div class="Sel_tltle">
                <img src="images/ad.jpg" alt="shopwe活动广告" />
            </div>
            <div class="Sel_tltle">
                <asp:Literal ID="LiteralGiftName" runat="server"></asp:Literal>&nbsp;<span style="color: #990000"><asp:Literal
                    ID="LiteralGiftPrice" runat="server"></asp:Literal>元</span></div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td valign="top" style="width: 310px">
                        <div class="img_300">
                            <asp:Image ID="GiftImage" Width="300px" Height="300px" runat="server" /></div>
                        <div class="S_title">
                            <img src="images/title.jpg" alt="礼包介绍" width="298" /></div>
                        <div class="S_all">
                            <asp:Literal ID="LiteralGiftRemark" runat="server"></asp:Literal></div>
                    </td>
                    <td valign="top">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td valign="top" style="height: 80px">
                                    <img src="images/bc.jpg" alt="步骤" /></td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="Sel_left_img">
                                        <img id="GoodsImg" src="images/img.jpg" width="120" height="120" alt="商品" runat="server" /></div>
                                    <div class="Sel_left_txte">
                                        <!--商品ID,进入礼包用-->
                                        <asp:Literal ID="LiteralGoodsID" runat="server" Visible="false"></asp:Literal>
                                        <asp:Literal ID="LiteralGoodsName" runat="server"></asp:Literal>&nbsp;<span style="font-size: 12px;
                                            color: #666666; font-weight: 100">原价：￥<span id="GoodsAttributePrice">请选择商品</span>
                                        </span>
                                    </div>
                                    <!--属性-->
                                    <div class="Price_sx">
                                        <asp:Literal ID="LiteralGetAttributeSpan" runat="server"></asp:Literal>
                                        <span class="Sel_left_kd">
                                            <asp:ImageButton ID="ImageButtonSubmit" ImageUrl="images/optionalGift_006.gif" Width="89"
                                                Height="21" runat="server" OnClick="ImageButtonSubmit_Click" />
                                        </span>
                                    </div>
                                    <!--属性-->
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td valign="top">
                                                <div class="le">
                                                    你可以在这里选择商品：</div>
                                                <div class="SL">
                                                    <asp:Repeater ID="RepeaterTable" runat="server" OnItemCommand="RepeaterTable_ItemCommand">
                                                        <ItemTemplate>
                                                            <div class="Sel_left_img_xun">
                                                                <asp:ImageButton ID="GoodsImage" runat="server" CommandName="SelectGoods" CommandArgument='<%#Eval("GoodsGuid").ToString() %>'
                                                                    ImageUrl='<%# GetGoodsImage(new Guid(Eval("GoodsGuid").ToString()),true) %>' />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top" style="width: 180px">
                        <div class="S_right_title">
                            您的礼包(可选<asp:Literal ID="LiteralGiftNumber" runat="server"></asp:Literal>件)</div>
                        <div class="S_right">
                            <asp:Repeater ID="RepeaterGift" runat="server" OnItemCommand="RepeaterGift_ItemCommand">
                                <HeaderTemplate>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td align="center">
                                            <p>
                                                <asp:ImageButton ID="GoodsImage" runat="server" ImageUrl='<%# GetGoodsImage(new Guid(Eval("GoodsID").ToString()),false) %>' />
                                            </p>
                                            <p>
                                                <%# Eval("GoodsName") %>
                                            </p>
                                            <p>
                                                <%# Eval("Attribute") %>
                                            </p>
                                            <p>
                                                <asp:ImageButton ID="RemoveGoodsFift" CommandName="Remove" ImageUrl="images/optionalGift_05.png"
                                                    ToolTip="移除此商品" runat="server" />
                                            </p>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table>
                                </FooterTemplate>
                            </asp:Repeater>
                            <div class="S_right_shop">
                                <p>
                                    礼包总数为&nbsp;<asp:Literal ID="LiteralGiftGoodsNumber" runat="server"></asp:Literal>件</p>
                                <p>
                                    <asp:ImageButton ID="BuyButton" ImageUrl="images/optionalGift_07.png" runat="server"
                                        OnClick="BuyButton_Click" />
                                </p>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
