function get_cat_hot_goods_10($id) { return get_cat_recommend_goods('hot', $id, 10); }
<?php } ?> </strong></div> </li> <?php } } unset($_from); $this->pop_vars(); ?> </ul> <ul class="tabcon hide" id="con_one_3"> <?php $price_arr = get_goods_min_max_price($GLOBALS['smarty']->_var['goods']['goods_id']); $GLOBALS['smarty']->assign('hot_goods', get_cat_recommend_goods('hot', get_children($GLOBALS['smarty']->_var['goods']['cat_id']), 8, 0, $price_arr['min'], $price_arr['max'])); ?> <?php $_from = $this->_var['hot_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $this->push_vars('', 'goods_item'); $this->_foreach['cat_item_goods'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['cat_item_goods']['total'] > 0) { foreach ($_from as $this->_var['goods_item']) { $this->_foreach['cat_item_goods']['iteration']++; ?> <li <?php
if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $this->push_vars('', 'cat_item'); $this->_foreach['child_cat'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['child_cat']['total'] > 0) { foreach ($_from as $this->_var['cat_item']) { $this->_foreach['child_cat']['iteration']++; ?> <?php $GLOBALS['smarty']->assign('child_cat_index', $child_cat_index); ?> <div class="tabs-panel tabs-hide"> <ul> <?php $GLOBALS['smarty']->assign('new_goods', get_cat_recommend_goods('new', get_children($GLOBALS['smarty']->_var['cat_item']['id']), 8)); ?> <?php $_from = $this->_var['new_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $this->push_vars('', 'goods_0_27275000_1445444788'); $this->_foreach['goods'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['goods']['total'] > 0) { foreach ($_from as $this->_var['goods_0_27275000_1445444788']) { $this->_foreach['goods']['iteration']++; ?> <div class="j_ItemInfo" <?php if ($this->_foreach['goods']['iteration'] % 4 == 0) { ?>