<?php defined('ByFeiWa') or exit('Access Invalid!');?><div class="title"><i></i><h3><a href="<?php echo urlMall('category', 'index');?>">所有分类</a></h3></div><div class="category"><ul class="menu"><?php if (!empty($output['show_goods_class']) && is_array($output['show_goods_class'])) { $i = 0; ?><?php foreach ($output['show_goods_class'] as $key => $val) { $i++; ?><li cat_id="<?php echo $val['gc_id'];?>" class="<?php echo $i%2==1 ? 'odd':'even';?>" <?php if($i>14){?>style="display:none;"<?php }?>><div class="class"><?php if($val['cn_pic'] != '') { ?><span class="ico"><img src="<?php echo $val['cn_pic'];?>"></span><?php } ?><h4><a href=" <?php if (!empty($val['channel_id']))echo urlMall('channel','index',array('id'=> $val['channel_id']));else echo urlMall('search','index',array('cate_id'=> $val['gc_id']));?>"><?php echo $val['gc_name'];?></a></h4><span class="arrow"></span> </div><div class="sub-class" cat_menu_id="<?php echo $val['gc_id'];?>"><div class="sub-class-content"><div class="recommend-class"><?php if (!empty($val['cn_classs']) && is_array($val['cn_classs'])) { ?><?php foreach ($val['cn_classs'] as $k => $v) { ?><span><a href=" <?php  echo urlMall('search','index',array('cate_id'=> $v['gc_id']));?>" title="<?php echo $v['gc_name']; ?>"><?php echo $v['gc_name'];?></a></span><?php }} ?></div><?php if (!empty($val['class2']) && is_array($val['class2'])) { ?><?php foreach ($val['class2'] as $k => $v) { ?><dl><dt><h3><a href="<?php if (!empty($v['channel_id']))echo urlMall('channel','index',array('id'=> $v['channel_id']));else echo urlMall('search','index',array('cate_id'=> $v['gc_id']));?>"><?php echo $v['gc_name'];?></a></h3></dt><dd class="goods-class"><?php if (!empty($v['class3']) && is_array($v['class3'])) { ?><?php foreach ($v['class3'] as $k3 => $v3) { ?><a href="<?php echo urlMall('search','index',array('cate_id'=> $v3['gc_id']));?>"><?php echo $v3['gc_name'];?></a><?php }} ?></dd></dl><?php }} ?></div><div class="sub-class-right"><?php if (!empty($val['cn_brands'])) {?><div class="brands-list"><ul><?php foreach ($val['cn_brands'] as $brand) {?><li> <a href="<?php echo urlMall('brand', 'list', array('brand'=>$brand['brand_id']));?>" title="<?php echo $brand['brand_name'];?>"><?php if ($brand['brand_pic'] != '') {?><img src="<?php echo brandImage($brand['brand_pic']);?>"/><?php }?><span><?php echo $brand['brand_name'];?></span></a></li><?php }?></ul></div><?php }?><div class="adv-promotions"><?php if($val['cn_adv1'] != '') { ?><a <?php echo $val['cn_adv1_link'] == '' ? 'href="javascript:;"' : 'target="_blank" href="'.$val['cn_adv1_link'].'"';?>><img src="<?php echo $val['cn_adv1'];?>"></a><?php } ?><?php if($val['cn_adv2'] != '') { ?><a <?php echo $val['cn_adv2_link'] == '' ? 'href="javascript:;"' : 'target="_blank" href="'.$val['cn_adv2_link'].'"';?>><img src="<?php echo $val['cn_adv2'];?>"></a><?php } ?></div></div></div></li><?php }} ?></ul></div>