mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
썸네일 생성시 첨부파일 비교하는 부분의 코드를 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2134 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
87a2ba1fc0
commit
c6cc168dcb
4 changed files with 48 additions and 51 deletions
|
|
@ -18,26 +18,29 @@
|
|||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title_length = (int)$args->title_length;
|
||||
if(!$title_length) $title_length = 10;
|
||||
|
||||
$thumbnail_width = (int)$args->thumbnail_width;
|
||||
if(!$thumbnail_width) $thumbnail_width = 100;
|
||||
|
||||
$list_count = (int)$args->list_count;
|
||||
if(!$list_count) $list_count = 5;
|
||||
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
// 변수 정리
|
||||
$obj->mid = $mid_list;
|
||||
$obj->sort_index = $order_target;
|
||||
$obj->list_count = $list_count;
|
||||
|
||||
// mid에 해당하는 module_srl을 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_srl_list = $oModuleModel->getModuleSrlByMid($obj->mid);
|
||||
$module_srl_list = $oModuleModel->getModuleSrlByMid($mid_list);
|
||||
|
||||
$obj->module_srls = implode(",",$module_srl_list);
|
||||
$obj->direct_download = 'Y';
|
||||
$obj->isvalid = 'Y';
|
||||
|
||||
// 정해진 모듈에서 문서별 파일 목록을 구함
|
||||
$files_output = executeQuery("file.getOneFileInDocument", $obj);
|
||||
|
|
@ -45,8 +48,7 @@
|
|||
// 결과에서 문서 번호만을 따로 추출
|
||||
if($files_output->data) {
|
||||
foreach($files_output->data as $key => $val) {
|
||||
$document_srl = $val->upload_target_srl;
|
||||
$document_srl_list[] = $document_srl;
|
||||
$document_srl_list[] = $val->upload_target_srl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,14 +9,10 @@
|
|||
|
||||
{@ $count = 0; }
|
||||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<!--@if($count <= $widget_info->list_count && $oDocument->thumbnailExists($widget_info->thumbnail_width) )-->
|
||||
<!--@if($oDocument->thumbnailExists($widget_info->thumbnail_width) )-->
|
||||
|
||||
<li class="ni_item">
|
||||
<!--@if($oDocument->thumbnailExists($widget_info->thumbnail_width))-->
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_width}" border="0" alt="" class="thumbnail" /></a>
|
||||
<!--@else-->
|
||||
<img src="./images/blank.gif" border="0" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_width}" />
|
||||
<!--@end-->
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_width}" border="0" alt="" class="thumbnail" /></a>
|
||||
|
||||
<div><a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->title_length)}</a></div>
|
||||
<div class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue