<? /* 게시판 검색 결과  */ ?>
<style>
.non_search		{ text-align:center; padding:100px; }
.search_board_list		{ clear:both; line-height:130%; margin-bottom:15px; }
.search_board_list .subject a	{ color:#1122CC; font-size:13px; text-decoration:none; padding-bottom:2px; border-bottom:1px solid #1122CC; } /* 제목 */
.search_board_list .subject a:visited	{ color:#808000; }
.search_board_list .summary		{ margin-top:4px; }	/* 내용 */
.search_board_list .search_info	{ margin-top:3px; }
.search_board_list .search_info span.board_name	a { color:#40B266; padding-right:10px; }
.search_board_list .search_info span.date		{ color:#C7C7C7; font-family:Arial; font-size:11px; margin-right:20px; }
.search_board_list .search_info span.name	{ color:#868686; }
.search_board_list .search_info span.comment	{ color:#B490BF; font-size:11px; font-family:Dotum; margin-right:20px; }
</style>

<? if($board_count <= 0) : ?>
	<div class="non_search"><span style="color:#808000;">"<?=$stx?>"</span>에 대한 검색 결과가 없습니다.</div>
<? else: //-- 검색 된 목록
		$k = 0;
        for ($idx = $table_index, $k = 0; $idx < count($search_table) && $k < $rows; $idx++)  :
			for ($i = 0; $i < count($list[$idx]) && $k < $rows; $i++, $k++) : ?>
				<div class="search_board_list">
					<div class="subject"><a href='<?=$list[$idx][$i][href]?>' target="_blank"><?=$list[$idx][$i][subject]?></a></div>
					<div class="summary"><?=$list[$idx][$i][content]?></div>
					<div class="search_info">
						<span class="board_name"><a href='./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>' target="_blank"><?=$bo_subject[$idx]?></a></span>
						<?=($list[$idx][$i][wr_is_comment])?"<span class='comment'>코멘트</span>":""?>
						<span class="date"><?=$list[$idx][$i][wr_datetime]?></span>
						<span class="name"><?=$list[$idx][$i][name]?></span>
					</div>
				</div>	<!-- end search_board_list -->
<?			endfor;
		endfor;
?>
<?		$write_pages	= str_replace("?", "?search_code=$search_code&", $write_pages); ?>
        <p align=center><?=$write_pages?>
<? endif; ?>

<div style="margin:20px 0 20px 0;"><div class="line"></div></div>