* @package product * @version $Id: browse.html.php 4909 2013-06-26 07:23:50Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> app->getModuleRoot() . '/common/view/header.html.php';?> app->getModuleRoot() . '/common/view/datatable.fix.html.php';?> 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('unfoldStories', $unfoldStories); js::set('unfoldAll', $lang->execution->treeLevel['all']); js::set('foldAll', $lang->execution->treeLevel['root']); js::set('storyType', $storyType); js::set('browseType', $browseType); 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('vision', $this->config->vision); ?> 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=&type=$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') $vars = "projectID=$projectID&productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; if($useDatatable) include $this->app->getModuleRoot() . '/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('story', 'batchEdit')); $canBatchClose = (common::hasPriv('story', 'batchClose') and strtolower($browseType) != 'closedbyme' and strtolower($browseType) != 'closedstory'); $canBatchReview = ($canBeChanged and common::hasPriv('story', 'batchReview')); $canBatchChangeStage = ($canBeChanged and common::hasPriv('story', 'batchChangeStage')); $canBatchChangeBranch = ($canBeChanged and common::hasPriv('story', 'batchChangeBranch')); $canBatchChangeModule = ($canBeChanged and common::hasPriv('story', 'batchChangeModule')); $canBatchChangePlan = ($canBeChanged and common::hasPriv('story', 'batchChangePlan')); $canBatchAssignTo = ($canBeChanged and common::hasPriv('story', 'batchAssignTo')); $canBatchUnlink = ($canBeChanged and $this->app->tab == 'project' and common::hasPriv('projectstory', 'batchUnlinkStory')); $canBatchImportToLib = ($canBeChanged and $this->app->tab == 'project' and isset($this->config->maxVersion) and common::hasPriv('story', 'batchImportToLib')); $canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchReview or $canBatchChangeStage or $canBatchChangeModule or $canBatchChangePlan or $canBatchAssignTo or $canBatchUnlink or $canBatchImportToLib); ?> ';?> ' 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')))) $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')))) $value->show = false; if($value->show) { $this->datatable->printHead($value, $orderBy, $vars, $canBatchAction); $columns ++; } } ?> from = $from;?> 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'); } }?> $value) $this->story->printCell($value, $story, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table');?> 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); } }?> $value) $this->story->printCell($value, $child, $users, $branchOption, $storyStages, $modulePairs, $storyTasks, $storyBugs, $storyCases, $useDatatable ? 'datatable' : 'table', $storyType);?>
';?>
app->getModuleRoot() . '/common/view/footer.html.php';?>