当前位置: 首页>>代码示例>>PHP>>正文


PHP kekezu::get_cash_cove方法代码示例

本文整理汇总了PHP中kekezu::get_cash_cove方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::get_cash_cove方法的具体用法?PHP kekezu::get_cash_cove怎么用?PHP kekezu::get_cash_cove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


在下文中一共展示了kekezu::get_cash_cove方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

         $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" ';
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:index.php

示例2: get_task_coverage

 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'];
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:6,代码来源:match_task_class.php

示例3: showTaskCash

 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;
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:38,代码来源:keke_glob_class.php

示例4: json_encode

$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();
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:index.php

示例5: time

                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;
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_config.php

示例6: json_encode

$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=' . $objAgreement->_seller_username;
} else {
    $reportUrl .= '&objId=' . $arrAgreeInfo['task_id'] . '&objType=task&type=1&toUid=' . $arrAgreeInfo['buyer_uid'] . '&toUsername=' . $objAgreement->_buyer_username;
}
if ($arrTaskInfo['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) {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:index.php

示例7: switch

        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;
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_config.php

示例8: time

                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;
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_config.php


注:本文中的kekezu::get_cash_cove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。