From 5a2fe660633956fd326c5682db47f009977551cf Mon Sep 17 00:00:00 2001 From: BJRambo Date: Sun, 18 Dec 2022 00:58:46 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EB=AA=A9=EB=A1=9D=EC=97=90?= =?UTF-8?q?=20=EC=A0=95=EB=A0=AC=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/file/file.admin.model.php | 1 + modules/file/file.admin.view.php | 3 ++- modules/file/tpl/file_list.html | 27 ++++++++++++++++++++++++--- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/modules/file/file.admin.model.php b/modules/file/file.admin.model.php index 75220b261..dc538eb93 100644 --- a/modules/file/file.admin.model.php +++ b/modules/file/file.admin.model.php @@ -81,6 +81,7 @@ class fileAdminModel extends file // Set variables $args->sort_index = $obj->sort_index ?? null; + $args->order_type = $obj->order_type ?? 'desc'; $args->page = isset($obj->page) ? ($obj->page ? $obj->page : 1) : 1; $args->list_count = isset($obj->list_count) ? ($obj->list_count? $obj->list_count : 20) : 20; $args->page_count = isset($obj->page_count) ? ($obj->page_count? $obj->page_count : 10) : 10; diff --git a/modules/file/file.admin.view.php b/modules/file/file.admin.view.php index 9e5e59794..078dc3a41 100644 --- a/modules/file/file.admin.view.php +++ b/modules/file/file.admin.view.php @@ -27,7 +27,8 @@ class fileAdminView extends file $args->list_count = 30; // /< Number of documents that appear on a single page $args->page_count = 10; // /< Number of pages that appear in the page navigation - $args->sort_index = 'file_srl'; // /< Sorting values + $args->sort_index = Context::get('sort_index') ?? 'file_srl'; // /< Sorting values + $args->order_type = Context::get('order_type') ?? null; $args->isvalid = Context::get('isvalid'); $args->module_srl = Context::get('module_srl'); // Get a list diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index 417c5680b..551e1726e 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -23,10 +23,31 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; {$lang->file} - {$lang->file_size} - {$lang->cmd_download} + + + {$lang->file_size} + + + + + + + + {$lang->cmd_download} + + + + + {$lang->author} - {$lang->date} + + + {$lang->date} + + + + + {$lang->ipaddress} {$lang->status}