git-svn-id: http://xe-core.googlecode.com/svn/trunk@567 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-20 07:24:35 +00:00
parent e0b2e0006f
commit 5d68751c2c
2 changed files with 13 additions and 7 deletions

View file

@ -61,12 +61,13 @@
if($file_list && !is_array($file_list)) $file_list = array($file_list);
for($i=0;$i<count($file_list);$i++) {
$direct_download = $file_list[$i]->direct_download;
$file_list[$i]->download_url = $this->getDownloadUrl($file_list[$i]->file_srl, $file_list[$i]->sid);
$file_count = count($file_list);
for($i=0;$i<$file_count;$i++) {
$file = $file_list[$i];
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
$file_list[$i] = $file;
}
return $file_list;
}
@ -115,6 +116,11 @@
// 결과가 없거나 오류 발생시 그냥 return
if(!$output->toBool()||!count($output->data)) return $output;
foreach($output->data as $key => $file) {
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
$output->data[$key] = $file;
}
return $output;
}

View file

@ -30,11 +30,11 @@
<td><a href="#" onclick="window.open('./?mid={$val->mid}');return false">{$module_list[$val->module_srl]->browser_title}</a></td>
<td>{$val->source_filename}</td>
<td>{$val->file_size}</td>
<td>{$val->downloaded_count}</td>
<td>{$val->download_count}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td>{$val->ipaddress}</td>
<td><a href="#" onclick="window.open('./?document_srl={$val->document_srl}');return false">{$lang->cmd_move}</a></td>
<td><a href="./?mid={$val->mid}&amp;act=procDownloadFile&amp;file_srl={$val->file_srl}&amp;sid={$val->sid}&amp;document_srl={$val->document_srl}">{$lang->cmd_download}</a></td>
<td><a href="{$val->download_url}">{$lang->cmd_download}</a></td>
</tr>
<!--@end-->
</table>