+ add the feature of import 2 today.

This commit is contained in:
wangchunsheng
2009-11-06 08:16:52 +00:00
parent 63582e6c90
commit 28df2d4e89
6 changed files with 47 additions and 11 deletions
+9
View File
@@ -104,4 +104,13 @@ class todo extends control
$this->todo->mark($todoID, $status);
die(js::reload('parent'));
}
/* 批量导入今天。*/
public function import2Today()
{
$todos = $this->post->todos;
$today = $this->todo->today();
$this->dao->update(TABLE_TODO)->set('date')->eq($today)->where('id')->in($todos)->exec();
die(js::reload('parent'));
}
}