묻고답하기
댓글을 달아야 다운로드 가능할 수 있게 하려는데요... 스케치북5
2013.10.01 23:56
<div cond="$oDocument->hasUploadedFiles() && (!$mi->show_files || $mi->show_files=='2')" id="files_{$oDocument->document_srl}" class="rd_fnt rd_file clear <show_files">!--@if(!$mi->show_files)--> hide<!--@end-->">
{@
$oDB = &DB::getInstance();
$query = $oDB->_query("select count(*) as count from xe_comments where document_srl='" . $oDocument->document_srl . "' and member_srl='" . $logged_info->member_srl . "'");
$result = $oDB->_fetch($query);
}
<strong class="ui_font"><font color="red">다운로드 </font><b>'{$oDocument->get('uploaded_count')}'</b></strong>
<ul cond="!$mi->files_type">
<li loop="$oDocument->getUploadedFiles()=>$key,$file"><a class="bubble" href="{getUrl('')}{$file->download_url}"|cond="$result->count>0" title="[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]">{$file->source_filename}</a><span class="comma">,</span></li>
</ul>
<include cond="$mi->files_type" target="_read_files.html" />
</div>
$query = $oDB->_query("select count(*) as count from xe_comments where document_srl='" . $oDocument->document_srl . "' and member_srl='" . $logged_info->member_srl . "'");
$result = $oDB->_fetch($query);
}