<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$title}</title>
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" /> 
<link href="{$domain}/view/{$tpl_style}/styles/basic.css" rel="stylesheet" type="text/css" />
<link href="{$domain}/view/{$tpl_style}/styles/common.css" rel="stylesheet" type="text/css" />
<link href="{$domain}/view/{$tpl_style}/styles/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$domain}/view/{$tpl_style}/js/index.js"></script>
<script src="{$domain}/view/{$tpl_style}/js/jquery.js" type="text/javascript"></script>
<script src="{$domain}/view/{$tpl_style}/js/lazyload.js" type="text/javascript"></script>
<script src="{$domain}/view/{$tpl_style}/js/jquery.KinSlideshow-1.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
	{literal}{
	$(".category-content .box-border img").lazyload({
	{/literal}
		placeholder : "{$domain}/view/default/images/grey.gif",
		effect : "fadeIn"
	{literal}
	});
	{/literal}
});
</script>
{literal}
	  <script type="text/javascript">
	  $(function(){
			$("#KinSlideshow").KinSlideshow({
					moveStyle:"down",
					intervalTime:5,
					mouseEvent:"mouseover",
					isHasTitleFont:true,
					isHasTitleBar:true,
					titleFont:{TitleFont_size:16,TitleFont_color:"#D84600"}
			});
		})
	  </script>
{/literal}
</head>
<body>
{include file="default/page_header.tpl"}
<div class="top_banner">
	<div class="imgsider">
		 <div id="KinSlideshow" style="visibility:hidden;">	
		 {if $imgsider}
			 {foreach from=$imgsider item=imgsider name=imgsider}		
				{if $smarty.foreach.imgsider.iteration<=6}
					<a href="{$imgsider->url}" target="_black"><img src="{$domain}/{$imgsider->site_logo}" alt="{$imgsider->title}" width="698" height="298" /></a>
			 	{/if}
			 {/foreach}
		 {/if}			
		</div> 
	</div>
	<div class="promo">
		<h3>火热促销</h3>
		<ul>
		{if $promo_cat}
			 {foreach from=$promo_cat item=value name=rec}				 
			 	<li><a title="{$value.title}" onclick="window.open ('{$value.seller_url}');" href="javascript:void(0)";>{$value.title|truncate:20:""}</a></li>		              	
			 {/foreach}
		{/if} 
		</ul>
	</div>
</div>
<div class="tao_shop">
<div class="sellor_content">	
	<div class="sellor_title">推荐商城</div>	
		<ul>
		{foreach from=$rec_seller item=recseller name=recseller}
			<li>
			{if $rewrite}
				<a title="{$recseller->name}" target="_blank" href="{$domain}/{$sellerinfo}-{$recseller->id}{$suffix}"> <img src="{$recseller->logo}" alt="京东商城" width="102" height="38" /></a>
			{else}
				<a title="{$recseller->name}" target="_blank" href="./index.php?a=sellerinfo&id={$recseller->id}"> <img src="{$recseller->logo}" alt="京东商城" width="102" height="38" /></a>
			{/if}
			</li>
		{/foreach}
				  
		</ul>
	</div>
</div>
<div class="clear"></div>
<div class="product_content">
{if $Alldata}
{foreach from=$Alldata item=alldata name=rec}
	<div class="product_list">
		<div class="category-head">
			<div class="f" >
				<img src="view/{$tpl_style}/images/f{$smarty.foreach.rec.iteration}.png" />
			</div>		
			<h3>			
			{if $rewrite}
				<a href="{$domain}/{$b2c_category}-{$alldata.category}-b2c-true{$suffix}" title="{$alldata.cat_name}">{$alldata.cat_name}</a>
			{else}
				<a href="/index.php?a=category&cid={$alldata.category}" title="{$alldata.cat_name}">{$alldata.cat_name}</a>
			{/if}
			</h3>
			{if $alldata.sonnav}
			<ul class="category-links">
				
					{foreach from=$alldata.sonnav item=sonnav name=sonnav}
						{if $rewrite}
							<li><a href="{$domain}/{$b2c_category}-{$sonnav->category}-b2c-true{$suffix}" title="{$sonnav->name}">{$sonnav->name}</a></li>
						{else}
							<li><a href="./index.php?a=category&cid={$sonnav->category}" title="{$sonnav->name}">{$sonnav->name}</a></li>
						{/if}						
					{/foreach}			
			</ul>
			{/if}
			{if $rewrite}
				<a href="{$domain}/{$b2c_category}-{$alldata.category}-b2c-true{$suffix}" class="more">{$alldata.total}件你可能喜欢的宝贝> </a>
			{else}
				<a href="./index.php?a=category&cid={$alldata.category}" class="more">{$alldata.total}件你可能喜欢的宝贝> </a>
			{/if}		
		</div>
		{if $alldata.product.item}
		<ul class="category-content">
		
			{foreach from=$alldata.product.item item=product name=product}
			{if $smarty.foreach.product.iteration<=8}
				{if $rewrite}
				<li class="box-border">
					<div class="product_img">
						<a rel="{$product.pic_url}" class="tooltip" href="{$domain}/{$bitem}-{$product.iid}{$suffix}" title="{$product.title}" target="_black">
							<img src="{$domain}/view/default/images/grey.gif" original="{$product.pic_url}" alt="{$product.title}"/>
						</a>
					</div>
					<h4><a href="{$domain}/{$bitem}-{$product.iid}{$suffix}" title="{$product.title}" target="_black">{$product.title}</a> </h4>
					<div class="mallprice">
						<div class="left">
							<div class="price">
								优惠价
								<strong>{$product.price}</strong>
								元
							</div>
							<div class="malltitle">
								<a onclick="window.open ('{$product.seller_url}');" href="javascript:void(0);">{$product.seller_name}</a>
								有售
							</div>
						</div>
						<div class="right">
							<a onclick="window.open ('{$value.click_url}');" href="javascript:void(0);"></a>
						</div>
					</div>
					
				</li>
				{else}
				<li class="box-border">
					<div class="product_img">
						<a rel="{$product.pic_url}" class="tooltip" href="./index.php?a=bitem&iid={$product.iid}" title="{$product.title}" target="_black">
							<img src="{$domain}/view/default/images/grey.gif" original="{$product.pic_url}" alt="{$product.title}"/>
						</a>
					</div>					
					<h4><a href="./index.php?a=bitem&iid={$product.iid}" title="{$product.title}" target="_black">{$product.title}</a> </h4>
					<div class="mallprice">
						<div class="left">
							<div class="price">
								优惠价
								<strong>{$product.price}</strong>
								元
							</div>
							<div class="malltitle">
								<a onclick="window.open ('{$product.seller_url}');" href="javascript:void(0);">{$product.seller_name}</a>
								有售
							</div>
						</div>
						<div class="right">
							<a onclick="window.open ('{$value.click_url}');" href="javascript:void(0);"></a>
						</div>
					</div>
					
				</li>				
				{/if}		
			{/if}
			{/foreach}	
		</ul>
		{/if}
	</div>	
{/foreach}
	
{/if}
	
</div>
<div class="clear"></div>

<!-- 底部 -->
<div class="service">
	<div class="box-shadow" style="float:left; background:#fff;">
		<div class="friend">
		<h3>友情链接</h3>
		<ul class="friend_txt">
		{foreach from=$AllTextLink item=alltext name=alltext}
			<li><a href="{$alltext->weburl}" title="{$alltext->webname}" target="_black">{$alltext->webname}</a></li>
		{/foreach}	
			
		</ul>
		<div class="hr"></div>
		<ul class="friend_img">
		{foreach from=$AllImgLink item=allimg name=alltext}
			<li><a href="{$alltext->weburl}" title="{$alltext->webname}" target="_black"><img src="{$domain}/{$allimg->site_logo}" style="width:120px; height:45px;" alt="{$alltext->webname}" /></a></li>
		{/foreach}
		</ul>
	</div>
	<div class="artile">
		<h3><a href="##">精彩内容每日更新哦~</a></h3>
		<ul>
		{foreach from=$Artile item=artile name=artile}		
			{if $smarty.foreach.artile.iteration<=8}
				{if $rewrite}
					<li><a href="{$domain}/{$artile_content}-{$artile->id}{$suffix}" title="{$artile->title}" target="_black">{$artile->title|truncate:24:""}</a></li>
				{else}
					<li><a href="./index.php?a=artilelist&m=artile_content&id={$artile->id}" title="{$artile->title}" target="_black">{$artile->title|truncate:24:""}</a></li>
				{/if}
			{/if}
		{/foreach}		
		</ul>
	</div>
	</div>
</div>

{include file="default/page_bottom.tpl"}
</body>
</html>
