Exemple #1
0
     $task_obj->setIndus_id($slt_indus_id);
     $task_obj->setTask_cash($fields['task_cash']);
     $task_obj->setTask_desc($fields['task_desc']);
     $fields = kekezu::escape($fields);
     $task_obj->setSeo_title($fields['seo_title']);
     $task_obj->setSeo_keyword($fields['seo_keyword']);
     $task_obj->setSeo_desc($fields['seo_desc']);
     if ($_FILES['fle_task_pic']['name']) {
         $task_pic = keke_file_class::upload_file("fle_task_pic");
     } else {
         $task_pic = $task_pic_path;
     }
     $task_obj->setTask_pic($task_pic);
     $item_ids = array();
     $cash = $task_info['att_cash'] ? $task_info['att_cash'] : 0;
     $task_obj->setAtt_cash($cash);
     kekezu::admin_system_log($_lang['edit_task'] . ":{$fields['task_title']}");
     $res = $task_obj->edit_keke_witkey_task();
     $v_arr = array($_lang['admin_name'] => $myinfo_arr['username'], $_lang['time'] => date('Y-m-d H:i:s', time()), $_lang['model_name'] => $model_info['model_name'], $_lang['task_id'] => $task_info['task_id'], $_lang['task_title'] => $task_info['task_title']);
     keke_msg_class::notify_user($task_info['uid'], $task_info['username'], 'task_edit', $_lang['edit_task'], $v_arr, 1);
 } elseif ($sbt_act) {
     switch ($sbt_act) {
         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;