* 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
+10 -1
View File
@@ -23,6 +23,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../file/view/download.html.php';?>
<div class='yui-d0'>
<div id='titlebar'>
@@ -57,7 +58,15 @@
</fieldset>
<fieldset>
<legend><?php echo $lang->files;?></legend>
<div><?php foreach($task->files as $file) echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank');?></div>
<div>
<?php
foreach($task->files as $file)
{
echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank', "onclick='return downloadFile($file->id)'");
echo html::commonButton('x', "onclick=deleteFile($file->id)");
}
?>
</div>
</fieldset>
<?php include '../../common/view/action.html.php';?>
<div class='a-center f-16px strong'>