示例#1
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;
}
示例#2
0
 $arrCashCoves = TaskClass::getTaskCashCove();
 $arrBreadcrumbs = array(1 => array('url' => 'index.php?do=tasklist', 'name' => '任务大厅'), 2 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'], 'name' => $indus_p_arr[$arrTaskInfo['indus_pid']]['indus_name']), 3 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'] . '&i=' . $arrTaskInfo['indus_id'], 'name' => $indus_arr[$arrTaskInfo['indus_id']]['indus_name']));
 $arrWorkFlag = array(1 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '一等奖'), 2 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '二等奖'), 3 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '三等奖'), 4 => array('id' => 4, 'style' => 'fa-check-circle', 'name' => '中标'), 5 => array('id' => 5, 'style' => 'fa-dot-circle-o', 'name' => '入围'), 6 => array('id' => 6, 'style' => 'fa-check-circle', 'name' => '合格'), 7 => array('id' => 7, 'style' => 'fa-times-circle', 'name' => '淘汰'), 8 => array('id' => 8, 'style' => 'fa-times-circle', 'name' => '不可选标'), 9 => array('id' => 9, 'style' => 'fa-times-circle', 'name' => '放弃'));
 $strUrl = "index.php?do=task&id=" . $intId;
 $arrView = array('work', 'comment', 'mark');
 if (!in_array($view, $arrView)) {
     $view = 'work';
 }
 $intDeals = TaskClass::getWikiDealbyUid($arrTaskInfo['uid']);
 $arrWorkService = TaskClass::getWorkServers($intId, $arrTaskInfo['model_id']);
 $arrUserInfo = keke_user_class::get_user_info($arrTaskInfo['uid']);
 $strMarkQuerySQl = " SELECT COUNT(mark_id) FROM `" . TABLEPRE . "witkey_mark` ";
 $strMarkQuerySQl .= " WHERE origin_id = '" . $arrTaskInfo['task_id'] . "' ";
 $strMarkQuerySQl .= " AND mark_status > 0 AND model_code = '" . $arrModelInfo['model_dir'] . "'";
 $arrTaskInfo['mark_num'] = db_factory::get_count($strMarkQuerySQl);
 $arrPayitemLists = PayitemClass::getPayitemListDetail('task', $arrTaskInfo['task_id']);
 $arrPayitemListAlls = PayitemClass::getPayitemListForPub('task');
 $arrOrderInfo = array();
 $sql = "SELECT a.*,b.order_status FROM `" . TABLEPRE . "witkey_order_detail` a LEFT JOIN `" . TABLEPRE . "witkey_order` b ON a.order_id= b.order_id WHERE a.obj_type = 'task' and a.obj_id = " . $arrTaskInfo['task_id'];
 $arrOrderInfo = db_factory::get_one($sql);
 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'] = '所有的';
示例#3
0
<?php

defined('IN_KEKE') or exit('Access Denied');
if (TOOL == FALSE) {
    kekezu::show_msg('无权限', NULL, NULL, NULL, 'warning');
}
$arrObjInfo = PayitemClass::getObjInfo($type, $objId);
$arrPayitemLists = PayitemClass::getPayitemListDetail($type, $objId);
if ($arrObjInfo['task_status'] != 2) {
    unset($arrPayitemLists['tasktop']);
    unset($arrPayitemLists['workhide']);
}
if (isset($formhash) && kekezu::submitcheck($formhash)) {
    $sec_code = kekezu::escape(trim($zfpwd));
    $strMd5Pwd = keke_user_class::get_password($sec_code, $gUserInfo['rand_code']);
    $arrUserInfo = db_factory::get_one(sprintf("select * from %switkey_space where uid=%d and sec_code='%s'", TABLEPRE, intval($gUid), $strMd5Pwd));
    if (!$arrUserInfo) {
        $tip['errors']['zfpwd'] = '密码不正确!';
        kekezu::show_msg($tip, NULL, NULL, NULL, 'error');
    }
    $arrPayitems = array('urgent' => intval($txt_urgent), 'tasktop' => intval($txt_tasktop) && intval($text_tasktop) ? intval($text_tasktop) : 0, 'workhide' => intval($txt_workhide), 'seohide' => intval($txt_seohide));
    if ($arrPayitems['tasktop']) {
        $arrTaskInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task where task_id=" . intval($objId));
        $task_day = date('Y-m-d', $arrTaskInfo['sub_time']);
        $intTopInfo = PayitemClass::getPayitemRecord($type, $objId, 'tasktop');
        PayitemClass::validPayitemCount($arrPayitems, $task_day, $intTopInfo['end_time']);
    }
    $arrPayitems['goodstop'] = intval($text_goodstop);
    $arrPayitemBuy = array_filter($arrPayitems);
    if (is_array($arrPayitemBuy)) {
        $intOrderId = PayitemClass::creatPayitemOrder($arrPayitemBuy, $type, $objId);