* complete task #299:use default file name when download.
+ complete task #297:add file delete function to all files.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/colorize.html.php';?>
|
||||
<?php include '../../file/view/download.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<div id='titlebar' <?php if($case->deleted) echo "class='deleted'";?>>
|
||||
CASE #<?php echo $case->id . $lang->colon . $case->title;?>
|
||||
@@ -66,7 +67,15 @@
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->testcase->legendAttatch;?></legend>
|
||||
<div><?php foreach($case->files as $file) echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank');?></div>
|
||||
<div>
|
||||
<?php
|
||||
foreach($case->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';?>
|
||||
|
||||
Reference in New Issue
Block a user