From b8b7890da4e7f8c38d2352bae129bcbbf26c0e02 Mon Sep 17 00:00:00 2001 From: yfl <554665488@qq.com> Date: Mon, 22 Apr 2019 17:55:38 +0800 Subject: [PATCH] * task view.html --- module/task/view/view.html.php | 386 +++++++++++++++++++++++++++++++++ 1 file changed, 386 insertions(+) create mode 100644 module/task/view/view.html.php diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php new file mode 100644 index 0000000000..a733d9d4ce --- /dev/null +++ b/module/task/view/view.html.php @@ -0,0 +1,386 @@ + + * @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('project', 'browse', "projectID=$task->project");?> + + +
+
+
+
+
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, '', "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])) echo $users[$child->assignedTo];?>task->statusList, $child->status);?>consumed;?>left;?> + project&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', 'recordEstimate', "taskID=$child->id", $child, 'list', 'time', '', 'iframe showinonlybody', true); + common::printIcon('task', 'finish', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); + common::printIcon('task', 'close', "taskID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); + common::printIcon('task', 'edit', "taskID=$child->id", $child, 'list'); + ?> +
+
+
+ + fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true'));?> + createLink('action', 'comment', "objectType=task&objectID=$task->id");?> + +
+
+
+ +
";?> + deleted):?> + project&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); + + if(!isonlybody()) echo "
"; + if(empty($task->team) or empty($task->children)) common::printIcon('task', 'batchCreate', "project=$task->project&storyID=$task->story&moduleID=$task->module&taskID=$task->id", $task, 'button','plus','','','','',' '); + common::printIcon('task', 'edit', "taskID=$task->id", $task, 'button', '', '', 'showinonlybody'); + common::printIcon('task', 'create', "productID=0&storyID=0&moduleID=0&taskID=$task->id", $task, 'button', 'copy'); + common::printIcon('task', 'delete', "projectID=$task->project&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('project', 'task', "projectID=$task->project&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(); + ?> + + + + + + + fromBug):?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
task->project;?>project", $project->name)) echo $project->name;?>
task->module;?>
task->story;?> + storyTitle) echo $lang->noData; + if($task->storyTitle and !common::printLink('story', 'view', "storyID=$task->story", $task->storyTitle, '', "class='iframe' 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;?> task->statusList, $task->status);?>
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); + } + ?> +
+
+
+ getClientLang() == 'en' ? 'w-100px' : 'w-70px';?> + + + + + + + + + + + + + + + + + + + + + + + + + +
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;?> +
+ + getClientLang() == 'en' ? 'w-90px' : 'w-70px';?> + + + + + + + + + + + + + + + + + + + + + + + + +
task->estimate;?>estimate . $lang->workingHour;?>
task->consumed;?>consumed, 2) . $lang->workingHour;?>
task->left;?>left . $lang->workingHour;?>
task->estStarted;?>estStarted;?>
task->realStarted;?>realStarted; ?>
task->deadline;?> + deadline; + if(isset($task->delay)) printf($lang->task->delayWarning, $task->delay); + ?> +
+
+
+
+
+ + +
+ +
+ +