diff --git a/bbs/faq.php b/bbs/faq.php index d3fe9406e..affa51c97 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -64,11 +64,9 @@ if(is_file($skin_file)) { $faq_list = array(); $stx = trim($stx); - $sql_search = ''; if($stx) { $sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) "; - $category_stx = '&stx='.$stx; } if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) @@ -92,8 +90,12 @@ if(is_file($skin_file)) { order by fa_order , fa_id limit $from_record, $page_rows "; $result = sql_query($sql); - while ($row=sql_fetch_array($result)){ + for ($i=0;$row=sql_fetch_array($result);$i++){ $faq_list[] = $row; + if($stx) { + $faq_list[$i]['fa_subject'] = search_font($stx, $faq_list[$i]['fa_subject']); + $faq_list[$i]['fa_content'] = search_font($stx, $faq_list[$i]['fa_content']); + } } include_once($skin_file); } else { diff --git a/mobile/skin/faq/basic/list.skin.php b/mobile/skin/faq/basic/list.skin.php index 931fb8832..d823a9579 100644 --- a/mobile/skin/faq/basic/list.skin.php +++ b/mobile/skin/faq/basic/list.skin.php @@ -26,7 +26,7 @@ if( count($faq_master_list) ){ $category_msg = '열린 분류 '; } ?> -
  • >
  • +
  • >
  • @@ -62,7 +62,7 @@ if( count($faq_master_list) ){ } else { if($stx){ - echo '

    검색된 게시물이 없습니다.

    '; + echo '

    검색된 게시물이 없습니다.

    '; } else { echo '
    등록된 FAQ가 없습니다.'; if($is_admin) diff --git a/skin/faq/basic/list.skin.php b/skin/faq/basic/list.skin.php index 56792c1be..bf26708de 100644 --- a/skin/faq/basic/list.skin.php +++ b/skin/faq/basic/list.skin.php @@ -32,7 +32,7 @@ if( count($faq_master_list) ){ $category_msg = '열린 분류 '; } ?> -
  • >
  • +
  • >
  • @@ -68,7 +68,7 @@ if( count($faq_master_list) ){ } else { if($stx){ - echo '

    검색된 게시물이 없습니다.

    '; + echo '

    검색된 게시물이 없습니다.

    '; } else { echo '
    등록된 FAQ가 없습니다.'; if($is_admin)