Beispiel #1
0
        $goods_config['selectpriceunitshow'][trim($key)] = goods_shtmlspecialchars(trim($val));
    }
    $orderby = 't.istop desc,t.displayorder, t.dateline desc';
    $where = array('c.status=1', 't.isrecommend=1', 't.status=1');
    $re_goodslist = array();
    foreach (C::t('#sanree_brand#sanree_brand_goods')->fetch_all_by_searchc($where, $orderby, 0, 5) as $value) {
        $value['url'] = goods_getburl($value);
        $value['pic'] = goods_getforumimg($value['homeaid'], 0, 180, 135, 'fixwr');
        $priceunit = $goods_config['selectpriceunitshow'][$value['priceunit']];
        $re_goodslist[] = array('pic' => $value['pic'], 'url' => $value['url'], 'name' => $value['name'], 'gid' => $value['gid'], 'sminprice' => $priceunit . $value['minprice']);
    }
    $orderby = 't.dateline desc';
    $where = array('c.status=1', 't.status=1');
    $new_goodslist = array();
    foreach (C::t('#sanree_brand#sanree_brand_goods')->fetch_all_by_searchc($where, $orderby, 0, 5) as $value) {
        $value['url'] = goods_getburl($value);
        $value['pic'] = goods_getforumimg($value['homeaid'], 0, 80, 80);
        $priceunit = $goods_config['selectpriceunitshow'][$value['priceunit']];
        $new_goodslist[] = array('pic' => $value['pic'], 'url' => $value['url'], 'name' => $value['name'], 'gid' => $value['gid'], 'sprice' => $priceunit . $value['price'], 'sminprice' => $priceunit . $value['minprice']);
    }
    if ($new_goodslist) {
        $installmode[] = '"goods"';
    }
    $tabHead['goods'] = ' class="c_active"';
    $tabBody['goods'] = ' c_current';
}
$news_config = $_G['cache']['plugin']['sanree_brand_news'];
if ($news_config['isopen']) {
    $modfile = DISCUZ_ROOT . './source/plugin/sanree_brand_news/function/function_module.php';
    @(require_once $modfile);
    $modurl_news = news_getmodeurl();
Beispiel #2
0
                    $coupon['pic'] = intval($coupon['homeaid']) > 0 ? coupon_getforumimg($coupon['homeaid'], 130, 130) : 'static/image/common/nophoto.gif';
                    $coupon['url'] = coupon_getburl($coupon);
                    $couponlist[$key] = $coupon;
                }
                $murl = coupon_getusermodeurl(array('bid' => $bid));
                $multi_coupon = multi($count, $perpage, $page, $murl);
            }
        }
        $goods_config = $_G['cache']['plugin']['sanree_brand_goods'];
        if ($goods_config['isopen']) {
            $count = C::t('#sanree_brand_goods#sanree_brand_goods')->count_by_wherec($where);
            if ($count > 0) {
                $goodslist = array();
                foreach (C::t('#sanree_brand_goods#sanree_brand_goods')->fetch_all_by_searchc($where, 'displayorder,bid desc', ($page - 1) * $perpage, $perpage) as $key => $goods) {
                    $goods['pic'] = goods_getforumimg($goods['homeaid'], 1, 130, 130, 'fixnone');
                    $goods['url'] = goods_getburl($goods);
                    $goodslist[$key] = $goods;
                }
                $murl = goods_getusermodeurl(array('bid' => $bid));
                $multi_goods = multi($count, $perpage, $page, $murl);
            }
        }
        $_G['cache']['plugin']['sanree_brand_coupon']['isopen'] && ($iscoupon = C::t('#sanree_brand#sanree_brand_businesses_module')->fetch_by_modename('iscoupon', $bid));
        $_G['cache']['plugin']['sanree_brand_goods']['isopen'] && ($isgoods = C::t('#sanree_brand#sanree_brand_businesses_module')->fetch_by_modename('isgoods', $bid));
    }
}
$favoritelist = C::t('#sanree_brand#home_favorite')->fetch_all_by_id_idtype($tid, 'tid', 0, 9);
$newlist = array();
foreach (C::t('#sanree_brand#sanree_brand_businesses')->fetch_all_by_searchc(array('c.status=1', 't.status=1', 't.isshow=1'), 't.bid desc', 0, 9) as $value) {
    $value['url'] = getburl($value);
    $newlist[] = $value;