Esempio n. 1
0
if (!$smarty->is_cached('index.dwt', $cache_id))
{
    assign_template();

    $position = assign_ur_here();
    $smarty->assign('page_title',      $position['title']);    // 页面标题
    $smarty->assign('ur_here',         $position['ur_here']);  // 当前位置

    /* meta information */
    $smarty->assign('keywords',        htmlspecialchars($_CFG['shop_keywords']));
    $smarty->assign('description',     htmlspecialchars($_CFG['shop_desc']));
    $smarty->assign('flash_theme',     $_CFG['flash_theme']);  // Flash轮播图片模板

    $smarty->assign('feed_url',        ($_CFG['rewrite'] == 1) ? 'feed.xml' : 'feed.php'); // RSS URL

    $smarty->assign('categories',      get_child_tree0('706')); // 分类树
	
    $smarty->assign('helps',           get_shop_help());       // 网店帮助
    $smarty->assign('top_goods',       get_top10());           // 销售排行
	
	
	//获取首页的设计师和技工
	$smarty->assign('jg',      get_sjs_info('jg'));
	$smarty->assign('sjs',     get_sjs_info('sjs'));

	
	//指定分类区域
	$smarty->assign('categories1',      get_child_tree(1));  //f1
	$smarty->assign('categories2',      get_child_tree(2));  //f1
	$smarty->assign('categories3',      get_child_tree(3));  //f1
	$smarty->assign('categories4',      get_child_tree(4));  //f1
Esempio n. 2
0
         foreach ($filter_attr as $k => $v) {
             if (is_numeric($v) && $v != 0 && isset($cat_filter_attr[$k])) {
                 $sql = $ext_sql . "b.attr_value = a.attr_value AND b.attr_id = " . $cat_filter_attr[$k] . " AND a.goods_attr_id = " . $v;
                 $ext_group_goods = $db->getColCached($sql);
                 $ext .= ' AND ' . db_create_in($ext_group_goods, 'g.goods_id');
             }
         }
     }
 }
 assign_template('c', array($cat_id));
 $cate = get_categories($cat_id);
 $smarty->assign('cat_id', $cat_id);
 $smarty->assign('parent_id', $cate['parent_id']);
 $smarty->assign('cate', $cate['cate']);
 // 分类树
 $smarty->assign('cate_z', get_child_tree0($cat_id));
 if ($cat_id == '705' || $cat_id == '706' || $cat_id == '707') {
     $check = "0";
 } else {
     $check = "1";
 }
 $smarty->assign('check', $check);
 if (pei_ads($cat_id) == "") {
     $arr['id'] = 162;
 } else {
     $arr['id'] = pei_ads($cat_id);
 }
 $arr['num'] = 1;
 $smarty->assign('ads', insert_ads0($arr));
 $position = assign_ur_here($cat_id, $brand_name);
 $smarty->assign('page_title', $position['title']);