사용자: 검색결과 페이지
This commit is contained in:
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
|
||||
//if (!$stx) alert("검색어가 없습니다.");
|
||||
|
||||
$g4['title'] = '검색 : '.$stx;
|
||||
$g4['title'] = "검색어 "".$stx."" 검색결과";
|
||||
include_once('./_head.php');
|
||||
|
||||
if ($stx)
|
||||
@ -221,7 +221,7 @@ if ($stx)
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
}
|
||||
|
||||
$group_select = '<select id="gr_id" name="gr_id" class="select"><option value="">전체 분류';
|
||||
$group_select = '<select id="gr_id" name="gr_id" class="select" title="그룹선택"><option value="">전체 분류';
|
||||
$sql = " select gr_id, gr_subject from {$g4[group_table]} order by gr_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
13
css/def.css
13
css/def.css
@ -27,7 +27,7 @@ fieldset .fieldset_input {padding:3px;border:1px solid #ddd;background:#f0f0ed;v
|
||||
fieldset .fieldset_input:focus {padding:4px;border:0;background:#494946;color:#fff}
|
||||
fieldset select {padding:2px;border:1px solid #ddd;background:#f0f0ed;vertical-align:middle}
|
||||
fieldset p {margin:0}
|
||||
fieldset span {display:inline-block;margin-right:10px;padding-right:10px;border-right:1px solid #ddd;vertical-align:middle}
|
||||
fieldset span {color:#ff3061}
|
||||
fieldset button,
|
||||
.fieldset_submit {padding:0 15px;height:23px;border:0;background:#494946;color:#fff;font-size:0.8em;line-height:1.9em;vertical-align:middle;cursor:pointer}
|
||||
fieldset button:focus,
|
||||
@ -187,6 +187,17 @@ h6 {margin:0 0 20px}
|
||||
/* 현재접속자 */
|
||||
#current_connect_tbl .td_name {text-align:center}
|
||||
|
||||
/* 전체검색 */
|
||||
.search_result {}
|
||||
.search_result dt {font-weight:bold}
|
||||
.search_result dd {margin-bottom:30px}
|
||||
.search_result ul {padding:0}
|
||||
.search_result li {padding:10px 0;border-bottom:1px solid #ddd}
|
||||
.search_result li span {font-size:0.75em}
|
||||
.search_result li span span {font-size:1em}
|
||||
.search_result a span {font-size:1em}
|
||||
.search_result p {margin:5px 0;padding:0;font-size:0.75em}
|
||||
|
||||
/* pagination */
|
||||
.pg {margin-bottom:30px;font-size:0.875em;text-align:center}
|
||||
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle}
|
||||
|
||||
@ -55,7 +55,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<? if ($stx) { ?>
|
||||
<p>
|
||||
<? if ($board_count) { ?>
|
||||
검색된 게시판 리스트 <?=$board_count?>개의 게시판, <?=number_format($total_count)?>개의 게시글, <?=number_format($page)?>/<?=number_format($total_page)?> 페이지
|
||||
검색결과 <span><?=$board_count?></span>개의 게시판, <span><?=number_format($total_count)?></span>개의 게시글, <?=number_format($page)?>/<?=number_format($total_page)?> 페이지
|
||||
<? } else { ?>
|
||||
<? } ?>
|
||||
</p>
|
||||
@ -67,26 +67,34 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if ($stx) {
|
||||
if ($board_count) {
|
||||
?>
|
||||
<ul>
|
||||
<? if ($onetable) { ?>
|
||||
<li><a href="?<?=$search_query?>&gr_id=<?=$gr_id?>">전체게시판 검색</a>
|
||||
<? } ?>
|
||||
<?=$str_board_list;?>
|
||||
</ul>
|
||||
<dl class="search_result">
|
||||
<dt>검색어가 들어간 게시물을 포함하고 있는 게시판 목록</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<? if ($onetable) { ?>
|
||||
<li><a href="?<?=$search_query?>&gr_id=<?=$gr_id?>">전체게시판 검색</a>
|
||||
<? } ?>
|
||||
<?=$str_board_list;?>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?
|
||||
} else {
|
||||
?>
|
||||
<p>검색된 자료가 하나도 없습니다.</p>
|
||||
<? } } ?>
|
||||
|
||||
<hr>
|
||||
|
||||
<? if ($stx && $board_count) { ?><dl class="search_result"><? } ?>
|
||||
<?
|
||||
$k=0;
|
||||
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
|
||||
$comment_href = "";
|
||||
$comment_href = "";
|
||||
?>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>"><?=$bo_subject[$idx]?></a>에서의 검색결과
|
||||
<dt><a href="./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>"><?=$bo_subject[$idx]?></a>에서의 검색결과</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<?
|
||||
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
|
||||
if ($list[$idx][$i][wr_is_comment])
|
||||
@ -95,19 +103,18 @@ for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
|
||||
$comment_href = "#c_".$list[$idx][$i][wr_id];
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>"><?=$list[$idx][$i][subject]?></a>
|
||||
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a>
|
||||
<p><?=$list[$idx][$i][content]?></p>
|
||||
<?=$list[$idx][$i][wr_datetime]?>
|
||||
<?=$list[$idx][$i][name]?>
|
||||
<span><?=$list[$idx][$i][name]?></span>
|
||||
<span><?=$list[$idx][$i][wr_datetime]?></span>
|
||||
</li>
|
||||
</ul>
|
||||
<? } ?>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</dd>
|
||||
<? } ?>
|
||||
<? if ($stx && $board_count) { ?></dl><? } ?>
|
||||
|
||||
<div class="pg">
|
||||
<?=$write_pages?>
|
||||
|
||||
Reference in New Issue
Block a user