Beispiel #1
0
        break;
    case 'comment':
        $objComment = keke_comment_class::get_instance('task');
        $strUrl .= "&view=comment";
        $arrCommentDatas = $objComment->get_comment_list($id, $strUrl, $page);
        $arrCommentLists = $arrCommentDatas['data'];
        $strPage = $arrCommentDatas['pages'];
        $arrReplyLists = $objComment->get_reply_info($id);
        break;
    case "mark":
        $p['page'] = $page;
        $p['page_size'] = $pagesize;
        $p['url'] = $strUrl . "&view=" . $view . "&page=" . $p['page'] . "&pagesize=" . ($p['page_size'] .= "&s=" . $s);
        $p['anchor'] = '#detail';
        $w['model_code'] = $arrModelInfo['model_code'];
        $w['origin_id'] = $id;
        in_array($s, array(1, 2, 3)) and $w['mark_status'] = $s;
        $s == 101 and $w['mark_type'] = 2;
        $s == 102 and $w['mark_type'] = 1;
        $arrMarks = keke_user_mark_class::get_mark_info($w, $p, ' mark_id desc ', "mark_status>0");
        $arrMarkInfo = $arrMarks['mark_info'];
        if (is_array($arrMarkInfo)) {
            $arrMarkLists = array();
            foreach ($arrMarkInfo as $k => $v) {
                $arrMarkLists[$k] = $v;
                $arrAidInfos = keke_user_mark_class::get_user_aid($v['uid'], $v['mark_type'], $v['mark_status'], 1, null, $v['obj_id']);
                $arrMarkLists[$k]['aid'] = $arrAidInfos;
            }
        }
        $strPages = $arrMarks['pages'];
}
Beispiel #2
0
    $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;
    case 'working':
        if ($gUid == $id) {
            $step = 'step5';
Beispiel #3
0
<?php

if (isset($formhash) && kekezu::submitcheck($formhash)) {
    if (strtoupper(CHARSET) == 'GBK') {
        $tar_content = kekezu::utftogbk($tar_content);
    }
    $tar_content = kekezu::escape($tar_content);
    $aid = implode(",", array_keys($star));
    $aid_star = implode(",", array_values($star));
    $res = keke_user_mark_class::exec_mark($markId, $tar_content, $mark_status, $aid, $aid_star);
    if ($markType == 'gz') {
        $strJumpUrl = 'index.php?do=user&view=gz&op=mark';
    } elseif ($markType == 'wk') {
        $strJumpUrl = 'index.php?do=user&view=wk&op=mark';
    }
    if ($res === true) {
        kekezu::show_msg('操作成功', $strJumpUrl, 3, NULL, 'ok');
    } else {
        kekezu::show_msg($res, $strJumpUrl, 3, NULL, 'fail');
    }
} else {
    $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => $code, 'obj_id' => $objId, 'by_uid' => $uid, 'uid' => $to_uid));
    $markInfo = $arrMark['mark_info']['0'];
    $markInfo or kekezu::show_msg($_lang['operate_notice'], "", "", $_lang['mark_sya_busy_try_later'], "error");
    $aidList = keke_user_mark_class::get_mark_aid($roleType);
    $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId);
}
require keke_tpl_class::template("tpl/default/ajax/mark");
die;
Beispiel #4
0
        $arrSaleList = $arrSaleArr['sale_info'];
        $intCount = count($arrSaleList);
        $pages = $arrSaleArr['pages'];
        break;
    case "comment":
        $objComment = keke_comment_class::get_instance('service');
        $arrCommentDatas = $objComment->get_comment_list($intId, $strUrl, $intPage);
        $arrCommentLists = $arrCommentDatas['data'];
        $strPage = $arrCommentDatas['pages'];
        $arrReplyLists = $objComment->get_reply_info($id);
        break;
    case "mark":
        $arrMarkCount = keke_shop_class::get_mark_count($model_code, $sid);
        $p['url'] = $strUrl . "&view=mark&intPagesize=" . $p['page_size'] . "&intPage=" . $p['page'];
        $p['anchor'] = '#pageT';
        $w['model_code'] = $arrModelInfo['model_code'];
        $w['origin_id'] = $intId;
        $w['mark_status'] = $st;
        $w['mark_type'] = $ut;
        $arrMark = keke_user_mark_class::get_mark_info($w, $p, ' mark_id desc ', 'mark_status>0');
        $arrMarkInfo = $arrMark['mark_info'];
        if (is_array($arrMarkInfo)) {
            foreach ($arrMarkInfo as $k => $v) {
                $arrMarkInfo[$k]['aidinfo'] = keke_user_mark_class::get_user_aid($v['by_uid'], $v['mark_type'], $v['mark_status'], 2, $v['model_code'], $v['obj_id']);
            }
        }
        $pages = $arrMark['pages'];
        break;
    default:
        break;
}
Beispiel #5
0
    $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');
    die;
}
Beispiel #6
0
             }
             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";
 require keke_tpl_class::template("shop/" . $arrModelInfo['model_code'] . "/tpl/" . $_K['template'] . "/index");
Beispiel #7
0
    $arrSellerMark = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, 1);
    $arrFoundCount = kekezu::get_table_data(" sum(fina_cash) cash,sum(fina_credit) credit,count(fina_id) count,fina_action ", "witkey_finance", " uid=" . $arrSellerInfo['uid'] . " and fina_action in ('pub_task','task_bid','buy_service','sale_service','sale_gy') ", "", " fina_action ", "", "fina_action");
    $arrFoundCount['task'] = number_format($arrFoundCount['task_bid']['cash'], 2);
    $arrFoundCount['goods'] = number_format($arrFoundCount['sale_service']['cash'] + $arrFoundCount['sale_gy']['cash'], 2);
    foreach ($arrSellerMark as $k => $v) {
        $arrSellerMark[$k]['star'] = intval($v['avg']);
    }
} else {
    $arrBuyerLevel = unserialize($arrSellerInfo['buyer_level']);
    $arrBuyerLevel['next'] = intval($arrBuyerLevel['value'] + $arrBuyerLevel['level_up']);
    if ($arrBuyerLevel['next']) {
        $arrBuyerLevel['rate'] = intval($arrBuyerLevel['value'] / $arrBuyerLevel['next'] * 100);
    } else {
        $arrBuyerLevel['rate'] = 0;
    }
    $arrBuyerMark = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 1, null, 1);
    $arrFoundCount = kekezu::get_table_data(" sum(fina_cash) cash,sum(fina_credit) credit,count(fina_id) count,fina_action ", "witkey_finance", " uid=" . $arrSellerInfo['uid'] . " and fina_action in ('pub_task','task_bid','buy_service','sale_service','buy_gy') ", "", " fina_action ", "", "fina_action");
    $arrFoundCount['task'] = number_format($arrFoundCount['pub_task']['cash'], 2);
    $arrFoundCount['goods'] = number_format($arrFoundCount['buy_service']['cash'] + $arrFoundCount['buy_gy']['cash'], 2);
    foreach ($arrBuyerMark as $k => $v) {
        $arrBuyerMark[$k]['star'] = intval($v['avg']);
    }
}
$objTaskT = keke_table_class::get_instance('witkey_mark');
$strWhere .= '  uid=' . intval($arrSellerInfo['uid']) . ' and mark_status > 0  and mark_type = ' . intval($type);
$page and $intPage = intval($page);
$intPage = intval($intPage) ? $intPage : 1;
$intPagesize = intval($intPagesize) ? $intPagesize : 15;
$strWhere .= "  order by mark_time desc";
$arrDatas = $objTaskT->get_grid($strWhere, $strUrl, $intPage, $intPagesize, null, null, null);
$arrMarkLists = $arrDatas['data'];
Beispiel #8
0
 public function em_mark()
 {
     global $_lang;
     $aid = keke_user_mark_class::get_user_aid($this->_guid, 1, null, '1');
     $str = '';
     foreach ($aid as $k => $v) {
         $str .= '<p><span>' . $v['aid_name'];
         $str .= '<em class="cc00">' . $v['avg'] . $_lang['fen'] . '</em></span>';
         $str .= keke_user_mark_class::gen_star2($v['avg']);
         $str .= '</p></span>';
     }
     return $str;
 }