function show($is_rewrite) { global $_G, $allurl; $cateid = intval($_G['sr_tid']); $act = $cateid < 1 ? ' class="cateon"' : ''; $this->_category_list[0] = array('class' => $act, 'name' => !empty($this->_allcategorytitle) ? $this->_allcategorytitle : srlang('all'), 'url' => $allurl); $this->_location = srlang('all'); if (!is_array($_G['cache']['sanree_brand_category'])) { sanreeupdatecache('category'); } $this->_subcategory = sanreeloadcache('subcategory'); $this->_category = sanreeloadcache('category'); $this->_navigation = ''; foreach ($this->_subcategory as $value) { $value['url'] = getcateurl(array('tid' => $value['cateid'])); if ($value['cateid'] == $cateid) { $this->_navigation = "<em>»</em>{$value['name']}"; $this->_location = $value[name]; } $this->_category_list[$value['cateid']] = array('class' => $value['class'], 'name' => $value['name'], 'url' => $value['url']); } if ($cateid > 0) { $this->_curcatedata = $this->_subcategory[$cateid]; $this->_pid = intval($this->_category[$cateid]['pcateid']); if ($this->_pid == 0) { $this->_pid = $cateid; $purl = getcateurl(array('tid' => $this->_pid)); $this->_subdata = array('class' => ' class="cateon"', 'name' => srlang('notlimited'), 'url' => $purl); } else { $purl = getcateurl(array('tid' => $this->_pid)); $this->_navigation .= '<em>»</em><a href="' . $purl . '">' . $this->_category[$this->_pid][name] . '</a>'; $this->_subdata = array('class' => '', 'name' => srlang('notlimited'), 'url' => $purl); } $this->_category_list[$this->_pid]['class'] = ' class="cateon"'; foreach ($this->_subcategory[$this->_pid]['subcategories'] as $value) { $count = C::t('#sanree_brand#sanree_brand_businesses')->count_by_cateid($value['cateid']); $value['url'] = getcateurl(array('tid' => $value[cateid])); if ($value['cateid'] == $cateid) { $value['class'] = ' class="cateon"'; $this->_navigation .= '<em>»</em>' . $value[name]; $this->_location = $value[name]; } $this->_subcategory_list[$value['cateid']] = array('count' => $count, 'class' => $value['class'], 'name' => $value[name], 'url' => $value['url']); } } }
} else { $setarr['ID'] = $type; DB::insert('sanree_brand_slide', $setarr); } $xml = '<<<EOF <?xml version="1.0" encoding="utf-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> $tmpstr </trackList> </playlist> EOF'; if ($type == 1) { writexml($xml); } sanreeupdatecache('slidelist'); cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&identifier=sanree_brand&pmod=admincp&type=" . $type, 'succeed'); } else { if ($config['isbird']) { $result = DB::fetch_first("SELECT * FROM " . DB::table('sanree_brand_slide') . ' where id=3'); showsubmenu($menustr); showformheader($thisurl . '&type=3', 'enctype'); showtableheader($langs['slide'], 'nobottom'); for ($j = 1; $j < 6; $j++) { $grouplogohtml = ''; $pic = ''; if ($result['pic' . $j]) { $pic = $result['pic' . $j]; $grouplogohtml = '<label>' . $langs['newslideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />'; } else { $grouplogohtml = $langs['newslideimgtip'];
<?php /** * [Sanree] (C)2012-2099 Sanree Inc. * This is NOT a freeware, use is subject to license terms * * $Id: sanree_brand_updatecache.php $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('2014042523s4K4QUOUT9||5057||1411992002'); } $cachearray = array('category', 'menu', 'help', 'hotbrandlist', 'newbrandlist', 'recommendlist', 'slidelist'); foreach ($cachearray as $name) { sanreeupdatecache($name); } showsubmenu($menustr); cpmsg($langs['updatecachesucceed'], 'action=plugins&operation=config&act=base&identifier=sanree_brand&pmod=admincp', 'succeed');
function getmenu($brandresult, $active) { global $_G, $template, $bodycss, $ishideheader, $allurl; $group = C::t('#sanree_brand#sanree_brand_group')->get_by_groupid($brandresult['groupid']); global $myhomeurl, $referer, $addgroup; $tmpconfig = $_G['cache']['plugin']['sanree_brand']; $allowsyngroup = intval($tmpconfig['allowsyngroup']); $isshowordinary = intval($tmpconfig['isshowordinary']); !defined('sr_brand_JS') && define('sr_brand_JS', sr_brand_TPL . '/' . $tmpconfig['template'] . '/js'); !defined('SANREE_BRAND_TEMPLATE') && define('SANREE_BRAND_TEMPLATE', sr_brand_TPL . '/' . $tmpconfig['template']); $allurl = gethomeurl(); $myhomeurl = !empty($brandresult['brandno']) ? getbrandnourl($brandresult['brandno']) : getmyburl_by_bid($brandresult['bid']); $referer = urlencode($myhomeurl); if (!isset($_G['cache']['sanree_brand_topmenu']) || !is_array($_G['cache']['sanree_brand_topmenu'])) { sanreeupdatecache('menu'); } $menu = sanreeloadcache('topmenu'); $headermenulist = array(); $headermenulist['index'] = array('url' => getburl($brandresult), 'title' => srlang('brandindex'), 'class' => ' class="normal"'); $brandresult['allowalbum'] == 1 && ($headermenulist['myalbum'] = array('url' => getalbumurl($brandresult['bid']), 'title' => srlang('myalbum'), 'class' => ' class="normal"')); $allowsyngroup == 1 && intval($group['allowsyngroup']) == 1 && $brandresult['syngrouptid'] && ($headermenulist['dzgroup'] = array('url' => 'forum.php?mod=group&fid=' . $brandresult['syngrouptid'], 'title' => srlang('dzgroup'), 'class' => ' class="normal"')); hookscript('sanreebrandusermenu', 'global', 'funcs', array('bid' => $brandresult['bid']), 'sanreebrandusermenu'); if ($_G['sanree_brand_menus']) { foreach ($_G['sanree_brand_menus'] as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $headermenulist[$row['name']] = $row; } } $isshowordinary == 1 && ($headermenulist['ordinary'] = array('url' => 'forum.php?mod=viewthread&tid=' . $brandresult['tid'], 'title' => srlang('ordinary'), 'class' => ' class="normal"')); foreach ($menu as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $headermenulist['menu' . $row[id]] = $row; } $headermenulist[$active] && ($headermenulist[$active]['class'] = ' class="active"'); $headermenulists = $headermenulist; $headermenulist = array(); $menuorder = C::t('#sanree_brand#sanree_brand_menu_order')->fetch_all(); asort($menuorder); foreach ($menuorder as $key => $row) { if ($headermenulists[$key]) { $headermenulist[$key] = $headermenulists[$key]; } } if (intval($_G['uid']) === intval($brandresult['uid'])) { define('IN_BRAND_USER', TRUE); hookscript('sanreebrandmanagemenu', 'global', 'funcs', array('bid' => $brandresult['bid']), 'sanreebrandmanagemenu'); $managemenulist = array(); $_G['sanree_brand_managemenus'][] = array('displayorder' => 9999, 'window' => 0, 'name' => '', 'title' => '', 'url' => '', 'class' => '', 'image' => 'source/plugin/sanree_brand/tpl/good/images/add.png'); if ($_G['sanree_brand_managemenus']) { foreach ($_G['sanree_brand_managemenus'] as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $managemenulist[] = $row; } $ncount = count($managemenulist); $mod = $ncount % 10; $mt = intval($ncount / 10); $oneh = 100; if ($mt == 0) { $ih = $oneh; } else { if ($mod == 0) { $ih = $mt * $oneh; } else { $ih = ($mt + 1) * $oneh; } } $ih += 10; $managemenulist = $this->array_sort($managemenulist, 'displayorder'); } } $allowtemplate = intval($group['allowtemplate']); if ($allowtemplate == 1) { $templateconfig = unserialize($brandresult['templateconfig']); $bodystyle = $templateconfig['bodystyle']; $bodycss = ''; if ($bodystyle) { if (intval($bodystyle['isuse']) == 1) { $bodycss = "body {\r\n"; if ($bodystyle['notbackimg'] == 1) { if (!empty($bodystyle['backgroundimage'])) { $bodycss .= "background-image:url('" . $_G['setting']['attachurl'] . 'category/' . "{$bodystyle['backgroundimage']}');\r\n"; } } else { $bodycss .= "background:none;\r\n"; } if (!empty($bodystyle['backgroundrepeat'])) { $bodycss .= "background-repeat:{$bodystyle['backgroundrepeat']};\r\n"; } if (!empty($bodystyle['backgroundcolor'])) { $bodycss .= "background-color:{$bodystyle['backgroundcolor']};\r\n"; } if (!empty($bodystyle['backgroundattachment'])) { $bodycss .= "background-attachment:{$bodystyle['backgroundattachment']};\r\n"; } if (!empty($bodystyle['backgroundpositionx']) && !empty($bodystyle['backgroundpositiony'])) { $bodycss .= "background-position:{$bodystyle['backgroundpositionx']} {$bodystyle['backgroundpositiony']};\r\n"; } $bodycss .= "}"; $ishideheader = intval($bodystyle['ishideheader']); } } if ($ishideheader == 1) { $appVer = $_G['setting']['version']; include templateEx($this->_identifier . ':' . $template . '/header_one_' . $appVer); } } else { $ishideheader = 0; } include templateEx($this->_identifier . ':' . $template . '/header'); $this->_brand_header = $brand_header; $this->_brand_header_one = $brand_header_one; }
showformfooter(); } } elseif ($do == 'list') { if (submitcheck('submit')) { if (is_array($_G['sr_help_title'])) { foreach ($_G['sr_help_title'] as $id => $title) { if (!$_G['sr_delete'][$id]) { $setarr = array('displayorder' => $_G['sr_help_displayorder'][$id], 'title' => $_G['sr_help_title'][$id], 'status' => intval($_G['sr_help_status'][$id])); C::t('#sanree_brand#sanree_brand_friendly_link')->update($id, $setarr); } } } if ($_G['sr_delete']) { C::t('#sanree_brand#sanree_brand_friendly_link')->delete($_G['sr_delete']); } sanreeupdatecache('help'); cpmsg($langs['succeed'], $gotourl . 'friendly_link', 'succeed'); } else { showsubmenu($menustr); $skeyword = $_G['sr_skeyword']; showformheader($thisurl); showtableheader($langs['searchbar'], '', 'style="border:1px solid #F0F7FD"'); showtablerow('', '', $langs['skeyword'] . '<input type="text" name="skeyword" value="' . $skeyword . '" class="txt" style="width:200px;" /> <input type="submit" value="' . $langs['search'] . '" class="btn" name="searchsubmit"/>'); showtablefooter(); showformfooter(); showformheader($thisurl); showtableheader($langs['friendly_link'], 'nobottom'); showsubtitle(array('', 'display_order', 'name', $langs['status'], 'time', 'operation')); $perpage = 10; $srchadd = $searchtext = $extra = $srchuid = ''; $page = max(1, intval($_G['sr_page']));
foreach ($_G['sr_group_name'] as $id => $title) { if (!$_G['sr_delete'][$id]) { $setarr = array('name' => $_G['sr_group_name'][$id], 'displayorder' => $_G['sr_group_displayorder'][$id], 'istop' => intval($_G['sr_group_istop'][$id]), 'isrecommend' => intval($_G['sr_group_isrecommend'][$id]), 'isshow' => intval($_G['sr_group_isshow'][$id]), 'allowalbum' => intval($_G['sr_group_allowalbum'][$id]), 'allowfastpost' => intval($_G['sr_group_allowfastpost'][$id])); C::t('#sanree_brand#sanree_brand_businesses')->update($id, $setarr); fixthread($id); syngroup($id); deletecachebrandpic($id); } } } if ($_G['sr_delete']) { C::t('#sanree_brand#sanree_brand_businesses')->delete($_G['sr_delete']); } sanreeupdatecache('hotbrandlist'); sanreeupdatecache('recommendlist'); sanreeupdatecache('newbrandlist'); cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&identifier=sanree_brand&pmod=admincp&cateid=" . $cateid . '&page=' . $page, 'succeed'); } else { $category = C::t('#sanree_brand#sanree_brand_category')->fetch_all_category(); $cates = array(); foreach ($category as $v) { $cates[$v[cateid]] = $v; } $skeyword = $_G['sr_skeyword']; showsubmenu($menustr); showtableheader('', 'nobottom'); showtablerow('', array(), array('<ul class="tab1">' . '<li class="current"><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&do=list&identifier=sanree_brand&pmod=admincp"><span>' . $langs['businesses_base'] . '</span></a></li>' . '<li><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&do=plug&identifier=sanree_brand&pmod=admincp"><span>' . $langs['businesses_plug'] . '</span></a></li>' . '<li><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&do=config&identifier=sanree_brand&pmod=admincp"><span>' . $langs['businesses_config'] . '</span></a></li>' . '<li><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&do=batchbrand&identifier=sanree_brand&pmod=admincp"><span>' . $langs['batchbrand'] . '</span></a></li>' . '</ul>')); showtablefooter(); showformheader($thisurl); showtableheader($langs['searchbar'], '', 'style="border:1px solid #F0F7FD"'); showtablerow('', '', $langs['skeyword'] . '<input type="text" name="skeyword" value="' . $skeyword . '" class="txt" style="width:200px;" /> <input type="submit" value="' . $langs['search'] . '" class="btn" name="searchsubmit"/>');
C::t('#sanree_brand#sanree_brand_album_category')->insert($setarr); } } } if (is_array($_G['sr_group_title'])) { foreach ($_G['sr_group_title'] as $id => $title) { if (!$_G['sr_delete'][$id]) { $setarr = array('catname' => $_G['sr_group_title'][$id], 'displayorder' => $_G['sr_group_order'][$id]); C::t('#sanree_brand#sanree_brand_album_category')->update($id, $setarr); } } } if ($_G['sr_delete']) { mydeletealbums($_G['sr_delete']); } sanreeupdatecache('category'); cpmsg($langs['succeed'], "action=" . $thisurl, 'succeed'); } else { showsubmenu($menustr); showtableheader('', 'nobottom'); showtablerow('', array(), array('<ul class="tab1">' . '<li class="current"><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=album_category&identifier=sanree_brand&pmod=admincp"><span>' . $langs['albumcate'] . '</span></a></li>' . '<li><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=album&identifier=sanree_brand&pmod=admincp"><span>' . $langs['piclist'] . '</span></a></li></ul>')); showtablefooter(); $skeyword = $_G['sr_skeyword']; showformheader($thisurl); showtableheader($langs['searchbar'], '', 'style="border:1px solid #F0F7FD"'); showtablerow('', '', $langs['skeyword'] . '<input type="text" name="skeyword" value="' . $skeyword . '" class="txt" style="width:200px;" /> <input type="submit" value="' . $langs['search'] . '" class="btn" name="searchsubmit"/>'); showtablefooter(); showformfooter(); showformheader($thisurl); showtableheader($langs['albumcate'], 'nobottom'); showsubtitle(array('', $langs['showorder'], $langs['albumcatename'], $langs['error_brand'], $langs['user'], $langs['count'], 'time', 'operation'));
deletecachebrandpic($bid); sendbrand_notice($bid, 'brand_pass'); sanreeupdatecache('newbrandlist'); sanreeupdatecache('hotbrandlist'); sanreeupdatecache('recommendlist'); showmessage(srlang('okmessage'), $url_forward, array(), $extra); } } else { C::t('#sanree_brand#sanree_brand_businesses')->update($bid, $setarr); if ($result['status'] == 1) { fixthread($bid); syngroup($bid); deletecachebrandpic($bid); } sanreeupdatecache('hotbrandlist'); sanreeupdatecache('recommendlist'); showmessage(srlang('editmessage'), $url_forward, array(), $extra); } } else { $category_list = array(); $category = sanreeloadcache('usercate'); foreach ($category as $value) { $category_list[] = $value; } $navtitle = srlang('dengjititle'); $addteltitle = $config['djtitle'] ? $config['djtitle'] : srlang('teladd'); if ($isselfdistrict == 1) { $districthtml = brand_setting('birthcity', $result); } else { include_once libfile('function/profile'); $districthtml = profile_setting('birthcity', $result);
function get_menu_head($brandresult, $active) { global $_G, $template, $bodycss, $ishideheader, $allurl, $myhomeurl, $referer, $addgroup, $ismultiple; $bid = $brandresult['bid']; $tid = $brandresult['tid']; $group = C::t('#sanree_brand#sanree_brand_group')->get_by_groupid($brandresult['groupid']); $tmpconfig = $_G['cache']['plugin']['sanree_brand']; $allowsyngroup = intval($tmpconfig['allowsyngroup']); $isshowordinary = intval($tmpconfig['isshowordinary']); !defined('sr_brand_JS') && define('sr_brand_JS', sr_brand_TPL . '/' . $tmpconfig['template'] . '/js'); !defined('SANREE_BRAND_TEMPLATE') && define('SANREE_BRAND_TEMPLATE', sr_brand_TPL . '/' . $tmpconfig['template']); $allurl = gethomeurl(); $myhomeurl = !empty($brandresult['brandno']) ? getbrandnourl($brandresult['brandno']) : getmyburl_by_bid($brandresult['bid']); $referer = urlencode($myhomeurl); if (!isset($_G['cache']['sanree_brand_topmenu']) || !is_array($_G['cache']['sanree_brand_topmenu'])) { sanreeupdatecache('menu'); } $menu = sanreeloadcache('topmenu'); $headermenulist = array(); $headermenulist['index'] = array('url' => getburl($brandresult), 'title' => srlang('frontpage'), 'class' => ' class="normal"'); $headermenulist['detail'] = array('url' => getdetailurl($brandresult), 'title' => srlang('bird_item_detail'), 'class' => ' class="normal"'); $brandresult['allowalbum'] == 1 && ($headermenulist['myalbum'] = array('url' => getalbumurl($brandresult['bid']), 'title' => srlang('myalbum'), 'class' => ' class="normal"')); $allowsyngroup == 1 && intval($group['allowsyngroup']) == 1 && $brandresult['syngrouptid'] && ($headermenulist['dzgroup'] = array('url' => 'forum.php?mod=group&fid=' . $brandresult['syngrouptid'], 'title' => srlang('dzgroup'), 'class' => ' class="normal"')); hookscript('sanreebrandusermenu', 'global', 'funcs', array('bid' => $brandresult['bid']), 'sanreebrandusermenu'); if ($_G['sanree_brand_menus']) { foreach ($_G['sanree_brand_menus'] as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $headermenulist[$row['name']] = $row; } } $isshowordinary == 1 && ($headermenulist['ordinary'] = array('url' => 'forum.php?mod=viewthread&tid=' . $brandresult['tid'], 'title' => srlang('ordinary'), 'class' => ' class="normal"')); foreach ($menu as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $headermenulist['menu' . $row[id]] = $row; } $headermenulist[$active] && ($headermenulist[$active]['class'] = ' class="current"'); $headermenulists = $headermenulist; $headermenulist = array(); $menuorder = C::t('#sanree_brand#sanree_brand_menu_order')->fetch_all(); asort($menuorder); foreach ($menuorder as $key => $row) { if ($headermenulists[$key]) { $headermenulist[$key] = $headermenulists[$key]; } if (!$row) { $headermenulist['detail'] = $headermenulists['detail']; } } if (intval($_G['uid']) === intval($brandresult['uid'])) { define('IN_BRAND_USER', TRUE); hookscript('sanreebrandmanagemenu', 'global', 'funcs', array('bid' => $brandresult['bid']), 'sanreebrandmanagemenu'); $managemenulist = array(); $_G['sanree_brand_managemenus'][] = array('displayorder' => 9999, 'window' => 0, 'name' => '', 'title' => '', 'url' => '', 'class' => '', 'image' => 'source/plugin/sanree_brand/tpl/good/images/add.png'); if ($_G['sanree_brand_managemenus']) { foreach ($_G['sanree_brand_managemenus'] as $row) { $row['url'] = str_replace('{tid}', $brandresult['tid'], $row['url']); $row['url'] = str_replace('{bid}', $brandresult['bid'], $row['url']); $row['url'] = str_replace('{pid}', $brandresult['pid'], $row['url']); $managemenulist[] = $row; } $ncount = count($managemenulist); $mod = $ncount % 10; $mt = intval($ncount / 10); $oneh = 100; if ($mt == 0) { $ih = $oneh; } else { if ($mod == 0) { $ih = $mt * $oneh; } else { $ih = ($mt + 1) * $oneh; } } $ih += 10; } } $allowtemplate = intval($group['allowtemplate']); if ($allowtemplate == 1) { $templateconfig = unserialize($brandresult['templateconfig']); $bodystyle = $templateconfig['bodystyle']; $bodycss = ''; if ($bodystyle) { if (intval($bodystyle['isuse']) == 1) { $bodycss = "body {\r\n"; if ($bodystyle['notbackimg'] == 1) { if (!empty($bodystyle['backgroundimage'])) { $bodycss .= "background-image:url('" . $_G['setting']['attachurl'] . 'category/' . "{$bodystyle['backgroundimage']}');\r\n"; } } else { $bodycss .= "background:none;\r\n"; } if (!empty($bodystyle['backgroundrepeat'])) { $bodycss .= "background-repeat:{$bodystyle['backgroundrepeat']};\r\n"; } if (!empty($bodystyle['backgroundcolor'])) { $bodycss .= "background-color:{$bodystyle['backgroundcolor']};\r\n"; } if (!empty($bodystyle['backgroundattachment'])) { $bodycss .= "background-attachment:{$bodystyle['backgroundattachment']};\r\n"; } if (!empty($bodystyle['backgroundpositionx']) && !empty($bodystyle['backgroundpositiony'])) { $bodycss .= "background-position:{$bodystyle['backgroundpositionx']} {$bodystyle['backgroundpositiony']};\r\n"; } $bodycss .= "}"; $ishideheader = intval($bodystyle['ishideheader']); } } if ($ishideheader == 1) { $appVer = $_G['setting']['version']; include templateEx($this->_identifier . ':' . $template . '/header_one_' . $appVer); $GLOBALS['brand_header_one'] = $brand_header_one; } } else { $ishideheader = 0; } $slideid = 3; $slidelistarr = sanreeloadcache('slidelist'); if (!$brandresult['newbanner']) { $slidelistarr[3] = array(array('pic' => 'source/plugin/sanree_brand/tpl/bird/images/c_banner.jpg', 'url' => 'http://dx.sanree.com/'), array('pic' => 'source/plugin/sanree_brand/tpl/bird/images/c_banner_01.jpg', 'url' => 'http://dx.sanree.com/'), array('pic' => 'source/plugin/sanree_brand/tpl/bird/images/c_banner_02.jpg', 'url' => 'http://dx.sanree.com/'), array('pic' => 'source/plugin/sanree_brand/tpl/bird/images/c_banner_05.jpg', 'url' => 'http://dx.sanree.com/'), array('pic' => 'source/plugin/sanree_brand/tpl/bird/images/c_banner_06.jpg', 'url' => 'http://dx.sanree.com/')); } else { $brandresult['newbanner'] = explode(',', $brandresult['newbanner']); $slidelistarr[3] = $brandresult['newbanner']; } $slidelist = $slidelistarr[$slideid]; $slide_prefix = $_G['setting']['attachurl'] . 'category/'; $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)); $atnbtn = $addbtn; $flag = 0; $atnurl = 'plugin.php?id=sanree_attention&mod=addattention&bid=' . intval($bid); if ($uids) { foreach ($uids as $uid) { if ($uid['uid'] == $_G['uid']) { $atnbtn = $delbtn; $flag = 1; $atnurl = 'plugin.php?id=sanree_attention&mod=delattention&bid=' . intval($bid); $deltip = attention_modlang('confirmationdel'); break; } } } } $assistcount = C::t('#sanree_brand#sanree_brand_assist')->count_by_where(' && bid =' . intval($bid)); $assistuids = C::t('#sanree_brand#sanree_brand_assist')->getuid_by_bid(intval($bid)); if ($assistuids) { foreach ($assistuids as $uid) { if ($uid['uid'] == $_G['uid']) { $assistflag = 1; break; } } } if (!$brandresult['satisfaction']) { $voter = C::t('#sanree_brand#sanree_brand_voter')->getvotetotal_by_tid($tid); $brandresult['satisfaction'] = intval($voter[3]); } if ($ismultiple == 1 && $brandresult['allowmultiple'] == 1) { $tempresult = C::t('#sanree_brand#sanree_brand_businesses')->getbusinesses_by_bid($bid); $tellist = explode(',', $tempresult['tel']); } else { $brandresult['tel'] = getfirsticq($brandresult['tel']); } include templateEx($this->_identifier . ':' . $this->_template . '/srhead'); $GLOBALS['srhead'] = $srhead; }