Example #1
0
<?php

$strUrl = 'index.php?do=user&view=shop&op=setting';
$shopInfo = db_factory::get_one(sprintf(" select * from %switkey_shop where uid='%d' ", TABLEPRE, $gUid));
if ($ajaxop == 'setstatus') {
    $status = 3;
    if ($setstatus == 'open') {
        $status = '1';
        keke_shop_release_class::updateShopStatus($uid, $status);
    } else {
        keke_shop_release_class::closeShop($uid, $status);
    }
    die;
}
$arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name');
if ($shopInfo['city']) {
    $arrCity = CommonClass::getDistrictById($shopInfo['city'], 'id,upid,name');
}
if ($shopInfo['area']) {
    $arrArea = CommonClass::getDistrictById($shopInfo['area'], 'id,upid,name');
}
$arrBackgroudStyle = unserialize($shopInfo['shop_backstyle']);
$objShopT = keke_table_class::get_instance('witkey_shop');
if (isset($formhash) && kekezu::submitcheck($formhash)) {
    if (strtoupper(CHARSET) == 'GBK') {
        $shop_name = kekezu::utftogbk($shop_name);
        $shop_slogans = kekezu::utftogbk($shop_slogans);
        $seo_title = kekezu::utftogbk($seo_title);
        $seo_keyword = kekezu::utftogbk($seo_keyword);
        $seo_desc = kekezu::utftogbk($seo_desc);
        $address = kekezu::utftogbk($address);
Example #2
0
$incomeCash = number_format($incomeCash[0][cash], 2);
$arrAuthItems = keke_auth_fac_class::getAuthItemListByUid($id);
$arrSellerLevel = unserialize($arrSellerInfo['seller_level']);
$arrSellerMark = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], '2', null, '1');
foreach ($arrSellerMark as $k => $v) {
    $arrSellerMark[$k]['star'] = intval($v['avg']);
}
$arrFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrSellerInfo['uid'])));
if ($arrFollow) {
    $arrSellerInfo['follow'] = 1;
} else {
    $arrSellerInfo['follow'] = 0;
}
unset($arrFollow);
if ($closeshop) {
    keke_shop_release_class::closeShop($arrSellerInfo['uid'], 3);
    kekezu::show_msg("店铺已关闭", null, null, NULL, 'success');
    die;
}
if ($openshop) {
    keke_shop_release_class::updateShopStatus($arrSellerInfo['uid'], 1);
    kekezu::show_msg("店铺已开张,可以添加商品哦!", null, null, NULL, 'success');
    die;
}
$intGoodsCount = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and service_status = 2 ', TABLEPRE . 'witkey_service ', $arrSellerInfo['uid']));
$intTaskCount = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and task_status >1', TABLEPRE . 'witkey_task', $arrSellerInfo['uid']));
$intCaseCount = db_factory::get_count(sprintf('select count(*) from %s where shop_id = %d ', TABLEPRE . 'witkey_shop_case', $arrSellerInfo['shop_id']));
$intMarkCount = db_factory::get_count(sprintf('select count(*) from %s where mark_status > 0  and uid = %d', TABLEPRE . 'witkey_mark', $arrSellerInfo['uid']));
$_SESSION['spread'] = 'index.php?do=seller&id=' . intval($id);
require $do . '/' . $view . '.php';
require $kekezu->_tpl_obj->template($do . '/' . $view);
Example #3
0
        break;
    case "nopass":
        $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id));
        $shop_obj->setWhere("shop_id=" . $shop_id);
        $shop_obj->setShop_status(2);
        $shop_obj->edit_keke_witkey_shop();
        kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['operate_success'], 'success');
        break;
    case "open":
        $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id));
        keke_shop_release_class::updateShopStatus($shop_info['uid'], 1);
        kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['operate_success'], 'success');
        break;
    case "close":
        $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id));
        keke_shop_release_class::closeShop($shop_info['uid'], 3);
        kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['operate_success'], 'success');
        break;
    case 'recommend':
        $sql = sprintf("update  %switkey_space set recommend=1 where uid =%d", TABLEPRE, $edituid);
        db_factory::execute($sql);
        kekezu::admin_system_log($_lang['recommend'] . $memberinfo_arr['username']);
        kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success');
        break;
    case 'move_recommend':
        $sql = sprintf("update  %switkey_space set recommend=0 where uid =%d", TABLEPRE, $edituid);
        db_factory::execute($sql);
        kekezu::admin_system_log($_lang['move_recommend'] . $memberinfo_arr['username']);
        kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success');
        break;
}