<{include file="default/top.html"}> 
<div class="logo_bar">
	<div class="logo">
		<div class="img"><a href="index.php"><img src="<{$__IMG__}><{$UQCMS.site_logo}>"/></a></div> 
		<div class="sch">
			<div class="schbox">
			<form action="index.php" method="get">
				<input type="hidden" name="m" value="goods"/>
				<input class="but1" type="text" name="key" placeholder="请输入你要查找的关键字" value="<{if $smarty.get.key}><{$smarty.get.key}><{/if}>"/>
				<input class="but2" type="submit" value="搜索"/> 
			</form>
			</div>
			<div class="schhot">
				<{uqcms m="goods" v="hotkey" c="keyword:limit=8"}>
				<{foreach item=k from=$hotkey key=ky}>
					<a href="index.php?m=goods&key=<{$k.keyword}>" title="<{$k.keyword}>" <{if $k.hot == '1'}>class="ch"<{/if}>><{$k.keyword}></a>
				<{/foreach}>
			</div>
		</div>
	 
		<div class="small_cart">
			<a href="?m=cart">
				<div class="small_cart_name">
					<em></em>
					<span>我的购物车</span>
					<i id="cart_num">0</i>
				</div>
			</a>
			<div class="small_cart_list"></div>
		</div>
	</div>
</div> 
	
<div class="nav_bar">
	<div class="nav">
		<div class="allcats<{if $smarty.get.m == "" && $smarty.get.a == ''}><{else}> allcats_show<{/if}>">
			<span class="name"><i></i><em>精选商品分类</em></span>
			<div class="mleft menu" <{if $smarty.get.m == "" && $smarty.get.a == ''}>style="display:block;"<{/if}>> 
		<{uqcms m="category" v="cats" c="get_list"}>		 
		<{if $cats}>
			<{foreach item=c name=cs from=$cats}>		
			 	<dl<{if $smarty.foreach.cs.last eq 1}> style="border-bottom:none;"<{/if}>>
					<dt>
						<i></i>
						<div class="mbig">
							<span><a href="index.php?m=goods&cid=<{$c.cid}>"><{$c.name}></a></span>
							<p>
								<{foreach item=h from=$c.px_hot}>			
									<a href="index.php?m=goods&cid=<{$h.cid}>"><{$h.name}></a>
								<{/foreach}>
							</p>
						</div>
						<em>></em>
					</dt>
					<div class="mshow">
						<{foreach item=p from=$c.parent}> 
							<div class="mbox">
								<div class="ml"><a href="?m=goods&cid=<{$p.cid}>"><{$p.name}></a>：</div>
								<div class="mr">
									<{foreach item=pp from=$p.pparent}> 		
										<span>
											<i>|</i><a href="index.php?m=goods&cid=<{$pp.cid}>" title="<{$pp.name}>" <{if $pp.hot == '1'}>class="hot"<{/if}>><{$pp.name}></a>
										</span>
									<{/foreach}>
								</div>
							</div>
						<{/foreach}>
					</div>
			 	</dl>
			<{/foreach}> 		 
		<{/if}> 
			</div> 
		</div>
		
		<{uqcms m="template" v="topnav" c="nav:limit=8"}>
		<div class="nav_pub"> 
			<a class="header" href="index.php" class="ch">首页</a>
			<{foreach item=tv from=$topnav}>
				<a class="header" href="<{$tv.link}>" title="<{$tv.name}>" target="_blank"><{$tv.name}></a>
			<{/foreach}>
		</div>
	</div>
</div>