+ adjust the UI.

This commit is contained in:
wangchunsheng
2009-12-17 06:44:54 +00:00
parent cc46e605b5
commit 54d55e00f0
18 changed files with 561 additions and 446 deletions

View File

@@ -37,6 +37,9 @@ class task extends control
$project = $this->project->findById($projectID);
$browseProjectLink = $this->createLink('project', 'browse', "projectID=$projectID&tab=task");
/* 设置菜单。*/
$this->project->setMenu($this->project->getPairs(), $project->id);
if(!empty($_POST))
{
$taskID = $this->task->create($projectID);
@@ -68,6 +71,9 @@ class task extends control
$task = $this->task->findByID($taskID);
$project = $this->project->findByID($task->project);
/* 设置菜单。*/
$this->project->setMenu($this->project->getPairs(), $project->id);
if(!empty($_POST))
{
$this->loadModel('action');
@@ -85,7 +91,7 @@ class task extends control
$stories = $this->story->getProjectStoryPairs($project->id);
$members = $this->project->getTeamMemberPairs($project->id);
$header['title'] = $project->name . $this->lang->colon . $this->lang->task->edit;
$header['title'] = $this->lang->task->edit;
$position[] = html::a($this->createLink('project', 'browse', "project=$task->project"), $project->name);
$position[] = $this->lang->task->edit;
@@ -105,6 +111,9 @@ class task extends control
$task = $this->task->findByID($taskID);
$project = $this->project->findByID($task->project);
/* 设置菜单。*/
$this->project->setMenu($this->project->getPairs(), $project->id);
$header['title'] = $project->name . $this->lang->colon . $this->lang->task->view;
$position[] = html::a($this->createLink('project', 'browse', "projectID=$task->project"), $project->name);
$position[] = $this->lang->task->view;