Exemplo n.º 1
0
            case "freeze":
                $res = keke_task_config::task_freeze($task_id);
                break;
            case "unfreeze":
                $res = keke_task_config::task_unfreeze($task_id);
                break;
            case "pass":
                $res = keke_task_config::task_audit_pass(array($task_id));
                break;
            case "nopass":
                $res = keke_task_config::task_audit_nopass($task_id);
                break;
        }
    } else {
        $process_arr = keke_task_config::can_operate($task_info['task_status'], $task_info['is_top']);
        $file_list = db_factory::query(sprintf(" select * from %switkey_file where task_id='%d' and obj_type='task' ", TABLEPRE, $task_id));
        $status_arr = sreward_task_class::get_task_status();
        $payitem_list = keke_payitem_class::get_payitem_config('employer');
        $indus_arr = $kekezu->_indus_arr;
        $temp_arr = array();
        $indus_option_arr = $indus_arr;
        kekezu::get_tree($indus_option_arr, $temp_arr, "option", $task_info['indus_id']);
        $indus_option_arr = $temp_arr;
    }
    if ($res) {
        kekezu::admin_show_msg($_lang['task_operate_success'], "index.php?do=model&model_id={$model_id}&view=list", 3, '', 'success');
    }
} else {
    require S_ROOT . '/task/' . $model_info['model_dir'] . '/admin/task_misc.php';
}
require $kekezu->_tpl_obj->template('task/' . $model_info['model_dir'] . '/admin/tpl/task_edit_' . $op);
Exemplo n.º 2
0
    $arrSearch = db_factory::query("select * from " . TABLEPRE . "witkey_hotwords where words = '{$ky}'");
    if ($arrHwStatus[0]['v'] == 'open') {
        if ($arrUpdateStatus[0]['v'] == 'auto') {
            if (count($arrSearch)) {
                db_factory::updatetable(TABLEPRE . "witkey_hotwords", array('count' => $arrSearch[0]['count'] + 1, 'time' => time()), array('words' => $arrSearch[0]['words']));
            } else {
                db_factory::inserttable(TABLEPRE . "witkey_hotwords", array('words' => $ky, 'time' => time(), 'auto' => '1'));
            }
        } else {
            if (count($arrSearch)) {
                db_factory::updatetable(TABLEPRE . "witkey_hotwords", array('count' => $arrSearch[0]['count'] + 1, 'time' => time()), array('words' => $arrSearch[0]['words'], 'auto' => '0'));
            }
        }
    }
}
$arrPayitemConfig = keke_payitem_class::get_payitem_config(null, null, null, 'item_id');
$arrIndusAll = $kekezu->_indus_arr;
$arrModelLabel = array(0 => '未知', 1 => '单人', 2 => '多人', 3 => '计件', 4 => '招标', 5 => '订金', 6 => '文件', 7 => '服务');
$page and $intPage = intval($page);
$intPage = intval($intPage) ? $intPage : 1;
$intPagesize = intval($intPagesize) ? $intPagesize : 10;
$strSql = "select a.*,substring(payitem_time,instr(a.payitem_time,'top')+4+LENGTH('top'),10) as top_time\n\t\t   from " . TABLEPRE . "witkey_service as a where ";
$strWhere = " service_status=2 ";
if (intval($i)) {
    $strWhere .= " and a.indus_id = " . intval($i);
}
if (intval($pd)) {
    $strWhere .= " and a.indus_pid = " . intval($pd);
}
if (intval($m)) {
    $strWhere .= " and a.model_id = " . intval($m);
Exemplo n.º 3
0
 function get_payitem_str()
 {
     global $_K;
     $str = '';
     $item_config = keke_payitem_class::get_payitem_config(null, null, null, 'item_id');
     $item_arr = array_filter(explode(",", $this->_task_info['pay_item']));
     if (!empty($item_arr) && is_array($item_arr)) {
         foreach ($item_arr as $v) {
             $item_config[$v]['item_code'] and $str .= $item_config[$v]['item_code'] . ',';
         }
     }
     return $str;
 }