<?
	$menu_code = '14';
	require_once (APPPATH.'views/skin/admin/_content_comm.php');
?>


<form name="input_form" id="input_form" action="/admin/setting/setting_comment_reg_proc" method="post">
<div class="common_table news">
<table>
	<tr>
		<th>컨텐츠</th>
		<td class="tl">
			<input type="radio" name="setting_type" id="setting_type" class="input00" value="3" onclick="select_setting_type()" <? if($setting_type=='3') { echo 'checked'; }?>> 라이프
			<input type="radio" name="setting_type" id="setting_type" class="input00" value="1" onclick="select_setting_type()" <? if($setting_type=='1') { echo 'checked'; }?>> 뉴스기사
			<input type="radio" name="setting_type" id="setting_type" class="input00" value="2" onclick="select_setting_type()" <? if($setting_type=='2') { echo 'checked'; }?>> 칼럼
		</td>
	</tr>
</table>


<h2 class="subtitle">배댓설정안내</h2>
<table>
<tr>
	<th>좋아요수</th>
	<td class="tl">
		<input type="text" name="best_comment_like_count" id="best_comment_like_count" class="type03" value="<?=$best_comment_like_count?>"> 회 이상이 될 경우, 베댓으로 등록
	</td>
</tr>
<tr>
	<th>최대 배댓수</th>
	<td class="tl">
		<input type="text" name="max_best_comment_count" id="max_best_comment_count" class="type03" value="<?=$max_best_comment_count?>"> 개 까지만 베댓으로 노출이 됩니다.
	</td>
</tr>
</table>

<h2 class="subtitle">차단설정안내</h2>
<table>
<tr>
	<th>신고횟수</th>
	<td class="tl">
		<input type="text" name="block_call_count" id="block_call_count" class="type03" size="5" value="<?=$block_call_count?>"> 회 이상이 될 경우
		<input type="radio" name="block_call_type" id="block_call_type" class="input00" value="1" <? if($block_call_type=='1') { echo 'checked'; }?>> 블라인드처리(열람불가)
		<input type="radio" name="block_call_type" id="block_call_type" class="input00" value="2" <? if($block_call_type=='2') { echo 'checked'; }?>> 삭제처리

	</td>
	</tr>
	<tr>
	<th>블라인드문구</th>
	<td class="tl">
		<input type="text" name="block_blind_conent" id="block_blind_conent" class="input00" size="40" value="<?=$block_blind_conent?>">
	</td>
	</tr>
	<tr>
	<th>삭제문구</th>
	<td class="tl">
		<input type="text" name="block_del_conent" id="block_del_conent" class="input00" size="40" value="<?=$block_del_conent?>">
	</td>
	</tr>
	<tr>
	<th>본인삭제문구</th>
	<td class="tl">
		<input type="text" name="self_del_contnet" id="self_del_contnet" class="input00" size="40" value="<?=$self_del_contnet?>">
	</td>
</tr>
</table>
</div>

<div class="write_btn tc">
	<a href="javascript:setting_comment_reg_proc()">저장하기</a>
</div>

</form>



<script type="text/javascript">
// 컨텐츠 선택
function select_setting_type(){
    $("#input_form").attr("action", "/admin/setting/setting_comment_reg/1");
	$("#input_form").submit();
}

// 저장하기
function setting_comment_reg_proc(){
    $("#input_form").submit();

}



</script>