* Adjust code.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
|
||||
@@ -46,12 +46,15 @@ class projectStory extends control
|
||||
$this->session->set('storyList', $this->app->getURI(true));
|
||||
if(empty($productID)) $productID = key($this->products);
|
||||
|
||||
$this->lang->menugroup->product = 'projectstory';
|
||||
$this->lang->projectstory->menu->requirement['subModule'] = 'product';
|
||||
$this->projectstory->setMenu($this->products, $productID, $branch);
|
||||
|
||||
$this->lang->story->title = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->title);
|
||||
$this->lang->story->createRequirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->createRequirement);
|
||||
$this->lang->story->createStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->createStory);
|
||||
$this->lang->story->noStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->noStory);
|
||||
|
||||
$this->lang->projectstory->menu->requirement['subModule'] = 'product';
|
||||
$this->projectstory->setMenu($this->products, $productID, $branch);
|
||||
echo $this->fetch('product', 'browse', "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID");
|
||||
}
|
||||
|
||||
@@ -71,12 +74,14 @@ class projectStory extends control
|
||||
*/
|
||||
public function story($productID = 0, $branch = '', $browseType = '', $param = 0, $storyType = 'story', $orderBy = '', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
$this->session->set('storyList', $this->app->getURI(true));
|
||||
$this->session->set('storyList',$this->app->getURI(true));
|
||||
if(empty($productID)) $productID = key($this->products);
|
||||
|
||||
$this->lang->menugroup->product = 'projectstory';
|
||||
$this->lang->projectstory->menu->story['subModule'] = 'product';
|
||||
$this->projectstory->setMenu($this->products, $productID, $branch);
|
||||
|
||||
$this->lang->story->title = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->title);
|
||||
$this->lang->story->createRequirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->createRequirement);
|
||||
$this->lang->story->createStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->createStory);
|
||||
$this->lang->story->noStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->noStory);
|
||||
@@ -98,11 +103,13 @@ class projectStory extends control
|
||||
public function track($productID = 0, $branch = 0, $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
if(empty($productID)) $productID = key($this->products);
|
||||
$this->lang->menugroup->story = 'projectstory';
|
||||
$this->lang->projectstory->menu->track['subModule'] = 'story';
|
||||
$this->projectstory->setMenu($this->products, $productID, $branch);
|
||||
|
||||
$this->lang->story->requirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->requirement);
|
||||
$this->lang->story->story = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->story);
|
||||
|
||||
echo $this->fetch('story', 'track', "productID=$productID&branch=$branch&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$lang->projectstory->common = '项目需求';
|
||||
$lang->projectstory->common = '项目列表';
|
||||
$lang->projectstory->index = '需求主页';
|
||||
$lang->projectstory->requirement = '用户需求';
|
||||
$lang->projectstory->story = '软件需求';
|
||||
$lang->projectstory->requirement = $lang->generalUR;
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = '跟踪矩阵';
|
||||
|
||||
Reference in New Issue
Block a user