}
 if ($result['poster']) {
     $valueparse = parse_url($result['poster']);
     if (isset($valueparse['host'])) {
         $grouplogo = $result['poster'];
     } else {
         $grouplogo = $_G['setting']['attachurl'] . 'category/' . $result['poster'] . '?' . random(6);
     }
     $grouplogohtml = '<label></label><br /><img width="180" height="128" src="' . $grouplogo . '" />';
 }
 $result['weburl'] = str_replace("http://", '', $result['weburl']);
 showformheader($thisurl . "&do=" . $do . "&bid=" . $bid . "&page=" . $page, 'enctype');
 showtableheader($menustr, 'nobottom');
 showsetting($langs['catename'], '', '', '<select name="cateid">' . $cateselect . '</select>', '', '', $langs['bitian']);
 showsetting($langs['group'], '', '', '<select name="groupid">' . $groupselect . '</select>');
 showsetting($langs['discount'], '', '', brand_discountsetting($result['discount']));
 if ($isselfdistrict == 1) {
     echo '<script language="javascript" src="source/plugin/sanree_brand/tpl/good/js/district.js"></script>';
     $html = brand_setting('birthcity', $result);
     if ($html) {
         showsetting($langs['region'], '', '', $html);
     }
 } else {
     include_once libfile('function/profile');
     $html = profile_setting('birthcity', $result);
     if ($html) {
         showsetting($langs['region'], '', '', $html);
     }
 }
 $mflist = array();
 foreach (C::t('#sanree_brand#sanree_brand_mf')->fetch_all_mf() as $data) {
    }
} 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);
    }
    $discounthtml = brand_discountsetting($result['discount']);
    $pubtip_price = srlang('pubtip_price');
    $pubtip_price = str_replace(array('{regprice}', '{creditunitname}'), array($regprice, $creditunitname), $pubtip_price);
    $pubtip_shen = srlang('pubtip_shen');
    $pubtip_shen = str_replace(array('{admintel}'), array($admintel), $pubtip_shen);
    $pubtip_ok = srlang('pubtip_ok');
    $pubtip_ok = str_replace(array('{admintel}'), array($admintel), $pubtip_ok);
    if ($_G['inajax'] == 1) {
        include templateEx($plugin['identifier'] . ':' . $template . "/" . $mod . '_ajax');
    } else {
        $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, 8) as $value) {
            $value[url] = getburl($value);
            $newlist[] = $value;
        }
        include templateEx($plugin['identifier'] . ':' . $template . "/" . $mod);