통합검색결과에 해당 모듈의 이름이 나오도록 기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2298 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-10 05:44:28 +00:00
parent c18ea6f718
commit 6d4846c893
3 changed files with 4 additions and 2 deletions

View file

@ -42,9 +42,9 @@
// 대상 모듈을 정리함
$module_srl_list = array();
foreach($module_list as $mid => $val) {
$mid_list[$val->module_srl] = $val;
if(in_array($mid, $this->target_mid)) {
$module_srl_list[] = $val->module_srl;
$mid_list[$val->module_srl] = $val;
}
}
@ -95,6 +95,7 @@
// 텍스트 생성
$result_text = sprintf(Context::getLang("is_result_text"), $is_keyword, $output->total_count);
Context::set('result_text', $result_text);
Context::set('mid_list', $mid_list);
// 템플릿 파일 지정
$this->setTemplateFile('index');

View file

@ -25,6 +25,7 @@
.searchResult li dl dt .reply { color:#fe6700; font:.9em Tahoma;}
.searchResult li dl dt .reply em { color:#fe6700; font:bold 1em Tahoma;}
.searchResult li dl dt .category { color:#818181;}
.searchResult li dl dt .category a { color:#818181; border:none; text-decoration:none;}
.searchResult li dl dd { line-height:18px; color:#555555; margin-bottom:4px;}
.searchResult li address { color:#d8d8d8; font-size:11px;}
.searchResult li address strong { color:#3e3e3e; font-size:1em; font-weight:normal;}

View file

@ -48,7 +48,7 @@
<a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;"><img src="{$document->getThumbnail(100)}" alt="" width="100" height="100" class="thumb" /></a>
<!--@end-->
<dl>
<dt><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitleText()}</a> <!--@if($document->getCommentCount())--><span class="reply">[<em>{$document->getCommentCount()}</em>]</span> |<!--@end--> <span class="category">자유게시판</span></dt>
<dt><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitleText()}</a> <!--@if($document->getCommentCount())--><span class="reply">[<em>{$document->getCommentCount()}</em>]</span> <!--@end--> | <span class="category"><a href="{getUrl('','mid',$mid_list[$document->get('module_srl')]->mid)}" onclick="window.open(this.href);return false;">{$mid_list[$document->get('module_srl')]->browser_title}</a></span></dt>
<dd>{$document->getSummary(140)}</dd>
</dl>