if ($count > 0) { include_once libfile('function/home'); $picturecatelist = array(); $aids = '['; $tmparray = array(); foreach (C::t('#sanree_brand#sanree_brand_album')->fetch_all_by_searchex($where, 'ishome desc,displayorder,albumid desc', ($page - 1) * $perpage, $perpage) as $key => $album) { if ($config['isbird']) { $album['thumbpic'] = pic_cover_get($album['pic'], 1); } else { $album['thumbpic'] = $isalbumthumb == 1 ? sr_albumimage($album['pic'], 160, 160) : pic_cover_get($album['pic'], 1); } $album['pic'] = pic_cover_get($album['pic'], 1); $picturecatelist[$key] = $album; $tmparray[] = "'{$album['albumid']}'"; } $aids .= implode($tmparray, ","); $aids .= ']'; $murl = getalbumitemurl($catid); $multi = multi($count, $perpage, $page, $murl); } if (!$config['isbird']) { require_once libfile('class/' . $plugin['identifier'] . '_menu', 'plugin/' . $plugin['identifier']); $menuclass = new sanree_brand_menu($plugin['identifier']); $menuclass->getmenu($brandresult, 'myalbum'); $brand_header = $menuclass->_brand_header; $brand_header_one = $menuclass->_brand_header_one; } $bid = $brandresult['bid']; $group = C::t('#sanree_brand#sanree_brand_group')->get_by_groupid($brandresult['groupid']); $allowbatchimage = intval($group['allowbatchimage']); include templateEx($plugin['identifier'] . ':' . $template . '/albumshow');
$brandresult['tel'] = getfirsticq($brandresult['tel']); } else { $brandresult['qq'] = empty($brandresult['qq']) ? srlang('zanwustr') : str_replace('{icqnumber}', getfirsticq($brandresult['qq']), $icqshow); if (!$config['isbird']) { $brandresult['tel'] = getfirsticq($brandresult['tel']); } } $tel114id = intval($brandresult['tel114id']); if ($tel114id > 0 && $tel114version >= 1121) { $url = $tel114_is_rewrite ? 'tel114-view-' . $tel114id . '.html' : 'plugin.php?id=sanree_tel114&mod=view&tid=' . $tel114id; $brandresult['tel114url'] = '<a href="' . $url . '" onclick="showWindow(\'showtelkey\', this.href)"><img height=18 width=18 align="absmiddle" src="' . sr_brand_IMG . '/tel114.png" /></a>'; } if (!$config['isbird']) { require_once libfile('class/' . $plugin['identifier'] . '_menu', 'plugin/' . $plugin['identifier']); $menuclass = new sanree_brand_menu($plugin['identifier']); $menuclass->getmenu($brandresult, 'index'); $brand_header = $menuclass->_brand_header; $brand_header_one = $menuclass->_brand_header_one; $mtfopen = $_G['cache']['plugin']['sanree_mcertification']['isopen']; if ($mtfopen) { $mcertification = C::t('#sanree_mcertification#sanree_mcertification')->gettype_by_bid(intval($bid)); $mtf = 'source/plugin/sanree_mcertification/tpl/default/mcertification/brandimg/bignone.png'; if ($mcertification) { $mtf = $mcertification['type'] ? 'source/plugin/sanree_mcertification/tpl/default/mcertification/brandimg/bigpersonal.png' : 'source/plugin/sanree_mcertification/tpl/default/mcertification/brandimg/bigcompany.png'; } } $attention = $_G['cache']['plugin']['sanree_attention']['isopen']; if ($attention) { $addbtn = 'source/plugin/sanree_attention/tpl/default/img/addbtn.png'; $delbtn = 'source/plugin/sanree_attention/tpl/default/img/delbtn.png'; $uids = C::t('#sanree_attention#sanree_attention')->getuid_by_bid(intval($bid));