* Modify the variables of the my module.

This commit is contained in:
tianshujie98
2020-12-17 11:23:44 +08:00
parent 58faa489a1
commit 03ff16a5d2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -154,7 +154,7 @@ class my extends control
$this->view->stories = $this->loadModel('story')->getUserStories($this->app->user->account, $type, $sort, $pager, 'requirement');
$this->view->users = $this->user->getPairs('noletter');
$this->view->type = $type;
$this->view->programs = $this->loadModel('program')->getPRJPairs();
$this->view->projects = $this->loadModel('program')->getPRJPairs();
$this->view->recTotal = $recTotal;
$this->view->recPerPage = $recPerPage;
$this->view->pageID = $pageID;
@@ -194,7 +194,7 @@ class my extends control
$this->view->position[] = $this->lang->my->story;
$this->view->stories = $this->loadModel('story')->getUserStories($this->app->user->account, $type, $sort, $pager, $storyType);
$this->view->users = $this->user->getPairs('noletter');
$this->view->programs = $this->loadModel('program')->getPRJPairs();
$this->view->projects = $this->loadModel('program')->getPRJPairs();
$this->view->type = $type;
$this->view->storyType = $storyType;
$this->view->recTotal = $recTotal;
@@ -246,7 +246,7 @@ class my extends control
$this->view->recPerPage = $recPerPage;
$this->view->pageID = $pageID;
$this->view->orderBy = $orderBy;
$this->view->programs = $this->loadModel('program')->getPRJPairs();
$this->view->projects = $this->loadModel('program')->getPRJPairs();
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->pager = $pager;
+1 -1
View File
@@ -72,7 +72,7 @@
<?php printf('%03d', $task->id);?>
</td>
<td class="c-pri"><span class='label-pri <?php echo 'label-pri-' . $task->pri;?>' title='<?php echo zget($lang->task->priList, $task->pri);?>'><?php echo zget($lang->task->priList, $task->pri);?></span></td>
<td class='c-project'><?php echo zget($programs, $task->PRJ, '');?></td>
<td class='c-project'><?php echo zget($projects, $task->PRJ, '');?></td>
<td class='c-project' title="<?php echo $task->projectName;?>"><?php echo html::a($this->createLink('project', 'task', "projectid=$task->project", '', '', $task->PRJ), $task->projectName);?></td>
<td class='c-name' title='<?php echo $task->name?>'>
<?php if(!empty($task->team)) echo '<span class="label label-badge label-light">' . $this->lang->task->multipleAB . '</span> ';?>