<!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" type="text/css" rel="stylesheet">
<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' src='{$domain}/view/{$tpl_style}/js/jquery.masonry.min.js'></script> 
<script src="{$domain}/view/{$tpl_style}/js/tooltip.js" type="text/javascript"></script>
</head>
<body>
{include file="default/page_header.tpl"}
<script type="text/javascript">
$(document).ready(function()
	{literal}{
	$("#container .pic img").lazyload({
	{/literal}
		placeholder : "{$domain}/view/default/images/grey.gif",
		effect : "fadeIn"
	{literal}
	});
});
{/literal}
</script>
<div id="content">
<div class="tab-panel">
	<ul>
	{if $rewrite}
	 	<li><a href="{$domain}/{$search}-{$encode_keywords}-b2c{$suffix}">商城搜索</a></li>
		<li class="selected"><a href="{$domain}/{$search}-{$encode_keywords}-tao{$suffix}">淘宝搜索</a></li>
	 {else}
	 	<li><a href="?a=search&q={$encode_keywords}&tab=b2c">商城搜索</a></li>
		<li class="selected"><a href="?a=search&q={$encode_keywords}&tab=tao">淘宝搜索</a></li>
	 {/if}		
	</ul>
</div>
<div id="container">
	{if $items}
	{foreach from=$items item=value name=itemcate} 	
	<div class="col">
		{if $rewrite}
		   <div class="pic">
                <a href="{$domain}/{$item}-{$value.num_iid}{$suffix}" rel="{$value.pic_url}" class="tooltip" title="{$value.title}" target="_blank">
                    <img src="{$domain}/view/default/images/grey.gif" original="{$value.pic_url}" alt="{$value.title}" /></a></div>
            <h3>
                <a href="{$domain}/{$item}-{$value.num_iid}{$suffix}" target="_blank">{$value.title}</a></h3>
            <div class="mallprice">
                <div class="left">
                    <div>优惠价 <strong>{$value.price}</strong>元</div>
                    <div class="malltitle">          
						<a href="javascript:void(0);" onclick= "window.open ('{$value.detail_url}');">淘宝：{$value.nick}</a>
				 有售</div>
                </div>
                <div class="right">
					<a href="javascript:void(0);" onclick= "window.open ('{$value.detail_url}');"></a>
				</div>
           </div>
         {else}
	          <div class="pic">
	                <a href="{$value.detail_url}" rel="{$value.pic_url}" class="tooltip" title="{$value.title}" target="_blank">
	                    <img src="{$domain}/view/default/images/grey.gif" original="{$value.pic_url}" alt="{$value.title}" /></a></div>
	            <h3>
	                <a href="{$value.detail_url}" target="_blank">{$value.title}</a></h3>
	            <div class="mallprice">
	                <div class="left">
	                    <div>优惠价 <strong>{$value.price}</strong>元</div>
	                    <div class="malltitle">          
							<a href="javascript:void(0);" onclick= "window.open ('{$value.detail_url}');">淘宝：{$value.nick}</a>
					 有售</div>
	                </div>
	                <div class="right">
						<a href="javascript:void(0);" onclick= "window.open ('{$value.detail_url}');"></a>
					</div>
	           </div>     
         {/if}
	</div>
	{/foreach}
	{/if}
</div>
<div>{$pagetext}</div>
{literal}
<script type="text/javascript">
$(function(){
  $('#container').masonry({
    itemSelector : '.col',
    columnWidth : 245
  });
});

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