* @package product * @version $Id: browse.html.php 4909 2013-06-26 07:23:50Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> story->createCommon = $storyType == 'story' ? $lang->story->createStory : $lang->story->createRequirement; $unfoldStories = isset($config->product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array(); $unfoldStories = zget($unfoldStories, $productID, array()); $isProjectStory = $this->app->rawModule == 'projectstory'; $projectHasProduct = $isProjectStory && !empty($project->hasProduct); $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; js::set('browseType', $browseType); js::set('account', $this->app->user->account); js::set('reviewStory', $lang->product->reviewStory); js::set('productID', $productID); js::set('projectID', $projectID); js::set('branch', $branch); js::set('rawModule', $this->app->rawModule); js::set('productType', $this->app->tab == 'product' ? $product->type : ''); js::set('projectHasProduct', $projectHasProduct); js::set('URAndSR', $this->config->URAndSR); js::set('unfoldStories', $unfoldStories); js::set('unfoldAll', $lang->execution->treeLevel['all']); js::set('foldAll', $lang->execution->treeLevel['root']); js::set('storyType', $storyType); js::set('vision', $this->config->vision); ?> hasProduct) && empty($project->hasProduct) && $project->model != 'scrum'):?> app->getViewType() == 'xhtml'):?>
product->getByID($productID)->name ?>

story->noStory : $lang->story->noRequirement;?> createLink('story', 'create', "productID={$productID}&branch={$branch}&moduleID={$moduleID}&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&storyType=$storyType"), " " . $lang->story->create, '', "class='btn btn-info' data-app='$from'");?>

moduleName . ucfirst($this->methodName); $useDatatable = (isset($config->datatable->$datatableId->mode) and $config->datatable->$datatableId->mode == 'datatable'); $vars = "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; if($from == 'project' and !empty($projectID)) $vars = "projectID=$projectID&productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; if($useDatatable) include '../../common/view/datatable.html.php'; $setting = $this->datatable->getSetting('product'); $widths = $this->datatable->setFixedFieldWidth($setting); $columns = 0; $canBeChanged = common::canModify('product', $product); $canBatchEdit = ($canBeChanged and common::hasPriv($storyType, 'batchEdit')); $canBatchClose = (common::hasPriv($storyType, 'batchClose') and strtolower($browseType) != 'closedbyme' and strtolower($browseType) != 'closedstory'); $canBatchReview = ($canBeChanged and common::hasPriv($storyType, 'batchReview')); $canBatchChangeStage = ($canBeChanged and common::hasPriv('story', 'batchChangeStage') and $storyType == 'story'); $canBatchChangeBranch = ($canBeChanged and common::hasPriv($storyType, 'batchChangeBranch') and $this->session->currentProductType and $this->session->currentProductType != 'normal' and $productID); $canBatchChangeModule = ($canBeChanged and common::hasPriv($storyType, 'batchChangeModule')); $canBatchChangePlan = ($canBeChanged and common::hasPriv('story', 'batchChangePlan') and $storyType == 'story' and (!$isProjectStory or $projectHasProduct or ($isProjectStory and isset($project->model) and $project->model == 'scrum'))); $canBatchAssignTo = ($canBeChanged and common::hasPriv($storyType, 'batchAssignTo')); $canBatchUnlink = ($canBeChanged and $projectHasProduct and common::hasPriv('projectstory', 'batchUnlinkStory')); $canBatchImportToLib = ($canBeChanged and $isProjectStory and isset($this->config->maxVersion) and common::hasPriv('story', 'batchImportToLib') and helper::hasFeature('storylib')); $canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchReview or $canBatchChangeStage or $canBatchChangeModule or $canBatchChangePlan or $canBatchAssignTo or $canBatchUnlink or $canBatchImportToLib or $canBatchChangeBranch); ?> ';?> ' id='storyList' data-fixed-left-width='' data-fixed-right-width=''> app->getViewType() == 'xhtml'):?> $value) { if($value->id == 'title' || $value->id == 'id' || $value->id == 'pri' || $value->id == 'status') { if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage', 'taskCount', 'bugCount', 'caseCount')))) $value->show = false; if($value->show) { $this->datatable->printHead($value, $orderBy, $vars, $canBatchAction); $columns ++; } } }?> $value) { if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage', 'taskCount', 'bugCount', 'caseCount')))) $value->show = false; if($value->show) { $this->datatable->printHead($value, $orderBy, $vars, $canBatchAction); $columns ++; } } ?> children)) echo "data-children=" . count($story->children);?> data-cases='id, 0);?>'> from = $from;?> product]) ? $branchOptions[$story->product] : array(); } ?> app->getViewType() == 'xhtml'):?> $value) { if($value->id == 'title' || $value->id == 'id' || $value->id == 'pri' || $value->id == 'status') { $this->story->printCell($value, $story, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $project); } }?> $value) $this->story->printCell($value, $story, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $project);?> children)):?> children as $key => $child):?> from = $from;?> children)) ? ' table-child-bottom' : '';?> app->getViewType() == 'xhtml'):?> $value) { if($value->id == 'title' || $value->id == 'id' || $value->id == 'pri' || $value->id == 'status') { $this->story->printCell($value, $child, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $project); } }?> $value) $this->story->printCell($value, $child, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType, $project);?>
';?>