<%@ control language="C#" autoeventwireup="true" inherits="UserControl_SearchGoodsWindow, ShopWe" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>选择商品套装</title>
</head>
<body>
    <div id="all_2">
        <div class="come_title">
            <h2>
                选择商品套装</h2>
        </div>
        <asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="k_all2">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="bg_1" style="width: 60px; text-align: left">
                                商品名称：</td>
                            <td style="width: 210px">
                                <input class="input" style="width: 200px" id="SearchName" runat="server" type="text" /></td>
                            <td class="bg_1" style="width: 60px; text-align: right">
                                商品分类：</td>
                            <td style="width: 130px">
                                <asp:DropDownList ID="SearchClass" runat="server" Height="22px" Width="120px" >
                                </asp:DropDownList></td>
                            <td style="text-align: left">
                                <asp:Button ID="SearchStart" runat="server" Text="商品搜索" CausesValidation="false"
                                    OnClick="SearchStart_Click" class="butt_tle" Height="20px" Width="70px" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="k_all3">
                    <asp:Panel ID="PanelWindow" Height="300px" runat="server" ScrollBars="Horizontal"
                        Width="100%">
                        <asp:Repeater ID="RepeaterTable" runat="server">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="bk_2">
                                    <tr>
                                        <th style="width: 30px">
                                            选择</th>
                                        <th>
                                            图片
                                        </th>
                                        <th>
                                            名称</th>
                                        <th style="width: 150px">
                                            型号</th>
                                        <th style="width: 150px">
                                            价格</th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxGoodsID" ToolTip='<%# Eval("GoodsGuid") %>' runat="server" />
                                    </td>
                                    <td style="width: 54px">
                                        <asp:Image ID="GoodsImage" Width="54px" Height="54px" BorderWidth="0" BorderStyle="None"
                                            runat="server" ImageUrl='<%# GetGoodsImage(new Guid(Eval("GoodsGuid").ToString())) %>' />
                                    </td>
                                    <td>
                                        <%# Eval("GoodsName") %>
                                    </td>
                                    <td>
                                        <%# Eval("GoodsNumber") %>
                                    </td>
                                    <td>
                                        <%# Eval("GoodsPrice").ToString().Substring(0,Eval("GoodsPrice").ToString().Length-2) %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </asp:Panel>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div class="sub">
            <asp:Button ID="SubmitButton" CausesValidation="False" runat="server" Text="提交选项"
                OnClick="SubmitButton_Click" CssClass="but_add" />
            &nbsp;
            <asp:Button ID="WindowClose" runat="server" Text="关闭窗口" CausesValidation="False"
                OnClick="WindowClose_Click" CssClass="but_add" />
        </div>
    </div>
</body>
</html>
