블로그 이미지
progh2
지루한 것에서 벗어나 재미난 것 속으로 풍덩~☆

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

Recent Post

Recent Comment

Archive

2009. 4. 20. 15:08 기술문서창고/php
stdClass Object
(
[file_srl] =>
[upload_target_srl] =>
[sid] =>
[module_srl] =>
[member_srl] =>
[download_count] =>
[direct_download] =>
[source_filename] =>
[uploaded_filename] =>
[file_size] =>
[comment] =>
[isvalid] =>
[regdate] =>
[ipaddress] =>
[download_url] =>
)

다운로드 카운트를 올리지 않고 링크하려면(즉 셔플러 갤러리 등의 용도로 쓰려면)
uploaded_filename 을 사용하면 된다. 따라서 다음과 같이 쓰게 되겠다.

<!--@if($oDocument->hasUploadedFiles())-->
<dl class="attachedFile">
<dt>{$lang->uploaded_file} :</dt>
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<!--@foreach($uploaded_list as $key => $file)-->
<dd><a href="{getUrl('')}{$file->uploaded_filename}"
>{$file->source_filename}</a></dd>
<!--@end-->
</dl>
<!--@end-->
posted by progh2