<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Search.ascx.cs" Inherits="XpShop.WebUI.Modules.Search" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Bulletin.ascx" %>
<div id="search">
    <div class="search_text">
        <input type="text" id="keyword1" name="keyword1" class="search_input" value="<%=(Request.QueryString["keyword"] != null ? Request.QueryString["keyword"] : "连衣裙")%>" />
		        <script type="text/javascript">
		        $(document).ready(function() {
    			    $("#keyword1").focus(function(){
    				    $("#keyword1").attr({
    					    "value":""
    				    });
    			    });
    			    $("#keyword1").blur(function(){
    				    if($("#keyword1").attr("value")=="")
    				    {
    					    $("#keyword1").attr({
    						    "value":"连衣裙"
    					    });
    				    }
    			    });
			        $("#btnsearch").click(function(){
				        if($("#keyword1").attr("value")=="" || $("#keyword1").attr("value")=="关键字")
				        {
					        alert("<%=GetResourceString("Search_Key")%>");
					        return false;
				        }
				        window.location.href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Search.aspx?keyword=" +escape( $("#keyword1").attr("value"));
			        });
		        });
		        </script>
		    <input type="submit" id="btnsearch" class="search_buttom" value=" " />
    </div>
    <div class="search_searchad">&nbsp;&nbsp;&nbsp;<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Search.aspx"><%=GetResourceString("Search_Advance")%></a></div>
    <div class="search_searchkeyword"><span>热门搜索：</span><%=XpShop.WebUI.WebUtils.GetAD(48)%></div>
</div>
<div style="clear:both;"></div>