Exemplo n.º 1
0
                 die;
             }
             break;
     }
 }
 $arrBreadcrumbs = array(1 => array('url' => 'index.php?do=goodslist', 'name' => '威客商城'), 2 => array('url' => 'index.php?do=goodslist&pd=' . $arrServiceInfo['indus_pid'], 'name' => $indus_p_arr[$arrServiceInfo['indus_pid']]['indus_name']), 3 => array('url' => 'index.php?do=goodslist&pd=' . $arrServiceInfo['indus_pid'] . '&i=' . $arrServiceInfo['indus_id'], 'name' => $indus_arr[$arrServiceInfo['indus_id']]['indus_name']));
 $arrCoverList = keke_shop_class::output_pics($arrServiceInfo['pic'], '');
 $intNum = sizeof($arrCoverList);
 $mc = keke_shop_class::get_mark_count_ext($model_list[$arrServiceInfo['model_id']]['model_code'], $intId);
 $mc['all'] = intval($mc[1]['c'] + $mc[2]['c']);
 $mc['seller'] = intval($mc[1]['c']);
 $mc['buyer'] = intval($mc[2]['c']);
 $arrOwnerInfo = kekezu::get_user_info($arrServiceInfo['uid']);
 $strAddress = keke_shop_class::getUserAddress($arrServiceInfo['uid'], 2, 1, 1, 0);
 $strUserLevel = unserialize($arrOwnerInfo['seller_level']);
 $arrAuthItems = keke_auth_fac_class::getAuthItemListByUid($arrOwnerInfo['uid']);
 $arrShopAid = keke_user_mark_class::get_user_aid($arrOwnerInfo['uid'], 2, null, 1);
 $arrOtherGoods = db_factory::query("select * from " . TABLEPRE . "witkey_service where uid=" . intval($arrOwnerInfo['uid']) . " and service_id!='" . $arrServiceInfo['service_id'] . "' and service_status=2 order by on_time desc limit 3");
 $arrPayitemLists = PayitemClass::getPayitemListDetail('goods', $arrServiceInfo['service_id']);
 $arrPayitemShow = keke_shop_class::getPayitemShow($arrServiceInfo);
 $arrRecommShops = db_factory::query(sprintf("select a.username,a.uid,b.indus_id,b.indus_pid,a.shop_name,if(b.seller_total_num>0,b.seller_good_num/b.seller_total_num,0) as good_rate from %switkey_shop a " . " left join %switkey_space b on a.uid=b.uid  where b.recommend=1 and b.status=1 and IFNULL(a.is_close,0)=0 and shop_status=1 order by if(b.indus_pid=%d ,1,0) desc, good_rate desc limit 0,5", TABLEPRE, TABLEPRE, $arrServiceInfo['indus_pid']), 1, $intIndexCacheTime);
 if ($arrModelInfo['open_custom'] == '1') {
     $c_open = 1;
     $arrShowCustoms = CustomClass::getExtData($arrServiceInfo['service_id'], $arrModelInfo['model_id']);
     foreach ($arrShowCustoms as $k => $v) {
         if ($v['extdata']) {
             $arrShowCustoms[$k]['data'] = unserialize($v['extdata']);
         }
     }
 }
 require S_ROOT . "/shop/" . $arrModelInfo['model_dir'] . "/control/index.php";
Exemplo n.º 2
0
} elseif ($view == 'case') {
    $strPageTitle = "案例-" . $shopTitle . "-" . $_K['html_title'];
    $strPageKeyword = "({$arrSellerInfo['username']}的店铺,{$arrSellerInfo['username']}的案例)";
    $strPageDescription = $arrSellerInfo['seo_desc'];
} elseif ($view == 'mark' && $type == '2') {
    $strPageTitle = "能力等级-" . $shopTitle . "-" . $_K['html_title'];
    $strPageKeyword = "({$arrSellerInfo['username']}的店铺,{$arrSellerInfo['username']}的能力等级)";
    $strPageDescription = $arrSellerInfo['seo_desc'];
} else {
    $strPageTitle = "信誉等级-" . $shopTitle . "-" . $_K['html_title'];
    $strPageKeyword = "({$arrSellerInfo['username']}的店铺,{$arrSellerInfo['username']}的信誉等级)";
    $strPageDescription = $arrSellerInfo['seo_desc'];
}
$incomeCash = db_factory::query(sprintf('SELECT sum(fina_cash) as cash FROM `' . TABLEPRE . 'witkey_finance` where to_days( NOW( ) ) - to_days( FROM_UNIXTIME( fina_time ) ) <=90  and fina_type="in" and (fina_action="sale_service" or fina_action="task_bid" or fina_action="sale_gy") and uid = %s', $arrSellerInfo['uid']));
$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');
Exemplo n.º 3
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$uid = intval($_R['uid']);
$username = $_R['username'];
$intCountTask = db_factory::get_count('select count(task_id) from ' . TABLEPRE . 'witkey_task where uid = ' . $uid);
$strSql = "SELECT count(*) count FROM `" . TABLEPRE . "witkey_task` WHERE ( task_id IN ( SELECT task_id FROM " . TABLEPRE . "witkey_task_bid WHERE uid = " . $uid . " ) OR task_id IN ( SELECT task_id FROM " . TABLEPRE . "witkey_task_work WHERE uid = " . $uid . " ) )";
$intParrtTask = intval(db_factory::get_count($strSql));
$intCountSj = db_factory::get_count('select count(service_id) from ' . TABLEPRE . 'witkey_service where uid = ' . $uid . ' and service_status = 2');
$strWhere = ' 1=1 ';
$strWhere .= ' and a.order_uid = ' . $uid;
$strWhere .= ' and b.obj_type = ' . "'service'";
$strSql1 = ' SELECT count(*) count FROM `' . TABLEPRE . 'witkey_order` AS a ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_order_detail AS b ON a.order_id = b.order_id ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_service AS c ON b.obj_id = c.service_id ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_service_order AS d ON b.order_id = d.order_id ' . ' WHERE ' . $strWhere;
$intCountGm = intval(db_factory::get_count($strSql1));
$strSql2 = "SELECT count(*) count FROM `" . TABLEPRE . "witkey_service_order` as a\n\t\t\tLEFT JOIN " . TABLEPRE . "witkey_order_detail as b on a.order_id = b.order_id\n\t\t\tLEFT JOIN " . TABLEPRE . "witkey_order as c on a.order_id = c.order_id where b.obj_type ='gy' and c.order_uid= " . $uid;
$intCountGzgy = intval(db_factory::get_count($strSql2));
$strSql3 = "SELECT count(*) count FROM `" . TABLEPRE . "witkey_service_order` as a \n\t\t    LEFT JOIN " . TABLEPRE . "witkey_order_detail as b ON a.order_id = b.order_id\t\t\n\t\t    LEFT JOIN " . TABLEPRE . "witkey_order as c ON a.order_id = c.order_id where c.seller_uid = " . $uid . " and b.obj_type ='gy' and c.order_status!= 'close' ";
$intCountWkgy = intval(db_factory::get_count($strSql3));
$identy_auth_list = keke_auth_fac_class::getAuthItemListByUid($uid);
$intWithdraw = db_factory::get_count('select count(withdraw_id) from ' . TABLEPRE . 'witkey_withdraw where uid = ' . $uid);
$intCharge = db_factory::get_count('select count(order_id) from ' . TABLEPRE . 'witkey_order_charge where uid = ' . $uid);
$intFinance = db_factory::get_count('select count(fina_id) from ' . TABLEPRE . 'witkey_finance where uid = ' . $uid);
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);