<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// Choice Comment
$sql = " select * from $write_table where wr_parent = '$wr_id' and wr_is_comment = 1 and wr_5 like '%choice%' order by wr_good ";
$result = sql_query($sql);

?>
<section id="bo_vcc">
	<h2 class="cmt_choice_head"><?=$amina['cmt_choice_txt']?>된 댓글</h2>
	<?	for ($i=0; $row=sql_fetch_array($result); $i++) {
			$row = amina_cmt_list($row, $stx, $cmt_photo_size, 'choice');
	?>
    <article id="cc_<?=$row['wr_id']?>">
		<div class="view_cmt_choice">
		<h1><?=$row['wr_name']?>님의 댓글</h1>
		<? 
			$cmt_nophoto = '';
			if($row['mb_photo']) { 
				echo '<div class="cmt_photo">'.$row['mb_photo'].'</div>'."\n";
			} else {
				$cmt_nophoto = ' cmt_nophoto';
			}
		?>
			<div class="<?=$cmt_css_head?>cmt_content<?=$cmt_nophoto?>">
			<ul>
			<li class="left">	
				<span class="cmt_name"><?=$row['cool_txt']?> <?=xp_icon($row['mb_id'], $row['level'])?> <b><?=$row['name']?></b></span>
				<? if(G4_IS_MOBILE) { ?>
					<span class="cmt_mdate"><?=amina_date($row['wr_datetime'])?></span>
				<? } else { ?>
					<span class="cmt_date">
						<time datetime="<?=$row['datetime']?>"><?=$row['datetime']?></time>
						<?=$row['ip']?>
					</span>
				<? } ?>
			</li>
			<li class="right">
                <a href="#c_<?=$row['wr_id']?>"><img src='<?=$cmt_skin_url?>/img/co_btn_modify.gif' alt="이동" /></a>
				<?=$row['sns']?>
			</li>
			<li class="viewComment">
				<? if($row['mobile']) { ?><img src="<?=$cmt_skin_url?>/img/icon_mobile.gif" alt="" /><? } ?>
				<? if($row['blind_msg']) { ?>
					<p class="cmt_blind"><span class="icon_lock"><?=$row['blind_msg']?>
					<? if($is_admin) { ?>&nbsp; [<a href="<?=$row['unlock_link']?>">해제하기</a>]<? } ?>
					</span></p>
				<? } ?>
				<?=$row['content']?>
			</li>
			</ul>
			<? if($amina['cmt_good']) { ?>
				<a href="javascript:amina_good('<?=$row['good_link']?>','cmt_good<?=$row['wr_id']?>');"  title="<?=$amina['cmt_good_txt']?>"> <span class="btn_good right margin8" id="cmt_good<?=$row['wr_id']?>"><?=$row['wr_good']?></span></a>
				<? if($row['is_best']){?> <span class="tack_red_r right margin86">베플</span><?}?>
			<? } ?>
			<div class="clear"></div>
			</div>
		</div>
	</article>
	<? } //End for ?>
</section>