<!--#include file="top.asp"-->
<div class="nch-breadcrumb-layout">
    <div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
            <span><a href="/index.asp">首页</a></span><span class="arrow">></span>
                <span>所有品牌</span>
          </div>
  </div>
<link href="/skin/waimai/template/style_waimai/css/layout.css" rel="stylesheet" type="text/css">
<div class="nch-container wrapper">
  <div class="nch-all-menu">
    <ul class="tab-bar">
      <li><a href="/index.asp?a=pcat">全部商品分类</a></li>
      <li class="current"><a href="javascript:void(0);">全部品牌</a></li>
      <li><a href="/index.asp?a=plist">全部商品</a></li>
    </ul>
  </div>
    <div class="nch-recommend-borand">
    <div class="title" title="推荐品牌"></div>
    <div class="nch-barnd-list">
      <ul>
{anxinMall:brandlist $sql=select top 50 pinpaiid,classid,pinpainame,isRecommand,pinpaipic from [anxinMall_pinpai] where isRecommand=true order by pinpaiid desc $cache=0}
        <li>
          <dl>
            <dt><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]"><img src="[brandlist:pinpaipic $empty=/file/images/no_brand.jpg]" alt="[brandlist:pinpainame]" /></a></dt>
            <dd><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]">[brandlist:pinpainame]</a></dd>
          </dl>
        </li>
{/anxinMall:brandlist}

      </ul>
    </div>
  </div>
    <div class="nch-brand-class">
    <div class="nch-brand-class-tab">
            <ul class="tabs-nav">
			{anxinMall:catlist $sql=select id,catname,fid from [anxinMall_cat] where fid=0 order by id asc $cache=0}
                <li class="{if:[catlist:i]=1}tabs-selected{end if}"><a href="javascript:void(0);">[catlist:catname]</a></li>
            {/anxinMall:catlist}
            </ul>
          </div>
            <div class="nch-barnd-list tabs-panel ">
      <ul>
      {anxinMall:brandlist $sql=select top 10 pinpaiid,classid,pinpainame,isRecommand,pinpaipic from [anxinMall_pinpai] where classid in(select id from [anxinMall_cat] where fid=1) order by pinpaiid desc $cache=0}
      <li>
          <dl>
            <dt><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]"><img src="[brandlist:pinpaipic $empty=/file/images/no_brand.jpg]" alt="[brandlist:pinpainame]"/></a></dt>
            <dd><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]">[brandlist:pinpainame]</a></dd>
          </dl>
      </li>
      {/anxinMall:brandlist}
                
      </ul>
    </div>
	{anxinMall:catlist $sql=select id,catname,fid from [anxinMall_cat] where fid=0 order by id asc $cache=0}
    <div class="nch-barnd-list tabs-panel tabs-hide">
      <ul>
        {anxinMall:brandlist $sql=select top 50 pinpaiid,classid,pinpainame,isRecommand,pinpaipic from [anxinMall_pinpai] where classid in(select id from [anxinMall_cat] where fid=[catlist:fid]) order by pinpaiid desc $cache=0}
        <li>
          <dl>
            <dt><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]"><img src="[brandlist:pinpaipic $empty=/file/images/no_brand.jpg]" alt="[brandlist:pinpainame]"/></a></dt>
            <dd><a href="/index.asp?a=plist&pid=[brandlist:pinpaiid]">[brandlist:pinpainame]</a></dd>
          </dl>
        </li>
		{/anxinMall:brandlist}
      </ul>
    </div>
	{/anxinMall:catlist}
    </div>
</div>
<script>
//首页Tab标签卡滑门切换
$(".tabs-nav > li > a").live('mousedown', (function(e) {
	if (e.target == this) {
		var tabs = $(this).parents('ul:first').children("li");
		var panels = $(this).parents('.nch-brand-class:first').children(".tabs-panel");
		var index = $.inArray(this, $(this).parents('ul:first').find("a"));
		if (panels.eq(index)[0]) {
			tabs.removeClass("tabs-selected").eq(index).addClass("tabs-selected");
			panels.addClass("tabs-hide").eq(index).removeClass("tabs-hide");
		}
	}
}));
</script>
<!--#include file="bottom.asp"-->
