mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 19:59:54 +09:00
통합검색에서 검색어가 없으면 검색어를 입력하라는 메세지 출력하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1999 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fcb96a2c70
commit
ef178d7aac
3 changed files with 17 additions and 9 deletions
|
|
@ -64,14 +64,17 @@
|
|||
$args->sort_index = 'list_order';
|
||||
$args->order_type = 'asc';
|
||||
|
||||
// 대상 문서들을 가져옴
|
||||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('document_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
// 검색어가 없으면 오류 표시
|
||||
if($args->search_keyword) {
|
||||
// 대상 문서들을 가져옴
|
||||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('document_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
}
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('index');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue