통합검색 디자인 적용
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2291 201d5d3c-b55e-5fd7-737f-ddc643e51545
|
|
@ -204,13 +204,8 @@
|
|||
if(function_exists('imagecreatetruecolor')) $thumb = @imagecreatetruecolor($resize_width, $resize_height);
|
||||
else $thumb = @imagecreate($resize_width, $resize_height);
|
||||
|
||||
if(!function_exists('imagecolortransparent')) {
|
||||
$white = @imagecolorallocate($thumb, 255,255,255);
|
||||
@imagefilledrectangle($thumb,0,0,$resize_width-1,$resize_height-1,$white);
|
||||
} else {
|
||||
$trans = @imagecolorat($thumb, 1,1);
|
||||
@imagecolortransparent($thumb, $trans);
|
||||
}
|
||||
$white = @imagecolorallocate($thumb, 255,255,255);
|
||||
@imagefilledrectangle($thumb,0,0,$resize_width-1,$resize_height-1,$white);
|
||||
|
||||
// 이미지 정보가 정해진 크기보다 크면 크기를 바꿈 (%를 구해서 처리)
|
||||
if($resize_width>0 && $width > $resize_width) $width_per = $resize_width / $width;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ function lnbToggle(id) {
|
|||
// IS
|
||||
function chkIsKind(key, value) {
|
||||
showHide('selectOrder');
|
||||
xGetElementById('search_kind'+key).checked = true;
|
||||
xInnerHtml('search_kind_label', value);
|
||||
xGetElementById('search_target'+key).checked = true;
|
||||
xInnerHtml('search_target_label', value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
</ul>
|
||||
<!--//GNB-->
|
||||
|
||||
<form action="{getUrl()}" method="get" id="isSearch">
|
||||
<form action="{getUrl()}" method="post" id="isSearch">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="IS" />
|
||||
|
||||
|
|
@ -63,10 +63,12 @@
|
|||
<input type="radio" name="search_target" value="title_content" id="search_target3" />
|
||||
<label for="search_target3" onclick="chkIsKind(3, '{$lang->title}+{$lang->content}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->title}+{$lang->content}</label>
|
||||
</li>
|
||||
<!--
|
||||
<li>
|
||||
<input type="radio" name="search_target" value="comment" id="search_target4" />
|
||||
<label for="search_target4" onclick="chkIsKind(4, '{$lang->comment}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->comment}</label>
|
||||
</li>
|
||||
-->
|
||||
</ul>
|
||||
<input name="is_keyword" type="text" class="inputText" title="keyword" />
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
// 텍스트 생성
|
||||
$result_text = sprintf(Context::getLang("is_result_text"), $is_keyword, $output->total_count);
|
||||
Context::set('result_text', $result_text);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,4 +11,20 @@
|
|||
$lang->about_target_module = "선택된 모듈만 검색 대상으로 정합니다. 권한설정에 대한 주의를 바랍니다";
|
||||
$lang->about_sample_code = "위 코드를 레이아웃등에 추가하시면 통합검색이 가능합니다";
|
||||
$lang->msg_no_keyword = "검색어를 입력해주세요";
|
||||
|
||||
$lang->is_result_text = "<strong>'%s'</strong> 에 대한 검색결과 <strong>%d</strong>건";
|
||||
|
||||
$lang->is_search_option = array(
|
||||
'title' => '제목',
|
||||
'content' => '내용',
|
||||
'title_content' => '제목+내용',
|
||||
//'comment' => '댓글',
|
||||
);
|
||||
|
||||
$lang->is_sort_option = array(
|
||||
'regdate' => '등록일',
|
||||
'comment_count' => '댓글수',
|
||||
'readed_count' => '조회수',
|
||||
'voted_count' => '추천수',
|
||||
);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,42 @@
|
|||
@charset "utf-8";
|
||||
#spot { border:8px solid #cecece; width:754px; height:64px; position:relative; margin:0 -15px 30px 0;}
|
||||
#spot h2 { position:absolute; top:24px; left:-8px;}
|
||||
#spot .search { text-align:center; position:relative; top:22px;}
|
||||
#spot .search * { vertical-align:middle;}
|
||||
#spot .search select { margin-top:1px;}
|
||||
#spot .search .inputText { border:1px solid #b6b6b6; padding:2px 3px; width:252px; height:14px;}
|
||||
#spot .search .submit {}
|
||||
|
||||
/* boardInformation */
|
||||
.boardInformation { clear:both; margin:1em 0 .5em 0; overflow:hidden; color:#666666;}
|
||||
.search strong { color:#ff6600;}
|
||||
.articleNum strong { font:bold 11px Tahoma; color:#ff6600;}
|
||||
#content { width:100%; overflow:hidden; position:relative;}
|
||||
#content h3.result { width:100%; height:23px; border-bottom:1px solid #cecece; _margin-top:-2px; margin-bottom:23px; margin-left:15px;}
|
||||
*:first-child+html #content h3.result { margin-top:-2px;}
|
||||
#content h3.result strong { color:#ff1a00;}
|
||||
#content .sortBy { position:absolute; top:0; right:0; overflow:hidden;}
|
||||
#content .sortBy li { list-style:none; float:left; padding:0 6px; position:relative; right:-6px; background:url(../images/white/vrType2.gif) no-repeat right 1px;}
|
||||
#content .sortBy li a { display:block; float:left; padding-left:9px; color:#3e3e3e; white-space:nowrap; background:url(../images/white/bulletSortBy.gif) no-repeat left 4px; text-decoration:none; }
|
||||
#content .sortBy li.on a { color:#ff1a00; background:url(../images/white/bulletSortByOn.gif) no-repeat left 4px;}
|
||||
|
||||
.no_result { text-align:center; padding:3em; border-top:1px solid #EEEEEE; border-bottom:1px solid #EEEEEE;}
|
||||
|
||||
/* search_result */
|
||||
.search_result { margin:1em 0 3em 0; list-style:none; clear:both;}
|
||||
.search_result .thumbnail { float:left; padding:10px; }
|
||||
.search_result .thumbnail img { width:100px; height:100px; border:1px solid #555555; }
|
||||
.search_result .title { margin-bottom:.5em; border-top:1px solid #EEEEEE; padding-top:.5em; }
|
||||
.search_result .title a { color:#4831F6; font-size:1.2em; font-weight:bold; text-decoration:none; }
|
||||
.search_result .title a:visited { color:#A59AFD;}
|
||||
.search_result .replyAndTrackback { font:.8em Tahoma; color:#ff6600; position:relative; top:-.2em;}
|
||||
.search_result .replyAndTrackback img.trackback { margin-bottom:-.1em;}
|
||||
.search_result .summary { margin-bottom:.5em; padding-left:2em; }
|
||||
.search_result .summary a { color:#888888; font-size:1em; text-decoration:none; }
|
||||
.search_result .summary a:visited { color:#BBBBBB;}
|
||||
.search_result .summary a:hover { color:#BBBBBB; text-decoration:none;}
|
||||
.search_result .author { padding-left:2em; float:left; color:#000000; font-size:.9em;}
|
||||
.search_result .date { padding-left:2em; float:left; color:#888888; font-size:.9em;}
|
||||
.searchResult { margin-left:15px;}
|
||||
.searchResult li { width:100%; margin-bottom:29px; clear:both; overflow:hidden;list-style:none; }
|
||||
.searchResult li .thumb { display:block; float:left; margin-right:14px;}
|
||||
.searchResult li dl {}
|
||||
.searchResult li dl dt { color:#d8d8d8; margin-bottom:1px;}
|
||||
.searchResult li dl dt a { color:#1a3588; text-decoration:underline;}
|
||||
.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 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;}
|
||||
.searchResult li address img { vertical-align:middle; margin-right:2px;}
|
||||
.searchResult li address .time { color:#818181; font:.8em Tahoma;}
|
||||
.searchResult li address .read { font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#818181;}
|
||||
.searchResult li address .readNum { color:#818181; font:.8em Tahoma;}
|
||||
.searchResult li address .recom { font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#818181;}
|
||||
.searchResult li address .recomNum { color:#fe6700; font:bold .8em Tahoma;}
|
||||
|
||||
/* pageNavigation */
|
||||
.pageNavigation { display:block; padding:1.5em 0 2em 0; text-align:center; font:bold .8em Tahoma; border-top:1px solid #EEEEEE; padding-top:.5em; }
|
||||
.pageNavigation { position:relative; display:block; text-align:center; font:bold .8em Tahoma; }
|
||||
.pageNavigation a { position:relative; margin-left:-4px; font:bold 1em Tahoma; color:#666666; display:inline-block; padding:1px 7px 2px 6px; border-left:1px solid #dedfde; border-right:1px solid #CCCCCC; text-decoration:none; line-height:1em; }
|
||||
.pageNavigation a:hover { background:#F7F7F7; text-decoration:none; }
|
||||
.pageNavigation a:visited { color:#999999;}
|
||||
|
|
|
|||
7
modules/integration_search/skins/default/images/white/a
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
svn remove bottomGotoFirst.gif
|
||||
svn remove bottomGotoLast.gif
|
||||
svn remove iconArticle.gif
|
||||
svn remove iconReply.gif
|
||||
svn remove iconTrackback.gif
|
||||
svn remove lineBoardListTh.gif
|
||||
svn remove line_1x10_e0e0e0.gif
|
||||
|
Before Width: | Height: | Size: 51 B |
|
Before Width: | Height: | Size: 51 B |
|
After Width: | Height: | Size: 46 B |
|
After Width: | Height: | Size: 46 B |
|
After Width: | Height: | Size: 928 B |
|
After Width: | Height: | Size: 756 B |
|
Before Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 106 B |
|
Before Width: | Height: | Size: 101 B |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 44 B |
|
After Width: | Height: | Size: 44 B |
|
|
@ -8,60 +8,67 @@
|
|||
<!--%import("css/white.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<div class="boardInformation">
|
||||
<div class="fl">
|
||||
<span class="search">{$lang->search_keyword} : <strong>{$is_keyword}</strong></span>
|
||||
</div>
|
||||
<div class="fr">
|
||||
<span class="articleNum">{$lang->document_count} : <strong>{number_format($total_count)}</strong></span>
|
||||
</div>
|
||||
<div id="spot">
|
||||
<h2><img src="./images/white/h2Search.gif" alt="검색하기" width="82" height="17" /></h2>
|
||||
<form action="{getUrl()}" method="post" class="search">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="IS" />
|
||||
<select name="search_target">
|
||||
<!--@foreach($lang->is_search_option as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($search_target == $key)-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<input name="is_keyword" type="text" class="inputText" value="{htmlspecialchars($is_keyword)}"/>
|
||||
<input type="image" src="./images/white/buttonSearch2.gif" alt="검색" class="submit" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!--@if(!$document_list)-->
|
||||
<!-- 게시물이 없으면 등록된 글이 없음을 표시 -->
|
||||
<div class="no_result">
|
||||
<!--@if(!$is_keyword)-->
|
||||
{$lang->msg_no_keyword}
|
||||
<!--@else-->
|
||||
{$lang->no_search_result}
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@else-->
|
||||
<!--@foreach($document_list as $no => $document)-->
|
||||
<ul class="search_result">
|
||||
<li class="title">
|
||||
<a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitleText()}</a>
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies"><img src="./images/{$module_info->colorset}/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
|
||||
<!--@end-->
|
||||
<!--@if($document->getTrackbackCount())-->
|
||||
<span class="replyAndTrackback" title="Trackbacks"><img src="./images/{$module_info->colorset}/iconTrackback.gif" alt="" width="12" height="13" class="trackback icon" /> <strong>{$document->getTrackbackCount()}</strong></span>
|
||||
<!--@end-->
|
||||
</li>
|
||||
|
||||
<!--@if($document->thumbnailExists(100))-->
|
||||
<li class="thumbnail"><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a></li>
|
||||
<div id="content">
|
||||
<!--@if(!$is_keyword)-->
|
||||
<h3 class="result">{$lang->msg_no_keyword}</h3>
|
||||
<!--@else-->
|
||||
<h3 class="result">{$lang->no_search_result}</h3>
|
||||
<!--@end-->
|
||||
|
||||
<li class="summary"><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getSummary(140)}</a></li>
|
||||
<li class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></li>
|
||||
<li class="date">{$document->getRegdate('Y-m-d H:i')}</li>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
<!--@end-->
|
||||
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
|
||||
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="./images/{$module_info->colorset}/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
<span class="current">{$page_no}</span>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'document_srl','')}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="./images/{$module_info->colorset}/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
|
||||
</div>
|
||||
<!--@else-->
|
||||
<div id="content">
|
||||
<h3 class="result">{$result_text}</h3>
|
||||
<!--
|
||||
<ul class="sortBy">
|
||||
<!--@foreach($lang->is_sort_option as $key => $val)-->
|
||||
<li class="on"><a href="#">{$val}</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
-->
|
||||
<ul class="searchResult">
|
||||
<!--@foreach($document_list as $no => $document)-->
|
||||
<li>
|
||||
<!--@if($document->thumbnailExists(100))-->
|
||||
<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>
|
||||
|
||||
<dd>{$document->getSummary(140)}</dd>
|
||||
</dl>
|
||||
<address><strong>{$document->getNickName()}</strong> | <span class="time">{$document->getRegdate("Y-m-d H:i")}</span> | <span class="read">{$lang->readed_count}</span> <span class="readNum">{$document->get('readed_count')}</span><!--@if($document->get('voted_count'))--> | <span class="recom">{$lang->voted_count}</span> <span class="recomNum">{$document->get('voted_count')}</span><!--@end--></address>
|
||||
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
<div class="pageNavigation">
|
||||
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="./images/{$module_info->colorset}/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
<span class="current">{$page_no}</span>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'document_srl','')}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="./images/{$module_info->colorset}/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--@end-->
|
||||
|
|
|
|||