Exemple #1
0
 }
 assign_template();
 $position = assign_ur_here('exchange');
 $smarty->assign('page_title', $position['title']);
 // 页面标题
 $smarty->assign('ur_here', $position['ur_here']);
 // 当前位置
 $smarty->assign('categories', get_categories_tree());
 // 分类树
 $smarty->assign('helps', get_shop_help());
 // 网店帮助
 $smarty->assign('top_goods', get_top10());
 // 销售排行
 $smarty->assign('promotion_info', get_promotion_info());
 // 促销活动信息
 $smarty->assign('wap_exchange_ad', get_wap_advlist('wap积分商城幻灯广告', 5));
 //wap首页幻灯广告位
 /* 调查 */
 $vote = get_vote();
 if (!empty($vote)) {
     $smarty->assign('vote_id', $vote['id']);
     $smarty->assign('vote', $vote['content']);
 }
 $ext = '';
 //商品查询条件扩展
 //$smarty->assign('best_goods',      get_exchange_recommend_goods('best', $children, $integral_min, $integral_max));
 //$smarty->assign('new_goods',       get_exchange_recommend_goods('new',  $children, $integral_min, $integral_max));
 $smarty->assign('hot_goods', get_exchange_recommend_goods('hot', $children, $integral_min, $integral_max));
 $count = get_exchange_goods_count($children, $integral_min, $integral_max);
 $max_page = $count > 0 ? ceil($count / $size) : 1;
 if ($page > $max_page) {
Exemple #2
0
 $smarty->assign('promotion_info', get_promotion_info());
 // 增加一个动态显示所有促销信息的标签栏
 $smarty->assign('invoice_list', index_get_invoice_query());
 // 发货查询
 $smarty->assign('new_articles', index_get_new_articles());
 // 最新文章
 $smarty->assign('group_buy_goods', index_get_group_buy());
 // 团购商品
 $smarty->assign('auction_list', index_get_auction());
 // 拍卖活动
 $smarty->assign('shop_notice', $_CFG['shop_notice']);
 // 商店公告
 //yyy添加start
 $smarty->assign('wap_index_ad', get_wap_advlist('wap首页幻灯广告', 5));
 //wap首页幻灯广告位
 $smarty->assign('wap_index_icon', get_wap_advlist('wap端首页8个图标', 8));
 //wap首页幻灯广告位
 $smarty->assign('menu_list', get_menu());
 //yyy添加end
 /* 首页主广告设置 */
 $smarty->assign('index_ad', $_CFG['index_ad']);
 if ($_CFG['index_ad'] == 'cus') {
     $sql = 'SELECT ad_type, content, url FROM ' . $ecs->table("ad_custom") . ' WHERE ad_status = 1';
     $ad = $db->getRow($sql, true);
     $smarty->assign('ad', $ad);
 }
 /* links */
 $links = index_get_links();
 $smarty->assign('img_links', $links['img']);
 $smarty->assign('txt_links', $links['txt']);
 $smarty->assign('data_dir', DATA_DIR);