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 @@ + - + @@ -39,12 +40,13 @@ - + + + diff --git a/trunk/module/todo/lang/zh-cn.php b/trunk/module/todo/lang/zh-cn.php index 2ff1d6601a..3f546d4c9a 100644 --- a/trunk/module/todo/lang/zh-cn.php +++ b/trunk/module/todo/lang/zh-cn.php @@ -27,12 +27,14 @@ $lang->todo->create = "新增TODO"; $lang->todo->edit = "更新"; $lang->todo->markDone = "未完成"; $lang->todo->markWait = "已完成"; +$lang->todo->markDoing = "已完成"; $lang->todo->mark = "更改状态"; $lang->todo->delete = "删除"; $lang->todo->browse = "浏览TODO"; -$lang->todo->confirmDelete = "您确定要删除这个todo吗?"; -$lang->todo->successMarked = "成功切换状态!"; +$lang->todo->confirmDelete = "您确定要删除这个todo吗?"; +$lang->todo->successMarked = "成功切换状态!"; +$lang->todo->lblDisableDate = '暂时不设定时间'; $lang->todo->id = '编号'; $lang->todo->date = '日期'; diff --git a/trunk/module/todo/view/create.html.php b/trunk/module/todo/view/create.html.php index 54e382d1ca..547348547e 100644 --- a/trunk/module/todo/view/create.html.php +++ b/trunk/module/todo/view/create.html.php @@ -50,7 +50,10 @@ - + + + + +
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');?>