mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +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');
|
||||
|
|
|
|||
|
|
@ -10,4 +10,5 @@
|
|||
$lang->sample_code = "샘플코드";
|
||||
$lang->about_target_module = "선택된 모듈만 검색 대상으로 정합니다. 권한설정에 대한 주의를 바랍니다";
|
||||
$lang->about_sample_code = "위 코드를 레이아웃등에 추가하시면 통합검색이 가능합니다";
|
||||
$lang->msg_no_keyword = "검색어를 입력해주세요";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,11 @@
|
|||
<!--@if(!$document_list)-->
|
||||
<!-- 게시물이 없으면 등록된 글이 없음을 표시 -->
|
||||
<div class="no_result">
|
||||
{$lang->no_documents}
|
||||
<!--@if(!$is_keyword)-->
|
||||
{$lang->msg_no_keyword}
|
||||
<!--@else-->
|
||||
{$lang->no_search_result}
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@else-->
|
||||
<!--@foreach($document_list as $no => $document)-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue