<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchBar.ascx.cs" Inherits="TopWinCMS.WebUI.Shop.SearchBar" %>

<script type="text/javascript">
    function Search()
    {
        var KeyWord = document.getElementById("KeyWord").value;
        window.open("/Shop/Search.aspx?KeyWord=" + escape(KeyWord) + "&PageNo=1");
        return false;

    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="33" colspan="2" class="white01">
            <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;热门搜索：<asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <a href="/Shop/Search.aspx?KeyWord=<%# Eval("KeyWord") %>&PageNo=1">
                        <%# Eval("KeyWord") %></a>
                </ItemTemplate>
               <SeparatorTemplate>，</SeparatorTemplate>
            </asp:Repeater>
                <%
                    if (Repeater1.Items.Count == 0)
                    {
                %>
                尚未有搜索数据
                <%} %>
            </strong>
        </td>
    </tr>
    <tr>
        <td width="62%" height="34">
            <strong>&nbsp;&nbsp;&nbsp;&nbsp;<span class="white01">产品搜索：</span>
                <input type="text" id="KeyWord" class="box" />
                <span>
                    <input type="image" src="images/Shop/bt_1.gif" width="43" height="22" align="absmiddle" onclick="return Search(); " /></span></strong>
        </td>
        <td width="38%">
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="348" height="25" background="images/Shop/top_nav_7.gif" class="black01">
                        <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><a href="/Member/ShoppingCart.aspx" target="_blank">购物车有<span id="ShoppingCart_bar">0</span>
                        件商品</a><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>结算去</a><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
             <a href="/Member/MyOrders.aspx" target="_blank">我的订单</a>           
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
