5.4 버전 내용 적용
This commit is contained in:
@ -5,6 +5,22 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($stx) {
|
||||
if ($board_count) {
|
||||
?>
|
||||
<section id="sch_res_ov">
|
||||
<h2>전체검색 결과</h2>
|
||||
<ul>
|
||||
<li>게시판<strong><?php echo $board_count ?>개</strong></li>
|
||||
<li>게시물<strong><?php echo number_format($total_count) ?>개</strong></li>
|
||||
<li><?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</li>
|
||||
</ul>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form name="fsearch" onsubmit="return fsearch_submit(this);" method="get">
|
||||
<input type="hidden" name="srows" value="<?php echo $srows ?>">
|
||||
<fieldset id="sch_res_detail">
|
||||
@ -55,36 +71,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<div class="switch_field chk_box">
|
||||
<input type="radio" value="or" <?php echo ($sop == "or") ? "checked" : ""; ?> id="sop_or" name="sop">
|
||||
<label for="sop_or">OR</label>
|
||||
<label for="sop_or"><span></span>OR</label>
|
||||
<input type="radio" value="and" <?php echo ($sop == "and") ? "checked" : ""; ?> id="sop_and" name="sop">
|
||||
<label for="sop_and">AND</label>
|
||||
<label for="sop_and"><span></span>AND</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div id="sch_result">
|
||||
|
||||
<?php
|
||||
if ($stx) {
|
||||
if ($board_count) {
|
||||
?>
|
||||
<section id="sch_res_ov">
|
||||
<h2><strong class="sch_word"><?php echo $stx ?></strong> 전체검색 결과</h2>
|
||||
<dl>
|
||||
<dt>게시판</dt>
|
||||
<dd><strong><?php echo $board_count ?>개</strong></dd>
|
||||
<dt>게시물</dt>
|
||||
<dd><strong><?php echo number_format($total_count) ?>개</strong></dd>
|
||||
</dl>
|
||||
<p><?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</p>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($stx) {
|
||||
if ($board_count) {
|
||||
@ -106,7 +102,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
$k=0;
|
||||
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
|
||||
?>
|
||||
<h2><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?> 게시판 내 결과</a></h2>
|
||||
<h2><a href="<?php echo get_pretty_url($search_table[$idx], '', $search_query); ?>"><?php echo $bo_subject[$idx] ?> 게시판 내 결과</a></h2>
|
||||
<ul>
|
||||
<?php
|
||||
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
|
||||
@ -124,7 +120,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
<li>
|
||||
<div class="sch_res_title">
|
||||
<a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>"><?php echo $comment_def ?><?php echo $list[$idx][$i]['subject'] ?></a>
|
||||
<a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>" target="_blank" class="sch_res_new"><i class="fa fa-share-square-o" aria-hidden="true"></i><span class="sound_only">새창</span></a>
|
||||
<!-- <a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>" target="_blank" class="sch_res_new"><i class="fa fa-share-square-o" aria-hidden="true"></i><span class="sound_only">새창</span></a> -->
|
||||
</div>
|
||||
<p><?php echo $list[$idx][$i]['content'] ?></p>
|
||||
<div class="sch_res_info">
|
||||
@ -134,14 +130,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="sch_more"><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&<?php echo $search_query ?>"><i class="fa fa-plus-circle" aria-hidden="true"></i> <strong><?php echo $bo_subject[$idx] ?></strong> 결과 더보기</a></div>
|
||||
|
||||
<hr>
|
||||
<div class="sch_more"><a href="<?php echo get_pretty_url($search_table[$idx], '', $search_query); ?>"><strong><?php echo $bo_subject[$idx] ?></strong> 결과 더보기</a></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($stx && $board_count) { ?></section><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php echo $write_pages ?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user