Ejemplo n.º 1
0
    showmessage(srlang('nostatus'));
}
chkbrandend($brandresult);
if ($brandresult[allowalbum] != 1) {
    showmessage(srlang('noallowalbum'));
}
$cateurl = getalbumurl($brandresult[bid]);
if ($ismultiple == 1 && $brandresult['allowmultiple'] == 1) {
    $icqline = getfirsticq($brandresult[$icq]);
    $brandresult['icq'] = empty($icqline) ? srlang('zanwustr') : str_replace('{icqnumber}', $icqline, $icqshow);
    $brandresult['tel'] = getfirsticq($brandresult['tel']);
} else {
    $brandresult['qq'] = empty($brandresult['qq']) ? srlang('zanwustr') : str_replace('{icqnumber}', getfirsticq($brandresult['qq']), $icqshow);
    $brandresult['tel'] = getfirsticq($brandresult['tel']);
}
$brandresult['groupimg'] = getgroupimg($brandresult['groupid']);
$brandresult['discount'] = $config['selectdiscountshow'][$brandresult['discount']];
$forum_thread = C::t('#sanree_brand#forum_thread')->fetch($brandresult['tid']);
$brandresult['favtimes'] = $forum_thread['favtimes'];
$brandresult['url'] = getburl($brandresult);
$brandresult['poster'] = newtheme($brandresult['poster'], 'category', '/none.gif');
if (empty($brandresult[banner])) {
    $brandresult[banner] = sr_brand_IMG . '/banner.jpg';
} else {
    $valueparse = parse_url($brandresult['banner']);
    if (!isset($valueparse['host'])) {
        $brandresult['banner'] = $_G['setting']['attachurl'] . 'common/' . $brandresult['banner'];
    }
}
$idtype = 'tid';
$favoritelist = array();
Ejemplo n.º 2
0
        $value['discount'] = intval($value['discount']);
        $value['tel114url'] = '';
        $tel114id = intval($value['tel114id']);
        if ($tel114id > 0 && $tel114version >= 1121) {
            $url = $tel114_is_rewrite ? 'tel114-view-' . $tel114id . '.html' : 'plugin.php?id=sanree_tel114&mod=view&tid=' . $tel114id;
            $value['tel114url'] = "<a href=\"" . $url . "\" onclick=\"showWindow('showtelkey', this.href)\"><img height=18 width=18 align=\"absmiddle\" src=\"" . sr_brand_IMG . "/tel114.png\" /></a>";
        }
        if ($ismultiple == 1 && $value['allowmultiple'] == 1) {
            $icqline = getfirsticq($value[$icq]);
            $value['icq'] = empty($icqline) ? srlang('zanwustr') : str_replace('{icqnumber}', $icqline, $icqshow);
            $value['tel'] = getfirsticq($value['tel']);
        } else {
            $value['qq'] = empty($value['qq']) ? srlang('zanwustr') : str_replace('{icqnumber}', getfirsticq($value['qq']), $icqshow);
        }
        $businesses_list[$i][] = $value;
        $fbusinesses_list[] = array('name' => $value['name'], 'jindex' => $j, 'poster' => $issmallpic == 1 ? brand_getlogo($value['bid'], 0, 120, 85, 'fixnone') : $value['poster'], 'propaganda' => $value['propaganda'], 'cateurl' => $value['cateurl'], 'currentlocation' => $categoryclass->getcatelocal($value['cateid']), 'addtime' => $value['addtime'], 'weburlstr' => $value['weburlstr'], 'tel114url' => $value['tel114url'], 'catename' => $value['catename'], 'uid' => $value['uid'], 'tid' => $value['tid'], 'turl' => $value['turl'], 'username' => $value['username'], 'allowmultiple' => $value['allowmultiple'], 'qq' => $value['qq'], 'msn' => $value['msn'], 'wangwang' => $value['wangwang'], 'icq' => $value['icq'], 'address' => $value['address'], 'groupid' => $value['groupid'], 'groupimg' => getgroupimg($value['groupid']), 'tel' => $value['tel'], 'discount' => $config['selectdiscountshow'][$value['discount']], 'recommendationindex' => $value['recommendationindex'], 'class' => $j % 3 == 0 ? ' class="' . $value['class'] . '"' : ' class="mr10 ' . $value['class'] . '"', 'forum_thread' => array('views' => $value['forum_thread']['views'], 'replies' => $value['forum_thread']['replies'], 'favtimes' => $value['forum_thread']['favtimes']));
    }
    $murl = $is_rewrite ? getcateurl(array('tid' => $cateid, 'listmode' => $listmode)) . '?t' . $extra : getcateurl(array('tid' => $cateid, 'listmode' => $listmode)) . $extra;
    $multi = multi($count, $perpage, $page, $murl);
}
$published_data3 = str_replace('{adminabouturl}', $adminabouturl, srlang('published_data3'));
$orderby = 't.istop desc,t.displayorder, t.dateline desc';
$recommendlist = array();
foreach (C::t('#sanree_brand#sanree_brand_businesses')->fetch_all_by_searchc(array('c.status=1', 't.isrecommend=1', 't.status=1'), $orderby, 0, $Recommendnum) as $value) {
    $value['recommendimg'] = srfiximages($value['recommendimg'], 'common', '/none1.gif');
    if ($reurlmode == 1) {
        $url = empty($value['weburl']) || $value['weburl'] == 'http://' ? getburl($value) : $value['weburl'];
    } else {
        $url = getburl($value);
    }
    $recommendlist[] = array('name' => $value['name'], 'img' => '<img src="' . $value['recommendimg'] . '" alt="' . $value['name'] . '" />', 'url' => $url);
Ejemplo n.º 3
0
    $where[] = 't.uid=' . $_G['uid'];
    $where[] = 'c.status=1';
    $in = array_search($st, $starray);
    $where[] = 't.status=' . $starrayv[$in];
    $count = C::t('#sanree_brand#sanree_brand_businesses')->count_by_wherec($where);
    if ($count > 0) {
        require_once libfile('function/discuzcode');
        $orderby = 't.istop desc,t.displayorder,t.dateline desc';
        $datalist = C::t('#sanree_brand#sanree_brand_businesses')->fetch_all_by_searchc($where, $orderby, ($page - 1) * $perpage, $perpage);
        $maxorder = C::t('#sanree_brand#sanree_brand_group')->get_by_maxorder();
        foreach ($datalist as $value) {
            $value['turl'] = getburl($value);
            $value['editurl'] = 'plugin.php?id=sanree_brand&mod=published&bid=' . $value['bid'];
            $value['brandconfigurl'] = 'plugin.php?id=sanree_brand&mod=brandconfig&bid=' . $value['bid'];
            $value['dateline'] = dgmdate($value['dateline']);
            $value['groupimg'] = getgroupimg($value['groupid']);
            if (intval($value['groupid'])) {
                $group = C::t('#sanree_brand#sanree_brand_group')->fetch_order_by_groupid(intval($value['groupid']));
                $value['order'] = $group['order'];
            } else {
                $value['order'] = -1;
            }
            if ($value['order'] == $maxorder['order']) {
                $value['maxorder'] = 1;
            }
            $classarr[$value[bid]] = $value;
        }
        $murl = 'plugin.php?id=sanree_brand&mod=mybrand' . $extra;
        $multi = multi($count, $perpage, $page, $murl);
    }
}