* @package task * @version $Id: view.html.php 4808 2013-06-17 05:48:13Z zhujinyonging@gmail.com $ * @link http://www.zentao.net */ ?> session->taskList != false ? $app->session->taskList : $this->createLink('execution', 'browse', "executionID=$task->execution");?>
task->legendDesc;?>
desc) ? $task->desc : "
" . $lang->noData . '
';?>
type != 'ops'):?> fromBug != 0):?>
bug->steps;?>
bugSteps) ? $task->bugSteps : "
" . $lang->noData . '
';?>
story):?>
task->storySpec;?>
storySpec) || !empty($task->storyFiles)) ? $task->storySpec : "
" . $lang->noData . '
';?>
fetch('file', 'printFiles', array('files' => $task->storyFiles, 'fieldset' => 'false'));?>
task->storyVerify;?>
storyVerify) ? $task->storyVerify : "
" . $lang->noData . '
';?>
cases) and $task->cases):?>
task->case;?>
    cases as $caseID => $case) echo '
  • ' . html::a($this->createLink('testcase', 'view', "caseID=$caseID", '', true), "#$caseID " . $case, '', isonlybody() ? '' : "data-toggle='modal' data-type='iframe' data-width='90%'") . '
  • ';?>
children)):?>
lang->task->children;?>
children as $child):?>
task->id;?> task->lblPri;?> task->name;?> task->deadline;?> task->assignedTo;?> task->status;?> task->consumedAB . $lang->task->lblHour;?> task->leftAB . $lang->task->lblHour;?> actions;?>
id;?> pri . "'>"; echo $child->pri == '0' ? '' : zget($this->lang->task->priList, $child->pri, $child->pri); echo ""; ?> id", '', true); ?>">name;?> deadline;?> assignedTo);?> processStatus('task', $child);?> consumed;?> left;?> execution&taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'start', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'activate', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'close', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'finish', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'recordEstimate', "taskID=$child->id", $child, 'list', 'time', '', 'iframe showinonlybody', true); common::printIcon('task', 'edit', "taskID=$child->id", $child, 'list'); ?>
fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true', 'object' => $task)); $canBeChanged = common::canBeChanged('task', $task); if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=task&objectID=$task->id"); ?>
printExtendFields($task, 'div', "position=left&inForm=0&inCell=1");?>
";?> deleted):?> team) or empty($task->children)) common::printIcon('task', 'batchCreate', "execution=$task->execution&storyID=$task->story&moduleID=$task->module&taskID=$task->id", $task, 'button', 'split', '', '', '', "title='{$lang->task->children}'", $lang->task->children); common::printIcon('task', 'assignTo', "executionID=$task->execution&taskID=$task->id", $task, 'button', '', '', 'iframe', true, '', empty($task->team) ? $lang->task->assignTo : $lang->task->transfer); common::printIcon('task', 'start', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'restart', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'recordEstimate', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'pause', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'finish', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody text-success', true); common::printIcon('task', 'activate', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody text-success', true); common::printIcon('task', 'close', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('task', 'cancel', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true); echo $this->buildOperateMenu($task, 'view'); if(!isonlybody()) echo "
"; common::printIcon('task', 'edit', "taskID=$task->id", $task, 'button', '', '', 'showinonlybody'); common::printIcon('task', 'create', "projctID={$task->execution}&storyID=0&moduleID=0&taskID=$task->id", $task, 'button', 'copy'); common::printIcon('task', 'delete', "executionID=$task->execution&taskID=$task->id", $task, 'button', 'trash', 'hiddenwin'); if($task->parent > 0) echo html::a(helper::createLink('task', 'view', "taskID=$task->parent"), "", '', "class='btn btn-link' title='{$lang->task->parent}'"); ?>
name . '/'; echo $product->name . $lang->arrow; } foreach($modulePath as $key => $module) { $moduleTitle .= $module->name; if(!common::printLink('execution', 'task', "executionID=$task->execution&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; if(isset($modulePath[$key + 1])) { $moduleTitle .= '/'; echo $lang->arrow; } } } $printModule = ob_get_contents(); ob_end_clean(); ?> type != 'ops'):?> fromBug):?>
task->execution;?> execution", $execution->name)) echo $execution->name;?>
task->module;?>
task->story;?> storyTitle) echo $lang->noData; $class = isonlybody() ? 'showinonlybody' : 'iframe'; if($task->storyTitle and !common::printLink('story', 'view', "storyID=$task->story", $task->storyTitle, '', "class=$class data-width='80%'", true, true)) echo $task->storyTitle; if($task->needConfirm) { echo "({$lang->story->changed} "; echo html::a($this->createLink('task', 'confirmStoryChange', "taskID=$task->id"), $lang->confirm, 'hiddenwin', "class='btn btn-mini btn-info'"); echo ")"; } ?>
task->fromBug;?> createLink('bug', 'view', "bugID=$task->fromBug", '', true), "#$task->fromBug " . $fromBug->title, '', "class='iframe' data-width='80%'");?>
task->assignedTo;?> assignedTo ? $task->assignedToRealName . $lang->at . $task->assignedDate : $lang->noData;?>
task->type;?> task->typeList[$task->type];?>
task->status;?> processStatus('task', $task);?>
task->progress;?> progress . '%';?>
task->pri;?> pri;?>' title='task->priList, $task->pri);?>'>pri == '0' ? $lang->noData : zget($lang->task->priList, $task->pri)?>
task->mailto;?> mailto)); if(empty($mailto)) { echo $lang->noData; } else { foreach($mailto as $account) echo ' ' . zget($users, $account, $account); } ?>
task->openedBy;?> openedBy ? zget($users, $task->openedBy, $task->openedBy) . $lang->at . $task->openedDate : $lang->noData;?>
task->finishedBy;?> finishedBy) ? zget($users, $task->finishedBy, $task->finishedBy) . $lang->at . $task->finishedDate : $lang->noData;?>
task->canceledBy;?> canceledBy ? zget($users, $task->canceledBy, $task->canceledBy) . $lang->at . $task->canceledDate : $lang->noData;?>
task->closedBy;?> closedBy ? zget($users, $task->closedBy, $task->closedBy) . $lang->at . $task->closedDate : $lang->noData;?>
task->closedReason;?> closedReason ? $lang->task->reasonList[$task->closedReason] : $lang->noData;?>
task->lastEdited;?> lastEditedBy ? zget($users, $task->lastEditedBy, $task->lastEditedBy) . $lang->at . $task->lastEditedDate : $lang->noData;?>
team as $member):?>
task->team?> task->estimate?> task->consumed?> task->left?>
account)?> estimate?> consumed?> left?>
task->legendEffort;?>
task->estimate;?> estimate . $lang->workingHour;?>
task->consumed;?> consumed, 2) . $lang->workingHour;?>
task->left;?> left . $lang->workingHour;?>
task->estStarted;?> estStarted;?>
task->realStarted;?> realStarted) ? '' : $task->realStarted; ?>
task->deadline;?> deadline; if(isset($task->delay)) printf($lang->task->delayWarning, $task->delay); ?>
printExtendFields($task, 'div', "position=right&inForm=0&inCell=1");?>