mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3718 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2e9032a4ee
commit
f95aca127e
1 changed files with 15 additions and 13 deletions
|
|
@ -503,21 +503,23 @@
|
||||||
* @brief upload_target_srl을 키로 하는 첨부파일을 찾아서 java script 코드로 return
|
* @brief upload_target_srl을 키로 하는 첨부파일을 찾아서 java script 코드로 return
|
||||||
**/
|
**/
|
||||||
function printUploadedFileList($editor_sequence, $upload_target_srl) {
|
function printUploadedFileList($editor_sequence, $upload_target_srl) {
|
||||||
// file의 Model객체 생성
|
if($upload_target_srl) {
|
||||||
$oFileModel = &getModel('file');
|
// file의 Model객체 생성
|
||||||
|
$oFileModel = &getModel('file');
|
||||||
|
|
||||||
// 첨부파일 목록을 구함
|
// 첨부파일 목록을 구함
|
||||||
$tmp_file_list = $oFileModel->getFiles($upload_target_srl);
|
$tmp_file_list = $oFileModel->getFiles($upload_target_srl);
|
||||||
$file_count = count($tmp_file_list);
|
$file_count = count($tmp_file_list);
|
||||||
|
|
||||||
// 루프를 돌면서 $buff 변수에 java script 코드를 생성
|
// 루프를 돌면서 $buff 변수에 java script 코드를 생성
|
||||||
$buff = "";
|
$buff = "";
|
||||||
for($i=0;$i<$file_count;$i++) {
|
for($i=0;$i<$file_count;$i++) {
|
||||||
$file_info = $tmp_file_list[$i];
|
$file_info = $tmp_file_list[$i];
|
||||||
if(!$file_info->file_srl) continue;
|
if(!$file_info->file_srl) continue;
|
||||||
if($file_info->direct_download == 'Y') $file_info->uploaded_filename = sprintf('%s%s', Context::getRequestUri(), str_replace('./', '', $file_info->uploaded_filename));
|
if($file_info->direct_download == 'Y') $file_info->uploaded_filename = sprintf('%s%s', Context::getRequestUri(), str_replace('./', '', $file_info->uploaded_filename));
|
||||||
$file_list[] = $file_info;
|
$file_list[] = $file_info;
|
||||||
$attached_size += $file_info->file_size;
|
$attached_size += $file_info->file_size;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 업로드 상태 표시 작성
|
// 업로드 상태 표시 작성
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue