<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<?=zm_topmenu("zm.basic")?>
<link href="<?=$search_skin_path?>/style.css" type="text/css" rel="stylesheet">
<div id="search_wrap">

<div id="search_board_section">
	<div class="search_result_info">
<?  if ($stx)  : ?>
		<b>검색된 게시판 리스트</b>
<?      if (!$board_count) : ?>
			<div class="no_result">검색된 자료가 없습니다.</div>
<?		endif;
	endif;
?>
	</div>

	<div>
<? 
	$k = 0;
	for ($idx = $table_index, $k = 0; $idx < count($search_table) && $k<$rows; $idx++) : ?>
		<div class="search_result_title"><a href='./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>'><?=$bo_subject[$idx]?></u></a></div>
<?      $comment_href = "";
        for ($i = 0; $i < count($list[$idx]) && $k<$rows; $i++, $k++) : ?>
			<div class="search_result_list">
<?			if ($list[$idx][$i][wr_is_comment]) :
				$comment_href = "#c_".$list[$idx][$i][wr_id]; ?>
<?			endif; ?>
				<div class="search_result_subject"><a href='<?=$list[$idx][$i][href]?><?=$comment_href?>'><?=$list[$idx][$i][subject]?></a> 
					<span class="new_window"><a href='<?=$list[$idx][$i][href]?><?=$comment_href?>' target=_blank>새창</a><span>
				</div>
				<div class="search_result_content"><?=$list[$idx][$i][content]?></div>
	            <div class="search_result_writer"><?=$list[$idx][$i][wr_datetime]?>&nbsp;&nbsp;&nbsp;<?=$list[$idx][$i][name]?></div>
			</div>
<?		endfor;
	endfor;
?>
	<div align=center><?=$write_pages?></div>
</div> <!-- end search_board_section -->

</div> <!-- end search_wrap -->
<?=zm_bottom("zm.basic")?>