<div class="top_bar">
<{if 
	($smarty.get.m == 'index' && $smarty.get.a == 'index') || 
	($smarty.get.m == '' && $smarty.get.a == '')
}> 
	<div class="top index_red">
		<div class="tmenu"><a href="wap.php?a=cats">菜单</a></div> 
		<div class="sch"> 
			<div class="schbox"> 
				<span></span>
				<div class="input_clk"> 
					<input type="text" value="<{$smarty.get.key}>" class="sch_input" placeholder="搜索您想找的商品"/>
				</div> 
			</div>
		</div>
		<div class="tcart"><a href="wap.php?m=cart&a=index">购物车</a></div>	
	</div>	
<{else}>
	<div class="top">
		<div class="tback"><a href="javascript:history.go(-1);">&nbsp;</a></div>
		<div class="sch"> 
			<div class="schbox"> 
				<span></span>
				<div class="input_clk"> 
					<input type="text" value="<{$smarty.get.key}>" class="sch_input" placeholder="搜索您想找的商品"/>
				</div> 
			</div>
		</div>
		<div class="tcart"><a href="wap.php?m=cart&a=index">购物车</a></div>	
	</div>
<{/if}>
</div>
<div class="schAll">
	<form action="wap.php" method="get">
		<input type="hidden" name="m" value="goods"/>
		<div class="schBox"> 
			<em class="close">关闭</em> 
			<div class="input">
				<span></span>
				<input type="text" name="key" class="sch_input2" autocomplete="off" placeholder="搜索产品"/>
			</div>
			<div class="go"><input type="submit" class="sch_sub" value="搜索"/></div>
		</div>
	</form>
	<div class="shot">
		<div class="shot_c">
			<div class="name"><span>热门搜索</span></div>
			<div class="con">
				<{uqcms m="goods" v="hotkey" c="keyword:limit=8"}>
				<{foreach item=k from=$hotkey key=ky}>
					<a href="wap.php?m=goods&key=<{$k.keyword}>" title="<{$k.keyword}>" <{if $k.hot == '1'}>class="ch"<{/if}>><span><{$k.keyword}></span></a>
				<{/foreach}>
			</div>
		</div>	
	</div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
$(function(){
	$('input.sch_input').click(function(){
		$(".schAll").show();
		$("input.sch_input2").focus();
		$("html").css('overflow','hidden');
	});
	$(".schAll em.close").click(function(){
		$(".schAll").hide();
		$("html").css('overflow','auto');
	});
});
</script>