* @package execution * @version $Id: story.html.php 5117 2013-07-12 07:03:14Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> cookie->storyModuleParam);?> cookie->storyProductParam);?> cookie->storyBranchParam));?> id);?> project);?> hasProduct and !$execution->multiple and $config->URAndSR));?> execution->confirmUnlinkStory)?> lang->error->notempty, $this->lang->task->type))?> lang->error->notempty, $this->lang->task->type));?> lang->error->notempty, $this->lang->story->convertRelations));?> lang->story->float, $this->lang->story->convertRelations));?> lang->error->notempty, $this->lang->workingHour))?> execution->confirmStoryToTask);?> hasProduct && $execution->type != 'sprint'):?> name) or !empty($product->name) or !empty($branch)) ? false : true;?> tree->all;?> app->getViewType() == 'xhtml'):?>
project->getById($execution->project)->name . ' / ' . $this->execution->getByID($execution->id)->name) ?>
'>

story->noStory;?> createLink('execution', 'linkStory', "execution=$execution->id"), " " . $lang->execution->linkStory, '', "class='btn btn-info'"); } else { $storyModuleID = (int)$this->cookie->storyModuleParam; if(common::hasPriv('story', 'create')) { $createStoryLink = $this->createLink('story', 'create', "productID=$productID&branch=0&moduleID={$storyModuleID}&story=0&execution=$execution->id&bugID=0&planID=0&todoID=0&extra=&storyType=$storyType"); echo html::a($createStoryLink, " " . $lang->execution->createStory, '', "class='btn btn-info' data-app=$app->tab"); } elseif(common::hasPriv('story', 'batchCreate')) { $batchCreateLink = $this->createLink('story', 'batchCreate', "productID=$productID&branch=0&moduleID={$storyModuleID}&story=0&execution=$execution->id&plan=0&storyType=$storyType"); echo html::a($batchCreateLink, " " . $lang->story->batchCreate, '', "class='btn btn-info' data-app=$app->tab"); } } } ?>

moduleName . ucfirst($this->methodName); $useDatatable = (isset($config->datatable->$datatableId->mode) and $config->datatable->$datatableId->mode == 'datatable'); $vars = "executionID={$execution->id}&storyType=$storyType&orderBy=%s&type=$type¶m=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; if($useDatatable) include '../../common/view/datatable.html.php'; if(!$execution->hasProduct and !$execution->multiple) { $planKey = array_search('plan', $config->story->datatable->defaultField); if($planKey) unset($config->story->datatable->defaultField[$planKey]); } $setting = $this->datatable->getSetting('execution'); $widths = $this->datatable->setFixedFieldWidth($setting); $columns = 0; $checkObject = new stdclass(); $checkObject->execution = $execution->id; $totalEstimate = 0; $canBatchEdit = common::hasPriv('story', 'batchEdit'); $canBatchClose = (common::hasPriv('story', 'batchClose') and $storyType != 'requirement'); $canBatchChangeStage = (common::hasPriv('story', 'batchChangeStage') and $storyType != 'requirement'); $canBatchUnlink = common::hasPriv('execution', 'batchUnlinkStory'); $canBatchToTask = (common::hasPriv('story', 'batchToTask', $checkObject) and $storyType != 'requirement'); $canBatchAssignTo = common::hasPriv($storyType, 'batchAssignTo'); $canBatchAction = ($canBeChanged and ($canBatchEdit or $canBatchClose or $canBatchChangeStage or $canBatchUnlink or $canBatchToTask or $canBatchAssignTo)); ?> ';?> ' id='storyList' data-fixed-left-width='' data-fixed-right-width=''> $value) { if(!$execution->hasProduct and $value->id == 'branch') continue; if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'stage') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue; if($value->show) { $this->datatable->printHead($value, $orderBy, $vars, $canBatchAction); $columns ++; } } ?> $story):?> estimate; $story->from = $this->app->tab; ?> $value) { if(!$execution->hasProduct and $value->id == 'branch') continue; if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'stage') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue; $this->story->printCell($value, $story, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $execution, $showBranch); } ?> children)):?> children as $key => $child):?> from = $this->app->tab;?> children)) ? ' table-child-bottom' : '';?> $value) { if(!$execution->hasProduct and $value->id == 'branch') continue; if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'stage') continue; if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue; $this->story->printCell($value, $child, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $execution); }?>
';?>
product->checkedSummary);?> id);?>