* complete task #299:use default file name when download.

+ complete task #297:add file delete function to all files.
This commit is contained in:
fujia
2010-08-19 09:02:39 +00:00
parent 8778545008
commit 8cbc0dcd4c
11 changed files with 123 additions and 22 deletions
+7
View File
@@ -303,6 +303,13 @@ class task extends control
}
}
/* 删除一个文件。*/
public function deleteFile($fileID)
{
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
die(js::reload('parent'));
}
/* 发送邮件。*/
private function sendmail($taskID, $actionID)
{