예제 #1
0
     if (is_array($result)) {
         break;
     }
     //Option 5 - Mark as non dynamic
 } elseif ($bulk_task_other == '5') {
     $upd_task->task_dynamic = 0;
     $result = $upd_task->store($AppUI);
     if (is_array($result)) {
         break;
     }
     //Option 6 - Add Task Reminder
 } elseif ($bulk_task_other == '6') {
     $upd_task->addReminder();
     //Option 7 - Mark as non dynamic
 } elseif ($bulk_task_other == '7') {
     $upd_task->clearReminder(true);
     //Option 8 - Mark as active
 } elseif ($bulk_task_other == '8') {
     $upd_task->task_status = '0';
     $result = $upd_task->store($AppUI);
     if (is_array($result)) {
         break;
     }
     // Option 9 - Mark as inactive
 } elseif ($bulk_task_other == '9') {
     $upd_task->task_status = '-1';
     $result = $upd_task->store($AppUI);
     if (is_array($result)) {
         break;
     }
     //Option 10 - Empty tasks description
예제 #2
0
$msg = '';
$obj = new CTask();
$obj->loadFull(null, $task_id);
if (!$obj) {
    $AppUI->setMsg('Task');
    $AppUI->setMsg('invalidID', UI_MSG_ERROR, true);
    $AppUI->redirect();
} else {
    $AppUI->savePlace();
}
if (!$obj->canAccess($AppUI->user_id)) {
    $AppUI->redirect('m=public&a=access_denied');
}
// Clear any reminders
if ($reminded) {
    $obj->clearReminder();
}
$tab = $AppUI->processIntState('TaskLogVwTab', $_GET, 'tab', 0);
//check permissions for the associated project
$canReadProject = canView('projects', $obj->task_project);
$users = $obj->getAssignedUsers($task_id);
$durnTypes = w2PgetSysVal('TaskDurationType');
$task_types = w2PgetSysVal('TaskType');
$billingCategory = w2PgetSysVal('BudgetCategory');
// setup the title block
$titleBlock = new w2p_Theme_TitleBlock('View Task', 'applet-48.png', $m, $m . '.' . $a);
$titleBlock->addCell();
if ($canEdit) {
    $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new task') . '">', '', '<form action="?m=tasks&a=addedit&task_project=' . $obj->task_project . '&task_parent=' . $task_id . '" method="post" accept-charset="utf-8">', '</form>');
    $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new file') . '">', '', '<form action="?m=files&a=addedit&project_id=' . $obj->task_project . '&file_task=' . $obj->task_id . '" method="post" accept-charset="utf-8">', '</form>');
}