예제 #1
0
                    $arrNerLists[$k]['service'][$kk]['favorite'] = true;
                }
                unset($arrFollow);
            }
        }
        unset($arrService);
        $arrFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($v['uid'])));
        if ($arrFollow) {
            $arrNerLists[$k]['follow'] = true;
        }
        unset($arrFollow);
    }
}
if ($arrNerLists) {
    foreach ($arrNerLists as $k => $v) {
        $arrNerLists[$k]['pro_city'] = keke_shop_class::getUserAddress($v['uid'], 2, 1, 1, 0);
    }
}
$arrShopIndusC = $kekezu->_indus_c_arr;
$arrShopIndusP = $kekezu->_indus_p_arr;
if (is_array($arrShopIndusC)) {
    $arrNewShopIndusC = array();
    foreach ($arrShopIndusC as $k => $v) {
        $arrNewShopIndusC[$v['indus_pid']][] = $v;
    }
}
$arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name');
$arrSellerType = array('1' => '个人用户', '2' => '企业用户');
$data = array('地区' => $arrCityone['name'] . $arrCitytwo['name'] . $arrCitythree['name'], '店铺类型' => $arrSellerType[$t], '行业' => $arrIndusPInfo['indus_name'], '子行业' => $arrIndusInfo['indus_name']);
list($strPageTitle, $strPageKeyword, $strPageDescription) = keke_seo_class::getListSEO($pd, $i, $data, 'seller', true);
$floatCashLists = kekezu::get_table_data(' uid,sum(fina_cash) as threeCash', 'witkey_finance', "(fina_action='sale_service' or fina_action='task_bid') and DATE_SUB(CURDATE(),INTERVAL 90 day) <= date(from_unixtime(fina_time))", '', 'uid', '', 'uid');
예제 #2
0
파일: gy.php 프로젝트: huangbinzd/kppwGit
$reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid=';
if ($id == $gUid) {
    $reqPage = 'seller';
    $arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']);
    $arrOrderInfo['seller_uid'] != $id and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
    $arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0);
    $arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']);
    $arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1');
    $arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
    $reportUrl .= $arrBuyerInfo['uid'];
} else {
    $reqPage = 'buyer';
    $arrSellerInfo = kekezu::get_user_info($id);
    !$arrSellerInfo and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
    $arrOrderInfo['order_uid'] && $arrOrderInfo['order_uid'] != $uid and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
    $arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($id, 2, 1, 1, 0);
    $arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']);
    $arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']);
    $arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1');
    $reportUrl .= $arrSellerInfo['uid'];
}
switch ($arrOrderInfo['order_status']) {
    case 'seller_confirm':
        $step = 'step2';
        break;
    case 'wait':
        $step = 'step3';
        break;
    case 'ok':
        $step = 'step4';
        break;
예제 #3
0
    $view = 'goods';
}
if (!intval($id)) {
    $arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($gUid)));
    $arrSellerInfo['uid'] or kekezu::check_login();
} else {
    $arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($id)));
    $arrSellerInfo['uid'] or kekezu::show_msg(kekezu::lang("operate_notice"), "index.php?do=sellerlist", 2, "对不起,您访问的页面没找到!", "warning");
}
if ($arrSellerInfo['shop_backstyle']) {
    $arrBackgroudStyle = unserialize($arrSellerInfo['shop_backstyle']);
}
if ($arrSellerInfo['skill_ids']) {
    $arrSkill = explode(',', $arrSellerInfo['skill_ids']);
}
$strAddress = keke_shop_class::getUserAddress($id, 2, 1, 1, 0);
if ($arrSellerInfo['shop_name']) {
    $shopTitle = $arrSellerInfo['shop_name'];
} else {
    $shopTitle = $arrSellerInfo['username'] . "-的店铺";
}
if ($view == 'goods') {
    if ($arrSellerInfo['seo_title']) {
        $strPageTitle = $arrSellerInfo['seo_title'];
    } else {
        $strPageTitle = $shopTitle . $_K['html_title'];
    }
    if ($arrSellerInfo['seo_keyword']) {
        $strPageKeyword = $arrSellerInfo['seo_keyword'];
    } else {
        $strPageKeyword = $arrSellerInfo['skill_ids'];
예제 #4
0
$intUserType = $objAgreement->_user_role;
$step = $objAgreement->stage_access_check($intUserType);
$stage_nav = $objAgreement->agreement_stage_nav();
$strUrl = 'index.php?do=' . $do . '&agreeId=' . $agreeId . '&step=' . $step;
$reportUrl = 'index.php?do=taskhandle&op=report&taskId=' . $arrAgreeInfo['task_id'];
if ($gUid == $arrAgreeInfo['buyer_uid']) {
    $reportUrl .= '&objId=' . $arrAgreeInfo['work_id'] . '&objType=work&type=1&toUid=' . $arrAgreeInfo['seller_uid'] . '&toUsername='******'&objId=' . $arrAgreeInfo['task_id'] . '&objType=task&type=1&toUid=' . $arrAgreeInfo['buyer_uid'] . '&toUsername='******'seller_uid']);
$arrWitkeyInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['seller_uid'], 1, 1, 1, 0);
$arrWitkeyLevel = unserialize($arrWitkeyInfo['seller_level']);
$nearlyIncome = CommonClass::getNearlyIncomeForDays($arrWitkeyInfo['uid']);
$arrEmploymerInfo = kekezu::get_user_info($arrAgreeInfo['buyer_uid']);
$arrEmploymerInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['buyer_uid'], 1, 1, 1, 0);
$arrEmploymerLevel = unserialize($arrEmploymerInfo['buyer_level']);
$arrTaskInfo = db_factory::get_one(sprintf("select * from %switkey_task where task_id = '%d'", TABLEPRE, $arrAgreeInfo['task_id']));
$taskStatus = $arrTaskInfo['task_status'];
$config = unserialize($model_list[1]['config']);
$jf_end_time = date('Y-m-d', $config['agree_complete_time'] * 24 * 3600 + $arrAgreeInfo['on_time']);
$check_right_arr = db_factory::get_one(sprintf("select report_id,username,report_type from %switkey_report where report_status in(1,2) and origin_id ='%d'", TABLEPRE, $arrAgreeInfo['task_id']));
if ($taskStatus == 11 || $taskStatus == 13 || $taskStatus == 9) {
    header("location:index.php?do=task&id=" . $arrAgreeInfo['task_id']);
    die;
}
$arrAgreementProgress = array(1 => array('num' => 1, 'step' => 'step1', 'state' => '同意协议'), 2 => array('num' => 2, 'step' => 'step2', 'state' => '上传源文件'), 3 => array('num' => 3, 'step' => 'step3', 'state' => '确认源文件'), 4 => array('num' => 4, 'step' => 'step4', 'state' => '双方互评'));
switch ($step) {
    case "step1":
        if ($op === 'sign') {
            $resText = $objAgreement->agreement_stage_one($user_type);
예제 #5
0
                 $strUrl .= '&op=report';
                 require keke_tpl_class::template("tpl/default/ajax/report");
                 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']);
         }
     }
예제 #6
0
$reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid=';
if ($arrServiceInfo['uid'] == $gUid) {
    $reqPage = 'seller';
    $arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']);
    $arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0);
    $arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']);
    $arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1');
    $arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
    $reportUrl .= $arrBuyerInfo['uid'];
    if (!$orderId) {
        kekezu::show_msg('无法购买自己的商品', 'index.php?do=goodslist', 3, '操作提示', 'warning');
    }
} else {
    $reqPage = 'buyer';
    $arrSellerInfo = kekezu::get_user_info($arrServiceInfo['uid']);
    $arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($arrServiceInfo['uid'], 2, 1, 1, 0);
    $arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']);
    $arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']);
    $arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1');
    $arrServiceInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
    $reportUrl .= $arrSellerInfo['uid'];
}
if ($arrServiceInfo['model_id'] === '7') {
    switch ($arrOrderInfo['order_status']) {
        case 'seller_confirm':
            $step = 'step2';
            break;
        case 'wait':
            $step = 'step3';
            break;
        case 'ok':