} unset($_from); $this->pop_vars(); ?> </ul> </dd> </dl> <?php } ?> <dl class="categorys-brands"> <dt>推荐品牌</dt> <dd> <ul> <?php $_from = get_brands1($GLOBALS[smarty]->_var[cat][id]); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $this->push_vars('', 'bchilder'); if (count($_from)) { foreach ($_from as $this->_var['bchilder']) { ?> <li><a target="_blank" href="<?php echo $this->_var['bchilder']['url']; ?> "><?php echo htmlspecialchars($this->_var['bchilder']['brand_name']); ?> </a></li> <?php
} if ($display == 'grid') { if (count($goodslist) % 2 != 0) { $goodslist[] = array(); } } $smarty->assign('goods_list', $goodslist); $smarty->assign('category', $cat_id); $cat['url'] = build_uri('category', array('cid' => $cat['cat_id']), $cat['cat_name']); if ($dwt_name == 'category_top') { $on_top_goods = get_on_top_goods($cat_id, 11); $smarty->assign('on_top_goods', $on_top_goods); $smarty->assign('categories_child', get_cat_child($cat_id)); $smarty->assign('cat_best_goods', get_category_child($cat_id, ' AND is_best = 1 ')); $smarty->assign('cat_info', $cat); $smarty->assign('brands1', get_brands1()); } else { $smarty->assign('cat_info', $cat); $smarty->assign('categories_left', get_categories_tree_left($cat_id)); } $smarty->assign('script_name', $dwt_name); assign_pager('category', $cat_id, $count, $size, $sort, $order, $page, '', $brand, $price_min, $price_max, $display, $filter_attr_str); // 分页 assign_dynamic($dwt_name); // 动态内容 } $smarty->display($dwt_name . '.dwt', $cache_id); /*------------------------------------------------------ */ //-- PRIVATE FUNCTION /*------------------------------------------------------ */ /**