diff --git a/trunk/module/my/control.php b/trunk/module/my/control.php index 76ecd16665..8f26bf7fbe 100644 --- a/trunk/module/my/control.php +++ b/trunk/module/my/control.php @@ -69,11 +69,15 @@ class my extends control $header['title'] = $this->lang->my->common . $this->lang->colon . $this->lang->my->task; $position[] = $this->lang->my->task; + /* 记录用户当前选择的列表。*/ + $this->app->session->set('taskList', $this->app->getURI(true)); + $this->app->session->set('storyList', $this->app->getURI(true)); + /* 赋值。*/ $this->assign('header', $header); $this->assign('position', $position); $this->assign('tabID', 'task'); - $this->assign('tasks', $this->user->getTasks($this->app->user->account)); + $this->assign('tasks', $this->task->getUserTasks($this->app->user->account)); $this->display(); } diff --git a/trunk/module/my/view/task.html.php b/trunk/module/my/view/task.html.php index 4e9f1ea18f..2a7696f3e8 100644 --- a/trunk/module/my/view/task.html.php +++ b/trunk/module/my/view/task.html.php @@ -26,12 +26,13 @@
| task->id;?> | task->name;?> | task->project;?> | -task->story;?> | task->pri;?> | task->estimate;?> | task->consumed;?> | +task->story;?> | task->status;?> | action;?> | |
|---|---|---|---|---|---|---|---|---|---|---|
| createLink('task', 'edit', "taskID=$task->id"), $task->name);?> | +createLink('task', 'view', "taskID=$task->id"), sprintf('%03d', $task->id));?> | +name;?> | createLink('project', 'browse', "projectid=$task->projectID"), $task->projectName);?> - | storyTitle;?> | pri;?> | estimate;?> | consumed;?> | +createLink('story', 'view', "storyID=$task->storyID"), $task->storyTitle);?> | task->statusList->{$task->status};?> | createLink('task', 'edit', "taskID=$task->id"), $lang->task->edit, '_blank');?> |
| todo->beginAndEnd;?> | -+ | + + todo->lblDisableDate;?> + | ||||||||
| @@ -89,6 +92,20 @@ function selectNext() endIndex = $("#begin ").get(0).selectedIndex + 2; $("#end ").get(0).selectedIndex = endIndex; } + +function switchDateFeature(switcher) +{ + if(switcher.checked) + { + $('#begin').attr('disabled','disabled'); + $('#end').attr('disabled','disabled'); + } + else + { + $('#begin').removeAttr('disabled'); + $('#end').removeAttr('disabled'); + } +} selectNext(); diff --git a/trunk/module/todo/view/edit.html.php b/trunk/module/todo/view/edit.html.php index 37f6da55cc..2209f48d15 100644 --- a/trunk/module/todo/view/edit.html.php +++ b/trunk/module/todo/view/edit.html.php @@ -44,6 +44,10 @@ | todo->pri;?> | todo->priList, $todo->pri, 'class=select-3');?> | ||||||||
| todo->status;?> | +todo->statusList, $todo->status, 'class=select-3');?> | +|||||||||
| todo->beginAndEnd;?> | begin, 'onchange=selectNext(); class=select-2') . html::select('end', $times, $todo->end, 'class=select-2');?> | |||||||||