Ejemplo n.º 1
0
             kekezu::show_msg($resText, 'index.php?do=task&id=' . $taskId, 3, NULL, 'fail');
         }
     } else {
         require keke_tpl_class::template('task/delay');
     }
     die;
     break;
 case "workchoose":
     $workId = intval($workId);
     $workStatus = intval($status);
     $arrWorkInfo = $objTask->get_task_work($workId, '');
     if ($workId && $workStatus && $arrWorkInfo) {
         $resText = $objTask->work_choose($workId, $workStatus);
         if ($resText === true) {
             if ($workStatus == '4' && $arrTaskInfo['teamwork'] == '1') {
                 keke_glob_class::createProjectToKEE($arrTaskInfo['task_id'], $arrTaskInfo['task_title'], $workId);
             }
             kekezu::show_msg('操作成功', 'index.php?do=task&id=' . $taskId . '&view=work&page=' . intval($page), 3, NULL, 'ok');
         } else {
             kekezu::show_msg($resText, 'index.php?do=task&id=' . $taskId . '&view=work&page=' . intval($page), 3, NULL, 'fail');
         }
     }
     kekezu::show_msg('服务器繁忙,请重试...', 'index.php?do=task&id=' . $taskId, 3, NULL, 'fail');
     die;
     break;
 case 'workinfo':
     $workId = intval($workId);
     $arrWorkInfo = $objTask->get_task_work($workId);
     $arrWorkFiles = $objTask->get_work_file($arrWorkInfo['work_file']);
     $intFavorite = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and obj_id = %d and keep_type = "work"', TABLEPRE . 'witkey_favorite', intval($gUid), intval($arrWorkInfo['work_id'])));
     require keke_tpl_class::template('task/workinfo');