* @package story * @version $Id: view.html.php 4952 2013-07-02 01:14:58Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&branch=$story->branch&moduleID=$story->module");?>
story->legendSpec;?>
spec;?>
story->legendVerify;?>
verify;?>
fetch('file', 'printFiles', array('files' => $story->files, 'fieldset' => 'true'));?> createLink('action', 'comment', "objectType=story&objectID=$story->id");?>
story->legendBasicInfo;?>
type != 'normal'):?> $module) { $moduleTitle .= $module->name; if(!common::printLink('product', 'browse', "productID=$story->product&branch=$story->branch&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(); ?>
story->product;?> createLink('product', 'view', "productID=$story->product"), $product->name);?>
product->branch;?> product&branch=$story->branch", $branches[$story->branch]);?>
story->module;?>
story->plan;?> planTitle)) { foreach($story->planTitle as $planID => $planTitle) { if(!common::printLink('productplan', 'view', "planID=$planID", $planTitle)) echo $lanTitle; echo '
'; } } ?>
story->source;?> story->sourceList[$story->source];?>
story->sourceNote;?> sourceNote;?>
story->status;?> story->statusList[$story->status];?>
story->stage;?> stages and $branches) { foreach($story->stages as $branch => $stage) if(isset($branches[$branch])) echo $branches[$branch] . ' : ' . $lang->story->stageList[$stage] . '
'; } else { echo $lang->story->stageList[$story->stage]; } ?>
story->pri;?> pri;?>'>story->priList, $story->pri)?>
story->estimate;?> estimate;?>
story->keywords;?> keywords;?>
story->legendMailto;?> mailto); foreach($mailto as $account) {if(empty($account)) continue; echo "" . $users[trim($account)] . '  '; }?>
story->legendProjectAndTask;?>
    tasks as $projectTasks) { foreach($projectTasks as $task) { if(!isset($projects[$task->project])) continue; $projectName = $projects[$task->project]; echo "
  • " . html::a($this->createLink('task', 'view', "taskID=$task->id", '', true), "#$task->id $task->name", '', "class='iframe' data-width='80%'"); echo html::a($this->createLink('project', 'browse', "projectID=$task->project"), $projectName, '', "class='text-muted'") . '
  • '; } } if(count($story->tasks) == 0) { foreach($story->projects as $projectID => $project) { echo "
  • " . html::a($this->createLink('project', 'browse', "projectID=$projectID"), $project->name, '', "class='text-muted'") . '
  • '; } } ?>
story->legendRelated;?>
global->flow != 'onlyStory'):?>
story->legendFromBug;?>
    id $fromBug->title'>" . html::a($this->createLink('bug', 'view', "bugID=$fromBug->id"), "#$fromBug->id $fromBug->title") . '';?>
story->legendBugs;?>
    id $bug->title'>" . html::a($this->createLink('bug', 'view', "bugID=$bug->id"), "#$bug->id $bug->title") . ''; } ?>
story->legendCases;?>
    id $case->title'>" . html::a($this->createLink('testcase', 'view', "caseID=$case->id"), "#$case->id $case->title") . ''; } ?>
story->legendLinkStories;?>
    linkStories) ; foreach($linkStories as $linkStoryID) { if(isset($story->extraStories[$linkStoryID])) echo '
  • ' . html::a(inlink('view', "storyID=$linkStoryID"), "#$linkStoryID " . $story->extraStories[$linkStoryID]) . '
  • '; } ?>
story->legendChildStories;?>
    childStories) ; foreach($childStories as $childStoryID) { if(isset($story->extraStories[$childStoryID])) echo '
  • ' . html::a(inlink('view', "storyID=$childStoryID"), "#$childStoryID " . $story->extraStories[$childStoryID]) . '
  • '; } ?>
story->legendLifeTime;?>
story->openedBy;?> openedBy] . $lang->at . $story->openedDate;?>
story->assignedTo;?> assignedTo) echo $users[$story->assignedTo] . $lang->at . $story->assignedDate;?>
story->reviewedBy;?> reviewedBy); foreach($reviewedBy as $account) echo ' ' . $users[trim($account)]; ?>
story->reviewedDate;?> reviewedBy) echo $story->reviewedDate;?>
story->closedBy;?> closedBy) echo $users[$story->closedBy] . $lang->at . $story->closedDate;?>
story->closedReason;?> closedReason) echo $lang->story->reasonList[$story->closedReason]; if(isset($story->extraStories[$story->duplicateStory])) { echo html::a(inlink('view', "storyID=$story->duplicateStory"), '#' . $story->duplicateStory . ' ' . $story->extraStories[$story->duplicateStory]); } ?>
story->lastEditedBy;?> lastEditedBy) echo $users[$story->lastEditedBy] . $lang->at . $story->lastEditedDate;?>
deleted):?>
id", $story); common::printIcon('story', 'review', "storyID=$story->id", $story); if($story->status != 'closed' and !isonlybody()) { $misc = "class='btn' data-toggle='modal' data-type='iframe' data-width='95%'"; $link = $this->createLink('story', 'batchCreate', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", '', true); if(common::hasPriv('story', 'batchCreate')) echo html::a($link, " " . $lang->story->subdivide, '', $misc); } common::printIcon('story', 'close', "storyID=$story->id", $story, 'button', '', '', 'iframe', true); common::printIcon('story', 'activate', "storyID=$story->id", $story, 'button', '', '', 'iframe', true); if($this->config->global->flow != 'onlyStory' and !isonlybody() and (common::hasPriv('testcase', 'create') or common::hasPriv('testcase', 'batchCreate'))) { $this->app->loadLang('testcase'); echo "
"; echo ""; echo ""; echo "
"; } if($from == 'project') common::printIcon('task', 'create', "project=$param&storyID=$story->id&moduleID=$story->module", $story, 'button', 'smile'); echo "
"; common::printIcon('story', 'edit', "storyID=$story->id", $story); common::printIcon('story', 'create', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", $story, 'button', 'copy'); common::printIcon('story', 'delete', "storyID=$story->id", $story, 'button', '', 'hiddenwin'); ?>
story->create); js::set('productID', $story->product); js::set('branch', $story->branch); js::set('moduleID', $story->module); ?>