mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
관리페이지 첨부파일 목록에서 모듈/문서 정보를 표시하지 못하는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6307 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d524c052d4
commit
784b0e09c1
2 changed files with 18 additions and 2 deletions
|
|
@ -31,11 +31,24 @@
|
|||
$output = $oFileModel->getFileList($args);
|
||||
|
||||
// 목록의 loop를 돌면서 document를 구하기
|
||||
if($file_count) {
|
||||
if($output->total_count) {
|
||||
$document_srl_list = array();
|
||||
$module_srls= array();
|
||||
|
||||
foreach($output->data as $val) {
|
||||
if(!in_array($val->upload_target_srl, $document_srl_list)) $document_srl_list[] = $val->upload_target_srl;
|
||||
if(!in_array($val->module_srl, $module_srls)) $module_srls[] = $val->module_srl;
|
||||
}
|
||||
|
||||
if(count($module_srls)) {
|
||||
$module_args->module_srls = implode(',', $module_srls);
|
||||
$module_output = executeQueryArray('module.getModulesInfo', $module_args);
|
||||
|
||||
if($module_output->data) {
|
||||
foreach($module_output->data as $module) {
|
||||
$module_list[$module->module_srl] = $module;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// comment의 첨부파일이면 document_srl을 추가로 구함
|
||||
|
|
@ -59,6 +72,8 @@
|
|||
}
|
||||
|
||||
$args->document_srls = implode(',', $document_srl_list);
|
||||
$args->list_order = 'document_srl';
|
||||
$args->order_type = 'desc';
|
||||
$document_output = executeQueryArray('document.getDocuments', $args);
|
||||
|
||||
if($document_output->data) {
|
||||
|
|
@ -76,6 +91,7 @@
|
|||
Context::set('file_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
Context::set('document_list', $document_list);
|
||||
Context::set('module_list', $module_list);
|
||||
|
||||
// 템플릿 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
<td class="center number">{$no}</td>
|
||||
<td class="center"><input type="checkbox" name="cart" value="{$val->file_srl}" /></td>
|
||||
<td><a href="{$val->download_url}" class="red">{htmlspecialchars($val->source_filename)}</a></td>
|
||||
<td class="number center">{FileHandler::filesize($val->file_size)}</td>
|
||||
<td class="number tRight">{FileHandler::filesize($val->file_size)}</td>
|
||||
<!--@if($val->isvalid=='Y')-->
|
||||
<td class="blue center">{$lang->is_valid}</td>
|
||||
<!--@else-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue