Beispiel #1
0
         $arrNewIndusCt[$v['indus_pid']][] = $v;
     }
 }
 $arrIndusShop = $kekezu->get_classify_indus('shop', 'child');
 $arrIndusPs = $kekezu->_indus_goods_arr;
 if (is_array($arrIndusShop)) {
     $arrNewIndusCs = array();
     foreach ($arrIndusShop as $k => $v) {
         $arrNewIndusCs[$v['indus_pid']][] = $v;
     }
 }
 $arrBulletins = db_factory::query(sprintf("select art_id,art_title,listorder,is_recommend,pub_time from %switkey_article where cat_type='article' and art_cat_id=17 order by is_recommend desc, listorder asc, pub_time desc limit 0,5", TABLEPRE), 1, $intIndexCacheTime);
 $arrDynamics = kekezu::get_feed("feedtype='work_accept'", "feed_time desc", 5);
 $arrWithdraws = db_factory::query(sprintf("select * from %switkey_withdraw where withdraw_status=2 order by process_time desc limit 0,5", TABLEPRE), 1, $intIndexCacheTime);
 if ($task_open) {
     $arrCashCoverage = kekezu::get_cash_cove('', true);
     $final_task = kekezu::get_classify_indus();
     $arrRecommTaskLists = db_factory::query(sprintf("select task_id,task_title,task_cash,task_cash_coverage,username,work_num from %switkey_task where  task_status=2 order by start_time desc limit 21", TABLEPRE), 1, $intIndexCacheTime);
 }
 if ($shop_open) {
     $final_shop = kekezu::get_classify_indus('shop');
     $arrRecommGoodsLists = db_factory::query(sprintf("select service_id,title,price,unite_price,pic,username from %switkey_service where  service_status=2 order by  on_time desc limit 8", TABLEPRE), 1, $intIndexCacheTime);
 }
 $strSql = ' select a.case_id,a.obj_id,a.obj_type,a.case_img,a.case_title,a.case_price ';
 $task_open and $strSql .= ',b.work_num,b.model_id,b.username,b.uid ';
 $shop_open and $strSql .= ' ,c.sale_num,c.model_id,c.username,b.uid ';
 $strSql .= ' from ' . TABLEPRE . 'witkey_case a ';
 $task_open and $strSql .= ' left join ' . TABLEPRE . 'witkey_task b ON a.obj_id = b.task_id ';
 $shop_open or $strSql .= ' where a.obj_type="task" ';
 $shop_open and $strSql .= ' left join ' . TABLEPRE . 'witkey_service c on  a.obj_id= c.service_id ';
 $task_open or $strSql .= ' where a.obj_type="service" ';
 public function get_task_coverage()
 {
     $covers = kekezu::get_cash_cove('match');
     $cover_info = $covers[$this->_task_info['task_cash_coverage']];
     $this->_cash_cove = $cover_info['cove_desc'];
 }
Beispiel #3
0
 public static function showTaskCash($taskid)
 {
     $taskinfo = db_factory::get_one("SELECT * FROM `" . TABLEPRE . "witkey_task` WHERE task_id = " . intval($taskid));
     $data = array();
     if ($taskinfo) {
         switch ($taskinfo['model_id']) {
             case 4:
             case 5:
             case 12:
                 if ($taskinfo['model_id'] == '4') {
                     $arrCoverCash = kekezu::get_cash_cove('tender', true);
                 } elseif ($taskinfo['model_id'] == '5') {
                     $arrCoverCash = kekezu::get_cash_cove('dtender', true);
                 } else {
                     $arrCoverCash = kekezu::get_cash_cove('', true);
                 }
                 if ($taskinfo['budget']) {
                     $data['budget'] = $data['cash'] = $taskinfo['budget'];
                     $data['display'] = 'fixed';
                     $data['display_style'] = '<sub>¥</sub>' . $taskinfo['budget'];
                 }
                 if ($taskinfo['task_cash_coverage']) {
                     $data['task_cash_coverage'] = $taskinfo['budget'];
                     $data['start_cash'] = $arrCoverCash[$taskinfo['task_cash_coverage']]['start_cove'];
                     $data['end_cash'] = $arrCoverCash[$taskinfo['task_cash_coverage']]['end_cove'];
                     $data['cash'] = $arrCoverCash[$taskinfo['task_cash_coverage']]['start_cove'] - $arrCoverCash[$taskinfo['task_cash_coverage']]['end_cove'];
                     $data['display'] = 'range';
                     $data['display_style'] = '<sub>¥</sub>' . $arrCoverCash[$taskinfo['task_cash_coverage']]['start_cove'] . '- <sub>¥</sub>' . $arrCoverCash[$taskinfo['task_cash_coverage']]['end_cove'];
                 }
                 break;
             default:
                 $data['display_style'] = '<sub>¥</sub> ' . $taskinfo['task_cash'];
                 break;
         }
     }
     return $data['display_style'];
     return $data;
 }
Beispiel #4
0
$arrProcess_can = $objTask->process_can();
$arrWorkStatus = $objTask->get_work_status();
if (strtoupper(CHARSET) == 'GBK') {
    $arrWorkStatus = kekezu::gbktoutf($arrWorkStatus);
}
$jsonWorkStatus = json_encode($arrWorkStatus);
if ($arrTaskInfo['task_pic']) {
    $arrTaskPics = explode(',', $arrTaskInfo['task_pic']);
}
$arrPayitemShow = $objTask->getPayitemShow();
$intGuid = $arrTaskInfo['uid'];
$arrGinfo = $objTask->_g_userinfo;
$arrBidInfo = $objTask->work_exists();
$intWuid = intval($arrBidInfo['uid']);
$intWuid and $arrWinfo = kekezu::get_user_info($intWuid);
$arrCoverCash = kekezu::get_cash_cove('', true);
$objMatchTime = new match_time_class();
$objMatchTime->validtaskstatus();
if ($arrTaskInfo['task_status'] == 11 || $arrTaskInfo['task_status'] == 7) {
    $frontStatus = keke_report_class::getFrontStatus($arrTaskInfo['task_id']);
    if ($arrTaskInfo['task_status'] == 7) {
        $frontStatus = 6;
    }
}
if ($arrBidInfo['work_file']) {
    $arrFileLists = CommonClass::getFileArray('|', $arrBidInfo['work_file']);
}
switch ($view) {
    case "work":
        $s === null and $s = 1 or $s = intval($s);
        $arrSearchStatus = array();
Beispiel #5
0
                break;
            case "edit":
            case "add":
                if ($sbt_edit) {
                    $fds['on_time'] = time();
                    $fds['cove_desc'] = sprintf('%.2f', $fds['start_cove']) . $_lang['yuan'] . '-' . sprintf('%.2f', $fds['end_cove']) . $_lang['yuan'];
                    $fds['model_code'] = $model_info['model_code'];
                    if ($ac == 'edit') {
                        $cove_obj = keke_table_class::get_instance("witkey_task_cash_cove");
                        $res = $cove_obj->save($fds, $pk);
                    } else {
                        db_factory::execute("insert into " . TABLEPRE . "witkey_task_cash_cove(start_cove,end_cove,cove_desc,on_time,model_code) values('" . $fds[start_cove] . "','" . $fds[end_cove] . "','" . $fds[cove_desc] . "','" . $fds[on_time] . "','" . $fds[model_code] . "')");
                    }
                    kekezu::admin_show_msg($_lang['update_success'], $ac_url . '&op=control', 3, '', 'success');
                } else {
                    $cash_cove = kekezu::get_cash_cove();
                    $cove_info = $cash_cove[$rule_id];
                    $cash_cove = end($cash_cove);
                    $end = intval($cash_cove['end_cove']);
                    if ($cove_info) {
                        $start_cove = intval($cove_info['start_cove']);
                    } else {
                        $start_cove = $end;
                    }
                    require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/task_cove');
                    die;
                }
                break;
        }
        break;
}
Beispiel #6
0
$arrTaskInfo = $objTask->_task_info;
$objTask->plus_view_num();
$arrTaskFiles = $objTask->get_task_file();
$arrTimeDesc = $objTask->get_task_timedesc();
$arrProjectProgress = $objTask->getProjectProgressDesc();
$arrProcess_can = $objTask->process_can();
$arrPayitemShow = $objTask->getPayitemShow();
$arrWorkStatus = $objTask->get_work_status();
if (strtoupper(CHARSET) == 'GBK') {
    $arrWorkStatus = kekezu::gbktoutf($arrWorkStatus);
}
$jsonWorkStatus = json_encode($arrWorkStatus);
$arrPlanStatus = $objTask->get_plan_status();
$objDtenderTime = new dtender_time_class();
$objDtenderTime->validtaskstatus();
$arrCoverCash = kekezu::get_cash_cove('dtender', true);
$arrTaskWorkInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task_bid as a left join " . TABLEPRE . "witkey_space as b on a.uid=b.uid where bid_status=4 and task_id=" . intval($id));
if ($arrTaskWorkInfo) {
    $intDeals = TaskClass::getWikiDealbyUid($arrTaskWorkInfo['uid']);
}
$reportUrl = 'index.php?do=taskhandle&op=report&taskId=' . $arrTaskInfo['task_id'];
if ($gUid == $arrTaskInfo['uid']) {
    $reportUrl .= '&objId=' . $arrTaskInfo['work_id'] . '&objType=work&type=1&toUid=' . $arrAgreeInfo['seller_uid'] . '&toUsername='******'&objId=' . $arrAgreeInfo['task_id'] . '&objType=task&type=1&toUid=' . $arrAgreeInfo['buyer_uid'] . '&toUsername='******'task_pic']) {
    $arrTaskPics = explode(',', $arrTaskInfo['task_pic']);
}
$Exitworker = db_factory::get_one("select * from " . TABLEPRE . "witkey_task_bid where task_id = " . $arrTaskInfo['task_id'] . " and uid=" . $gUid);
switch ($view) {
Beispiel #7
0
        switch ($ac) {
            case "del":
                $res = db_factory::execute(sprintf(" delete from %switkey_task_cash_cove where cash_rule_id='%d'", TABLEPRE, $rule_id));
                kekezu::admin_show_msg($_lang['op_success'], "index.php?do={$do}&model_id={$model_id}&view=config&op=control", 3, '', 'success');
                break;
            case "edit":
            case "add":
                if ($sbt_edit) {
                    $fds['on_time'] = time();
                    $fds['cove_desc'] = sprintf('%.2f', $fds['start_cove']) . $_lang['y'] . '-' . sprintf('%.2f', $fds['end_cove']) . $_lang['y'];
                    $fds['model_code'] = $model_info['model_code'];
                    $cove_obj = keke_table_class::get_instance("witkey_task_cash_cove");
                    $res = $cove_obj->save($fds, $pk);
                    kekezu::admin_show_msg($_lang['op_success'], $ac_url . '&op=control', 3, '', 'success');
                } else {
                    $cash_cove = kekezu::get_cash_cove('match');
                    $cove_info = $cash_cove[$rule_id];
                    $cash_cove = end($cash_cove);
                    $end = intval($cash_cove['end_cove']);
                    if ($cove_info) {
                        $start_cove = intval($cove_info['start_cove']);
                    } else {
                        $start_cove = $end;
                    }
                    require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/task_cove');
                    die;
                }
                break;
        }
        break;
}
Beispiel #8
0
                break;
            case "edit":
            case "add":
                if ($sbt_edit) {
                    $fds['on_time'] = time();
                    $fds['cove_desc'] = sprintf('%.2f', $fds['start_cove']) . $_lang['y'] . '-' . sprintf('%.2f', $fds['end_cove']) . $_lang['y'];
                    $fds['model_code'] = $model_info['model_code'];
                    if ($ac == 'edit') {
                        $cove_obj = keke_table_class::get_instance("witkey_task_cash_cove");
                        $res = $cove_obj->save($fds, $pk);
                    } else {
                        db_factory::execute("insert into " . TABLEPRE . "witkey_task_cash_cove(start_cove,end_cove,cove_desc,on_time,model_code) values('" . $fds[start_cove] . "','" . $fds[end_cove] . "','" . $fds[cove_desc] . "','" . $fds[on_time] . "','" . $fds[model_code] . "')");
                    }
                    kekezu::admin_show_msg($_lang['op_success'], $ac_url . '&op=control', 3, '', 'success');
                } else {
                    $cash_cove = kekezu::get_cash_cove('dtender');
                    $cove_info = $cash_cove[$rule_id];
                    $cash_cove = end($cash_cove);
                    $end = intval($cash_cove['end_cove']);
                    if ($cove_info) {
                        $start_cove = intval($cove_info['start_cove']);
                    } else {
                        $start_cove = $end;
                    }
                    require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/task_cove');
                    die;
                }
                break;
        }
        break;
}