Beispiel #1
0
    if ($arrOrderInfo['order_status'] == 'ok') {
        $boolIsHosting = true;
    } else {
        $boolIsHosting = false;
    }
    $arrSimpleTasks = db_factory::query("select * from " . TABLEPRE . "witkey_task where indus_pid=" . $arrTaskInfo['indus_pid'] . " and task_id!=" . $arrTaskInfo['task_id'] . " and task_status not in(0,1,10) order by start_time desc limit 10");
    $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, $arrTaskInfo['indus_pid']), 1, $intIndexCacheTime);
    if ($view == 'mark') {
        $s === null and $s = 100 or $s = intval($s);
        $arrSearchStatus = array();
        $arrSearchStatus['100'] = '所有的';
        $arrSearchStatus['1'] = '好评';
        $arrSearchStatus['2'] = '中评';
        $arrSearchStatus['3'] = '差评';
        $arrSearchStatus['101'] = '来自雇主';
        $arrSearchStatus['102'] = '来自威客';
    }
    if ($arrModelInfo['open_custom'] == '1') {
        $c_open = 1;
        $arrShowCustoms = CustomClass::getExtData($arrTaskInfo['task_id'], $arrModelInfo['model_id']);
        foreach ($arrShowCustoms as $k => $v) {
            if ($v['extdata']) {
                $arrShowCustoms[$k]['data'] = unserialize($v['extdata']);
            }
        }
    }
    require S_ROOT . "/task/" . $arrModelInfo['model_dir'] . "/control/index.php";
    $_SESSION['spread'] = 'index.php?do=task&id=' . intval($id);
    require keke_tpl_class::template("task/" . $arrModelInfo['model_code'] . "/tpl/" . $_K['template'] . "/index");
    die;
}
Beispiel #2
0
    }
    $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");
    die;
}
$_SESSION['spread'] = 'index.php?do=goods&id=' . intval($id);