<!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/mall.css" rel="stylesheet" type="text/css" />
<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 type="text/javascript">
$(document).ready(function()
	{literal}{
	$(".mallcate .mallmodshow img").lazyload({
	{/literal}
		placeholder : "{$domain}/view/default/images/grey.gif",
		effect : "fadeIn"
	{literal}
	});
	{/literal}
});
</script>
</head>
<body>
{include file="default/page_header.tpl"}
<div id="content">
 <div id="mall_cate_list">
	<div class="mallcate">
		<div class="title">
			<h2>购物商城分类</h2>
		</div>
		<div class="mallcatelist">     
	       <ul>
			   {if $shopcats}
				  {foreach from=$shopcats item=value name=rec}				 
					  		   
					   	 <li class="sc"><a href="#{$value->cid}">{$value->name}({$value->count})</a>
					   	 </li>	              	
				  {/foreach}
				{/if}  
		   </ul>   	  
		</div>
	</div>
</div>
<div id="mall_cate">	
	{if $allshopcats}
	 {foreach from=$allshopcats item=value name=rec}				 
		<div class="mallcate">
			<div class="cats_title">
				<h3>{$value.cats.name}<a name="{$value.cats.cid}"></a></h3>
			</div>
			<div class="mallmodshow">				
				<ul>
				{if $value.shoplist}
					{foreach from=$value.shoplist item=child name=rec}
					<li>
					{if $rewrite}
						<a title="{$child.name}" href="{$domain}/{$sellerinfo}-{$child.id}{$suffix}">
							<img width="102" height="39" alt="{$child.name}" src="{$domain}/view/default/images/grey.gif" original="{$child.logo}" />
						</a>
					{else}
						<a title="{$child.name}" href="./index.php?a=sellerinfo&id={$child.id}">
							<img width="102" height="39" alt="{$child.name}" src="{$domain}/view/default/images/grey.gif" original="{$child.logo}" />
						</a>
					{/if}						
						<h4>
						{if $rewrite}
							<a title="{$child.name}" target="_blank" href="{$domain}/{$sellerinfo}-{$child.id}{$suffix}">{$child.name}</a>
						{else}
							<a title="{$child.name}" target="_blank" href="./index.php?a=sellerinfo&id={$child.id}">{$child.name}</a>
						{/if}
						</h4>
					</li>
					{/foreach}
				{/if}
				</ul>
			</div>
		</div>	
	{/foreach}
 {/if}
 </div>						   	               	
</div>
{include file="default/page_bottom.tpl"}
</body>
</html>