Пример #1
0
            sanreeupdatecache('recommendlist');
            showmessage(srlang('yesmessage'), $url_forward, array(), $extra);
        } else {
            fixthread($bid);
            syngroup($bid);
            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');
Пример #2
0
                $datashow[] = "<input type=\"checkbox\"  size=\"12\" name=\"group_" . $fieldrow . "[{$row['bid']}]\" value=\"1\" {$ischeckedstr}>";
            }
            showtablerow('', array('', '', '', 'class="td25"'), $datashow);
        }
        showsubmit('submit', 'submit', '', '', $multipage, false);
        showtablefooter();
        showformfooter();
    }
} elseif ($do == 'list') {
    if (submitcheck('submit')) {
        if (is_array($_G['sr_group_name'])) {
            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();
Пример #3
0
         showsubmenu($menustr);
         showformheader($thisurl . "&do=" . $do . "&msgid=" . $msgid . "&page=" . $page . '&control=' . $control . '&type=' . $_G['sr_type'], 'enctype');
         showtableheader($langs['typeinfo1'], 'nobottom');
         showsubtitle(array($langs['error_brand'] . ': <span style="color:#FF0000;">' . $result['brandname'] . '</span>'));
         showsubtitle(array($langs['error_subject'] . '<span style="color:#0000FF;">' . $result['words'] . '</span>'));
         showsetting($langs['yichuli'], 'status', $result['status'], 'radio');
         showsetting($langs['error_result'], 'refuse', $result['refuse'], 'textarea');
         showsubmit('chuli', 'submit', '', '<input onclick="javascript:history.back()" class="btn" type="button" value="' . $langs['back'] . '">');
         showtablefooter();
         showformfooter();
     }
 } elseif ($control == 'pass') {
     if (submitcheck('passsubmit')) {
         C::t('#sanree_brand#sanree_brand_msg')->update($msgid, array('refuse' => dhtmlspecialchars(trim($_G['sr_refuse'])), 'status' => 1, 'opdate' => TIMESTAMP));
         C::t('#sanree_brand#sanree_brand_businesses')->update($result[bid], array('ownerid' => $result[uid], 'uid' => $result[uid]));
         fixthread($result[bid]);
         C::t('#sanree_brand#sanree_brand_album_category')->update_uid_by_bid($result[bid], $result[uid]);
         C::t('#sanree_brand#sanree_brand_album')->update_uid_by_bid($result[bid], $result[uid]);
         $welcomemsgtxt = $langs['renlingchenggong'] . dhtmlspecialchars(trim($_G['sr_refuse']));
         @notification_addex($result['uid'], 'system', $welcomemsgtxt, array(), 1);
         cpmsg($langs['succeed'], $gotourl . 'msg&type=' . $type . '&page=' . $_G['sr_page'], 'succeed');
     } else {
         showsubmenu($menustr);
         showformheader($thisurl . "&do=" . $do . "&msgid=" . $msgid . "&page=" . $page . '&control=' . $control . '&type=' . $_G['sr_type'], 'enctype');
         showtableheader('', 'nobottom');
         showsubtitle(array($langs['error_brand'] . $result['brandname']));
         showsubtitle(array($langs['error_subject'] . $result['words']));
         showsetting($langs['yichuli'], 'status', $result['status'], 'radio');
         showsetting($langs['error_result'], 'refuse', $result['refuse'], 'textarea');
         showsubmit('passsubmit', $langs['pass'], '', '<input onclick="javascript:history.back()" class="btn" type="button" value="' . $langs['back'] . '">');
         showtablefooter();