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

<%@ Register Src="~/Admin/UserControl/SearchGoodsWindow.ascx" TagName="SearchGoodsWindow"
    TagPrefix="uc1" %>
<%@ 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/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../css/jquery.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManagerPage" runat="server">
        </asp:ScriptManager>
        <div id="all">
            <div class="validate">
                <asp:ValidationSummary ID="ValidationSummaryPage" CssClass="val_ys" runat="server"
                    DisplayMode="List" ForeColor="#FF6600" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ErrorMessage="搭配名称不能为空"
                    ControlToValidate="AssembledName" Display="None"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="AssembledRemark"
                    Display="None" ErrorMessage="搭配介绍不能为空"></asp:RequiredFieldValidator>
            </div>
            <div class="come_title">
                <h2>
                    搭配基本信息</h2>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/video/binding_demo/binding_demo.htm" target="_blank">
                        <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=20" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="bg_1" style="width: 80px; text-align: right">
                            搭配名称：</td>
                        <td>
                            <input class="input" style="width: 220px" id="AssembledName" runat="server" /><h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">请填写搭配的名称，例如：200元任选5样。</span></h4>
                        </td>
                    </tr>
                   
                    <tr>
                        <td style="width: 80px; text-align: right" class="bg_1">
                            搭配图片：</td>
                        <td>
                            <asp:FileUpload ID="FileUploadImage" CssClass="input" Width="220px" runat="server" /><h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">搭配得图片，进入购物车用。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 80px; text-align: right" class="bg_1">
                            搭配介绍：</td>
                        <td>
                            <input class="input" style="width: 220px" name="newmessage22" id="AssembledRemark"
                                runat="server" /><h4>
                                    <img src="../css/images/help.png" />
                                    <span style="color: #999999">对搭配得一个简单介绍。</span></h4>
                        </td>
                    </tr>
                </table>
            </div>
            <!--添加商品套装-->
            <div class="come_title_bai">
                <h2>
                    选择搭配商品</h2>
                <input type="button" value="选择商品" class="butt_tle" onclick='ShowDiv("Bindings")'
                    style="height: 20px; width: 70px" />
            </div>
            <div class="k_all6">
                <table width="100%" cellpadding="0" cellspacing="0" id="bk_3">
                    <tr>
                        <th style="width: 150px; height: 20px;">
                            商品型号</th>
                        <th style="width: 350px; height: 20px;">
                            商品名称</th>
                        <th style="height: 20px">
                            操作</th>
                    </tr>
                    <asp:Repeater ID="RepeaterTable" runat="server" OnItemCommand="RepeaterTable_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:Label ID="GoodsID" runat="server" Text='<%# ((string[])Container.DataItem)[2] %>'
                                        ToolTip='<%# ((string[])Container.DataItem)[0] %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="GoodsNumber" runat="server" Text='<%# ((string[])Container.DataItem)[1] %>'></asp:Label>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/del_imgred.gif" alt="删除" width="14" height="10" /><asp:LinkButton
                                        ID="DeleteRow" runat="server" CssClass="grey" CommandName="Remove" CommandArgument="<%# Container.ItemIndex %>"
                                        CausesValidation="false">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td colspan="2" class="ys_1">
                            总价：<asp:Label ID="GoodsAllPrice" runat="server" Text="0"></asp:Label></td>
                        <td class="ys_1">
                            优惠价：<asp:Label ID="BindingPrice" runat="server" Text="0"></asp:Label></td>
                    </tr>
                </table>
            </div>
            <div class="Add_aa" id="Bindings" style="display: none">
                <uc1:SearchGoodsWindow ID="SearchGoodsWindow" runat="server" />
            </div>
        </div>
        <div class="sub">
            <asp:Button ID="Submit" runat="server" OnClick="Submit_Click" Text="确认提交" CssClass="but_add" />
        </div>
    </form>
</body>
</html>
