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

<form id="amina_setup" name="fboardform" method="post" action="<?php echo AMINA_URL; ?>/admin.update.php" enctype="multipart/form-data">
<input type="hidden" name="opt" value="<?php echo $opt; ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
<input type="hidden" name="loc" value="func">

<table border=0 class="admin_head">
<tr>
<th><h2 class="sub_title left">▶ 쓰기 기능</h2></th>
<td><?php echo $amina_btn; ?></td>
</tr>
</table>

<table border=0 class="admin_tbl">
<colgroup>
	<col class="w20">
	<col class="w100">
</colgroup>
<tr>
<th>*</th>
<td><b>공지글</b></td>
<td>
	<p class="both"><label><input type=checkbox name=chk_notice value=1 onclick="amina_show('bo_notice');"> 공지글 순서변경하기</label></p>
	<textarea type="text" name="bo_notice" rows=4 cols=80 id="bo_notice" style="display:none;"><?php echo $board['bo_notice']; ?> </textarea>
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_type", $loc, $sca); ?></th>
<td><b>보드타입</b></td>
<td>
	<select name="bo_type">
		<option value="0">일반 게시판</option>
		<option value="1" <?php if($setting['bo_type'] == "1") echo "selected"; ?>>영카트/게시물 연동 게시판</option>
		<option value="2" <?php if($setting['bo_type'] == "2") echo "selected"; ?>>1:1 게시판 + 연동 게시판</option>
	</select>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_rss", $loc, $sca); ?></th>
<td><b>통합 RSS</b></td>
<td>
	<p class="both"><label><input type=checkbox name='auto_rss' value='1' <?php if($setting['auto_rss']) echo "checked"; ?>> 글등록시 자동으로 통합 RSS에 등록하기</label></p>
</td>
</tr>
<?php if(AMINA != 'g4s' && is_dir(G4_SNS_PATH)) { ?>
	<tr>
	<th><?php echo get_chk("chk_sns", $loc, $sca); ?></th>
	<td><b>동시등록</b></td>
	<td>
		<p class="bline"><label><input type=checkbox name='auto_sns' value='1' <?php if($setting['auto_sns']) echo "checked"; ?>> 댓글등록시 SNS(페이스북, 트위터, 미투데이) 동시등록하기</label></p>
		※ amina.skin.php 파일에서 API Key 설정된 SNS만 적용됩니다.
	</td>
	</tr>
<? } ?>
<?php if(AMINA != 'g4s' && is_dir(G4_SYNDI_PATH)) { ?>
	<tr>
	<th><?php echo get_chk("chk_syndi", $loc, $sca); ?></th>
	<td><b>신디케이션</b></td>
	<td>
		<label><input type=checkbox name='syndi' value='1' <?php if($setting['syndi']) echo "checked"; ?>> 신디케이션으로 글 내보기</label>
	</td>
	</tr>
<? } ?>
<tr>
<th><?php echo get_chk("chk_daum_view", $loc, $sca); ?></th>
<td><b>다음 View</b></td>
<td>
	<p class="both"><label><input type=checkbox name='daum_view' value='1' <?php if($setting['daum_view']) echo "checked"; ?>> 다음 view nid 값 등록하기</label></p>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_editor", $loc, $sca); ?></th>
<td><b>에디터</b></td>
<td>
	<select name="editor">
		<option value="0" >기본에디터</option>
		<option value="1" <?php if($setting['editor'] == "1") echo "selected"; ?>>스마트에디터</option>
		<option value="2" <?php if($setting['editor'] == "2") echo "selected"; ?>>다음에디터</option>
	</select> - 기본에디터 : G4 또는 G4S 기본설정 에디터
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_autosave", $loc, $sca); ?></th>
<td><b>임시저장</b></td>
<td>
	<p class="both"><label><input type=checkbox name='autosave' value='1' <?php if($setting['autosave']) echo "checked"; ?>> 작성글 임시저장기능 사용(회원만 가능)</label></p>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_uploader", $loc, $sca); ?></th>
<td><b>업로드</b></td>
<td>
	<p class="both"><label><input type=checkbox name='uploader' value='1' <?php if($setting['uploader']) echo "checked"; ?>> SWF Uploader 사용 - 멀티업로드, 회원만사용 가능, 모바일 사용불가</label></p>
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_video", $loc, $sca); ?></th>
<td><b>동영상</b></td>
<td>
	<p class="both"><label><input type=checkbox name='video' value='1' <?php if($setting['video']) echo "checked"; ?>> 유튜브, 비메오, TED, 다음TV, 네이트TV, 판도라TV, 태그스토리 동영상 직접첨부 사용</label></p>
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_map", $loc, $sca); ?></th>
<td><b>구글지도</b></td>
<td>
	<p class="both"><label><input type=checkbox name='google_map' value='1' <?php if($setting['google_map']) echo "checked"; ?>> 사용 - 글내용에 <b>[map]지도마커내용[/map]</b>을 입력한 곳에 출력됨</label></p>
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_code", $loc, $sca); ?></th>
<td><b>코드보기</b></td>
<td>
	<p>
	<select name="view_code">
		<option value="" >사용안함</option>
		<option value="shThemeDefault" <?php if($setting['view_code'] == "shThemeDefault") echo "selected"; ?>>Default</option>
		<option value="shThemeDjango" <?php if($setting['view_code'] == "shThemeDjango") echo "selected"; ?>>Django</option>
		<option value="shThemeEclipse" <?php if($setting['view_code'] == "shThemeEclipse") echo "selected"; ?>>Eclipse</option>
		<option value="shThemeEmacs" <?php if($setting['view_code'] == "shThemeEmacs") echo "selected"; ?>>Emacs</option>
		<option value="shThemeFadeToGrey" <?php if($setting['view_code'] == "shThemeFadeToGrey") echo "selected"; ?>>FadeToGrey</option>
		<option value="shThemeMidnight" <?php if($setting['view_code'] == "shThemeMidnight") echo "selected"; ?>>Midnight</option>
		<option value="shThemeRDark" <?php if($setting['view_code'] == "shThemeRDark") echo "selected"; ?>>RDark</option>
	</select> - Syntaxhighlighter 는 HTML 미사용 또는 DHTML 사용시에만 정상 적용됨
	</p>
	※ 글내용에 <b>[code]php 등 코드[/code]</b>를 입력한 곳에 출력됩니다.
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_poll", $loc, $sca); ?></th>
<td><b>설문조사</b></td>
<td>
	<?php 
		if(!$setting['poll_level']) $setting['poll_level'] = 10;
		if($setting['poll_point'] == "") $setting['poll_point'] = 0;
		echo get_member_level_select("poll_level", 1, $member['mb_level'], $setting['poll_level']); 
	?> 
	등급부터 등록 가능
	/
	<input type=text name='poll_point' size=4 numeric value='<?php echo $setting['poll_point']; ?>'> 포인트 투표시 적립
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_tag", $loc, $sca); ?></th>
<td><b>태그(tag)</b></td>
<td>
	<?php if(!$setting['tag']) $setting['tag'] = 10; ?>
	<p><?php echo get_member_level_select("tag", 1, $member['mb_level'], $setting['tag']); ?> 등급 이상 & 아래 등록 회원만 태그와 관련글 기능 사용 가능 - 회원아이디 콤마(,)로 구분</p>
	<textarea type=text name='tag_mb' rows=4 cols=80 style='line-height:1.2;'><?php echo $setting['tag_mb']; ?></textarea>
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_nameless", $loc, $sca); ?></th>
<td><b>익명글</b></td>
<td>
	<p class="bline">
	글
	<select name="nameless_write">
		<option value="0" <?php if(!$setting['nameless_write']) echo "selected"; ?>>사용안함</option>
		<option value="1" <?php if($setting['nameless_write'] == "1") echo "selected"; ?>>체크박스</option>
		<option value="2" <?php if($setting['nameless_write'] == "2") echo "selected"; ?>>무조건</option>
	</select>	
	-
	댓글
	<select name="nameless_cmt">
		<option value="0" <?php if(!$setting['nameless_cmt']) echo "selected"; ?>>사용안함</option>
		<option value="1" <?php if($setting['nameless_cmt'] == "1") echo "selected"; ?>>체크박스</option>
		<option value="2" <?php if($setting['nameless_cmt'] == "2") echo "selected"; ?>>무조건</option>
	</select>	

	- 익명글은 글수정 불가(검색방지를 위해 mb_id 자체를 삭제)

	</p>

	접두어 <input type=text name='nameless_head' size=10 value='<?php echo $setting['nameless_head']; ?>'> 
	+ 
	<?php if($setting['nameless_tail'] == "") $setting['nameless_tail'] = 6; ?>
	<input type=text name='nameless_tail' size=2 maxlength=4 numeric value='<?php echo $setting['nameless_tail']; ?>'> 자리 랜덤 이름으로 익명표시
</td>
</tr>
</table>

<table border=0 class="admin_head">
<tr>
<th><h2 class="sub_title left">▶ 제한 기능</h2></th>
<td> </td>
</tr>
</table>

<table border=0 class="admin_tbl">
<colgroup>
	<col class="w20">
	<col class="w100">
</colgroup>
<tr>
<th><?php echo get_chk("chk_photo", $loc, $sca); ?></th>
<td><b>회원사진</b></td>
<td>
	<p>
	내용
	<select name="view_photo">
		<option value="1" <?php if($setting['view_photo'] == "" || $setting['view_photo'] == "1") echo "selected"; ?>>모든 회원사진 표시</option>
		<option value="2" <?php if($setting['view_photo'] == "2") echo "selected"; ?>>있는 회원만 표시</option>
		<option value="3" <?php if($setting['view_photo'] == "3") echo "selected"; ?>>이모티콘으로 표시</option>
		<option value="0" <?php if($setting['view_photo'] == "0") echo "selected"; ?>>회원사진 표시안함</option>
	</select>
	&nbsp; - &nbsp; 이모티콘 
	<?php echo amina_skin("skin", "emo", "emo_skin", $setting['emo_skin']); ?>
	</p>
	댓글
	<select name="cmt_photo">
		<option value="1" <?php if($setting['cmt_photo'] == "" || $setting['cmt_photo'] == "1") echo "selected"; ?>>모든 회원사진 표시</option>
		<option value="2" <?php if($setting['cmt_photo'] == "2") echo "selected"; ?>>있는 회원사진 표시</option>
		<option value="0" <?php if($setting['cmt_photo'] == "0") echo "selected"; ?>>회원사진 표시안함</option>
	</select>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_wm", $loc, $sca); ?></th>
<td><b>워터마크</b></td>
<td>
	<p class="bline">
		<label><input type=checkbox name='wm' value='1' <?php if($setting['wm']) echo "checked"; ?>> 사용</label>
		- <label>이미지 위치 : http://그누URL/<input type=text name='wm_file' size=20 value='<?php echo $setting['wm_file']; ?>'></label> ex) amina/img/wm.png
	</p>
	<p class="bline">
	<label>워터마크 위치
	<select name="wm_loc">
		center, top, top_left, top_right, bottom, bottom_left, bottom_right
		<option value="center" <?php if(!$setting['wm_loc'] || $setting['wm_loc'] == "center") echo "selected"; ?>>가운데</option>
		<option value="top" <?php if($setting['wm_loc'] == "top") echo "selected"; ?>>상단</option>
		<option value="top_left" <?php if($setting['wm_loc'] == "top_left") echo "selected"; ?>>상단좌측</option>
		<option value="top_right" <?php if($setting['wm_loc'] == "top_right") echo "selected"; ?>>상단우측</option>
		<option value="bottom" <?php if($setting['wm_loc'] == "bottom") echo "selected"; ?>>하단</option>
		<option value="bottom_left" <?php if($setting['wm_loc'] == "bottom_left") echo "selected"; ?>>하단좌측</option>
		<option value="bottom_right" <?php if($setting['wm_loc'] == "bottom_right") echo "selected"; ?>>하단우측</option>
	</select></label>
	<?php 
		if(!$setting['wm_x']) $setting['wm_x'] = 0; 
		if(!$setting['wm_y']) $setting['wm_y'] = 0; 		
	?>
	- Offset : x <input type=text name="wm_x" size=3 maxlength=4 numeric value="<?php echo $setting['wm_x']; ?>"> &nbsp; y <input type=text name="wm_y" size=3 maxlength=4 numeric value="<?php echo $setting['wm_y']; ?>">
	</p>
	※ 워터마크는 글내용에서 불당 리사이즈를 사용안할 경우 작동안함(리사이즈된 이미지만 워터마크 생성)
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_shingo", $loc, $sca); ?></th>
<td><b>블라인드</b></td>
<td>
	<?php if(!$setting['shingo']) $setting['shingo'] = 0; ?>
	<input type=text name="shingo" size=4 numeric maxlength=10 value="<?php echo $setting['shingo']; ?>"> 회 이상 신고시 글을 자동 블라인드 처리함
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_resize", $loc, $sca); ?></th>
<td><b>리사이즈</b></td>
<td>
	<p class="bline"><label><input type=checkbox name="resize" value="1" <?php if($setting['resize']) echo "checked"; ?>> 글내용에서 불당 리사이즈 사용안함 (원본 출력)</label></p>
	<?php 
		if(!$setting['upimg_size']) $setting['upimg_size'] = 0; 
		if(!$setting['upimg_quality']) $setting['upimg_quality'] = 90; 
	?>
	글등록시 이미지 너비가 <input type=text name="upimg_size" size=4 maxlength=10 numeric value="<?php echo $setting['upimg_size']; ?>"> px 이상일 때 축소하여 등록 - JPG Quality <input type=text name="upimg_quality" numeric size=4 maxlength=3 value="<?php echo $setting['upimg_quality']; ?>">
</td>
</tr>
<tr class="head_gray">
<th>&nbsp;</th>
<td><b>안내사항</b></td>
<td>
	<p>1. 글/포인트/다운/추천/별점/투표제한은 회원만 가능(관리자와 비회원 제외)</p>
	2. 다운로드후 각 기능 작동시 다운로드 기본 포인트가 설정된 경우에만 작동함
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_limit", $loc, $sca); ?></th>
<td><b>글제한</b></td>
<td>
	<?php if(!$setting['limit_post_cnt']) $setting['limit_post_cnt'] = 0; ?>
	회원당 
	<select name="limit_post">
		<option value="1" <?php if($setting['limit_post'] == "1") echo "selected"; ?>>하루</option>
		<option value="2" <?php if($setting['limit_post'] == "2") echo "selected"; ?>>전체</option>
	</select>
	최대 <input type=text name="limit_post_cnt" size=4 maxlength=4 numeric value="<?php echo $setting['limit_post_cnt']; ?>"> 개까지 글등록 가능(관리자 제외)
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_point", $loc, $sca); ?></th>
<td><b>포인트제한</b></td>
<td>
	<p class="bline"><label><input type=checkbox name="limit_cmt" value="1" <?php if($setting['limit_cmt']) echo "checked"; ?>> 자신의 글에 쓴 자신의 댓글/별점에는 포인트 적립하지 않음</label></p>
	<?php if(!$setting['limit_date']) $setting['limit_date'] = 0; ?>
	<input type=text name="limit_date" size=4 maxlength=10 numeric value="<?php echo $setting['limit_date']?>"> 일 이상 지난 글에 쓴 댓글/추천/별점은 포인트 적립하지 않음
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_limit_down", $loc, $sca); ?></th>
<td><b>다운로드</b></td>
<td>
	<label><input type=checkbox name='limit_down_cmt' value='1' <?php if($setting['limit_down_cmt']) echo "checked"; ?>> 댓글작성</label>
	&nbsp;
	<label><input type=checkbox name='limit_down_star' value='1' <?php if($setting['limit_down_star']) echo "checked"; ?>> 별점부여</label>
	&nbsp;
	<label><input type=checkbox name='limit_down_poll' value='1' <?php if($setting['limit_down_poll']) echo "checked"; ?>> 투표참여</label>
	&nbsp;
	<label><input type=checkbox name='limit_down_good' value='1' <?php if($setting['limit_down_good']) echo "checked"; ?>> 추천/비추천</label>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_limit_good", $loc, $sca); ?></th>
<td><b>추천/비추천</b></td>
<td>
	<label><input type=checkbox name='limit_good_cmt' value='1' <?php if($setting['limit_good_cmt']) echo "checked"; ?>> 댓글작성</label>
	&nbsp;
	<label><input type=checkbox name='limit_good_star' value='1' <?php if($setting['limit_good_star']) echo "checked"; ?>> 별점부여</label>
	&nbsp;
	<label><input type=checkbox name='limit_good_poll' value='1' <?php if($setting['limit_good_poll']) echo "checked"; ?>> 투표참여</label>
	&nbsp;
	<label><input type=checkbox name='limit_good_down' value='1' <?php if($setting['limit_good_down']) echo "checked"; ?>> 다운로드</label>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_limit_star", $loc, $sca); ?></th>
<td><b>별점부여</b></td>
<td>
	<label><input type=checkbox name='limit_star_cmt' value='1' <?php if($setting['limit_star_cmt']) echo "checked"; ?>> 댓글작성</label>
	&nbsp;
	<label><input type=checkbox name='limit_star_poll' value='1' <?php if($setting['limit_star_poll']) echo "checked"; ?>> 투표참여</label>
	&nbsp;
	<label><input type=checkbox name='limit_star_down' value='1' <?php if($setting['limit_star_down']) echo "checked"; ?>> 다운로드</label>
	&nbsp;
	<label><input type=checkbox name='limit_star_good' value='1' <?php if($setting['limit_star_good']) echo "checked"; ?>> 추천/비추천</label>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_limit_poll", $loc, $sca); ?></th>
<td><b>투표참여</b></td>
<td>
	<label><input type=checkbox name='limit_poll_cmt' value='1' <?php if($setting['limit_poll_cmt']) echo "checked"; ?>> 댓글작성</label>
	&nbsp;
	<label><input type=checkbox name='limit_poll_star' value='1' <?php if($setting['limit_poll_star']) echo "checked"; ?>> 별점부여</label>
	&nbsp;
	<label><input type=checkbox name='limit_poll_down' value='1' <?php if($setting['limit_poll_down']) echo "checked"; ?>> 다운로드</label>
	&nbsp;
	<label><input type=checkbox name='limit_poll_good' value='1' <?php if($setting['limit_poll_good']) echo "checked"; ?>> 추천/비추천</label>
</td>
</tr>
</table>

<table border=0 class="admin_head">
<tr>
<th><h2 class="sub_title left">▶ 평가 기능</h2></th>
<td> </td>
</tr>
</table>

<table border=0 class="admin_tbl">
<colgroup>
	<col class="w20">
	<col class="w100">
</colgroup>
<tr>
<th><?php echo get_chk("chk_move", $loc, $sca); ?></th>
<td><b>자동이동</b></td>
<td>
	<p class="bline">
		<label><input type=checkbox name='move' value='1' <?php if($setting['move']) echo "checked"; ?>> 사용</label>
		- 
		최근 <input type=text name='move_term' size=3 numeric maxlength=10 value='<?php echo $setting['move_term']; ?>'> 일이내 게시물 중 조건충족시
		<input type=text name='move_bo' size=8 value='<?php echo $setting['move_bo']; ?>'> 게시판의
		<input type=text name='move_ca' size=8 value='<?php echo $setting['move_ca']; ?>'> 분류로 자동이동
	</p>
	<input type=text name='move_hit' size=4 numeric maxlength=10 value='<?php echo $setting['move_hit']; ?>'> 조회 이상,
	<input type=text name='move_cmt' size=4 numeric maxlength=10 value='<?php echo $setting['move_cmt']; ?>'> 댓글 이상,
	<select name="move_good">
		<option value="0">추천수</option>
		<option value="1" <?php if($setting['move_good'] == "1") echo "selected"; ?>>비추천수</option>
		<option value="2" <?php if($setting['move_good'] == "2") echo "selected"; ?>>추천-비추</option>
		<option value="3" <?php if($setting['move_good'] == "3") echo "selected"; ?>>비추-추천</option>
	</select>
	<input type=text name='move_cnt' size=4 numeric maxlength=10 value='<?php echo $setting['move_cnt']; ?>'> 이상,
	별점 <input type=text name='move_star' size=4 numeric maxlength=10 value='<?php echo $setting['move_star']; ?>'> 명 / 평균 <input type=text name='move_score' size=4 maxlength=10 value='<?php echo $setting['move_score']; ?>'> 점 이상
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_good", $loc, $sca); ?></th>
<td><b>추천포인트</b></td>
<td>
	<?php 
		if(!$setting['good_point']) $setting['good_point'] = 0; 
		if(!$setting['good_repoint']) $setting['good_repoint'] = 0;
	?>
	<input type=text name='good_point' size=4 numeric maxlength=10 value='<?php echo $setting['good_point']; ?>'> 포인트 적립,
	<input type=text name='good_repoint' size=4 numeric maxlength=10 value='<?php echo $setting['good_repoint']; ?>'> 포인트 글쓴이에게 적립 - 비추천도 동일
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_lucky", $loc, $sca); ?></th>
<td><b>럭키포인트</b></td>
<td>
	<?php 
		if(!$setting['lucky_rate']) $setting['lucky_rate'] = 0; 
		if(!$setting['lucky_point']) $setting['lucky_point'] = 0;
	?>
	당첨확률 = 1 / <input type=text name='lucky_rate' size=4 numeric maxlength=10 value='<?php echo $setting['lucky_rate']; ?>'> (추천값 10)
	- 최대 배당금 = 댓글 포인트 x <input type=text name='lucky_point' size=4 numeric maxlength=10 value='<?php echo $setting['lucky_point']; ?>'> 배(추천값 10)
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_star", $loc, $sca); ?></th>
<td><b>별점평가</b></td>
<td>
	<select name="star">
		<option value="0">사용안함</option>
		<option value="1" <?php if($setting['star'] == "1") echo "selected"; ?>>글쓴이만</option>
		<option value="2" <?php if($setting['star'] == "2") echo "selected"; ?>>회원만</option>
		<option value="3" <?php if($setting['star'] == "3") echo "selected"; ?>>비회원도</option>
	</select>
	&nbsp;
	<select name="star_color">
		<option value="gold" <?php if($setting['star_color'] == "gold") echo "selected"; ?>>골드별</option>
		<option value="blue" <?php if($setting['star_color'] == "blue") echo "selected"; ?>>블루별</option>
		<option value="red" <?php if($setting['star_color'] == "red") echo "selected"; ?>>레드별</option>
		<option value="violet" <?php if($setting['star_color'] == "violet") echo "selected"; ?>>보라별</option>
		<option value="orange" <?php if($setting['star_color'] == "orange") echo "selected"; ?>>살구별</option>
		<option value="green" <?php if($setting['star_color'] == "green") echo "selected"; ?>>그린별</option>
	</select>	
	-
	<?php 
		if(!$setting['star_point']) $setting['star_point'] = 0; 
		if(!$setting['star_repoint']) $setting['star_repoint'] = 0;
	?>
	<input type=text name='star_point' numeric size=4 maxlength=10 value='<?php echo $setting['star_point']; ?>'> 포인트 적립 
	/
	<input type=text name='star_repoint' size=4 numeric maxlength=10 value='<?php echo $setting['star_repoint']; ?>'> 포인트 글쓴이에게 적립
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_cool", $loc, $sca); ?></th>
<td><b>댓글평가</b></td>
<td>
	<label><input type=checkbox name='cmt_cool' value='1' <?php if($setting['cmt_cool']) echo "checked"; ?>> 사용</label>
	<?php 
		if(!$setting['cmt_cool_txt']) $setting['cmt_cool_txt'] = "좋아!";
		if(!$setting['cmt_bad_txt']) $setting['cmt_bad_txt'] = "별로!"; 
	?>
	- <input type=text name='cmt_cool_txt' size=6 value='<?php echo $setting['cmt_cool_txt']; ?>'> 표시(좋아! 찬성! 인증! 등)
	/
	<input type=text name='cmt_bad_txt' size=6 value='<?php echo $setting['cmt_bad_txt']; ?>'> 표시(별로! 반대! 글쎄! 등)
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_cgood", $loc, $sca); ?></th>
<td><b>댓글공감</b></td>
<td>
	<p class="bline">
	<label><input type=checkbox name='cmt_good' value='1' <?php if($setting['cmt_good']) echo "checked"; ?>> 사용</label>

	<?php 
		if(!$setting['cmt_good_txt']) $setting['cmt_good_txt'] = "공감";
		if(!$setting['cmt_best']) $setting['cmt_best'] = 0;
		if(!$setting['cmt_good_point']) $setting['cmt_good_point'] = 0; 
		if(!$setting['cmt_good_repoint']) $setting['cmt_good_repoint'] = 0;
	?>
	- <input type=text name='cmt_good_txt' size=6 value='<?php echo $setting['cmt_good_txt']; ?>'> 표시(공감, 추천, 인증 등)
	/ <input type=text name='cmt_best' size=6 numeric maxlength=10 value='<?php echo $setting['cmt_best']; ?>'> 개 이상 베스트
	</p>
	<input type=text name='cmt_good_point' numeric size=4 maxlength=10 value='<?php echo $setting['cmt_good_point']; ?>'> 포인트 적립, 
	<input type=text name='cmt_good_repoint' size=4 numeric maxlength=10 value='<?php echo $setting['cmt_good_repoint']; ?>'> 포인트 글쓴이에게 적립 
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_choice", $loc, $sca); ?></th>
<td><b>댓글채택</b></td>
<td>
	<label><input type=checkbox name='cmt_choice' value='1' <?php if($setting['cmt_choice']) echo "checked"; ?>> 사용</label>

	<?php 
		if(!$setting['cmt_choice_txt']) $setting['cmt_choice_txt'] = "채택";
		if(!$setting['cmt_choice_return']) $setting['cmt_choice_return'] = 0; 
	?>
	- <input type=text name='cmt_choice_txt' size=6 value='<?php echo $setting['cmt_choice_txt']; ?>'> 표시(채택, 당첨, 선정 등)
	/ 채택시 건 포인트의 <input type=text name='cmt_choice_return' size=4 numeric maxlength=10 value='<?php echo $setting['cmt_choice_return']; ?>'> % 돌려받음
</td>
</tr>

<tr>
<th><?php echo get_chk("chk_mileage", $loc, $sca); ?></th>
<td><b>마일리지</b></td>
<td>
	<label><input type=checkbox name='mileage' value='1' <?php if($setting['mileage']) echo "checked"; ?>> 받은 열람 & 다운 포인트는 마일리지로 적립</label>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_po_view", $loc, $sca); ?></th>
<td><b>열람기능</b></td>
<td>

	<p class="both"><label><input type=checkbox name='po_view' value='1' <?php if($setting['po_view']) echo "checked"; ?> onclick="amina_show('po_view_tbl');"> 열람기능 사용하기</label></p>

	<table border=1 class="set_tbl" id="po_view_tbl" style="display:<?php if($setting['po_view']) { echo "block"; } else { echo "none"; } ?>;">
	<colgroup>
		<col class="w80">
		<col class="w80">
	</colgroup>
	<tr>
	<td>이용횟수</td>
	<td><input type=text name='po_view_cnt' size=3 maxlength=3 numeric value='<?php echo $setting['po_view_cnt']; ?>'> 회</td>
	<td>1회 포인트 차감후 이용횟수</td>
	</tr>
	<tr>
	<td>이용기간</td>
	<td><input type=text name='po_view_day' size=3 maxlength=3 numeric value='<?php echo $setting['po_view_day']; ?>'> 일</td>
	<td>1회 포인트 차감후 이용기간</td>
	</tr>
	<tr>
	<td>유효시간</td>
	<td><input type=text name='po_view_time' size=3 maxlength=3 numeric value='<?php echo $setting['po_view_time']; ?>'> 시</td>
	<td>1회 포인트 차감후 무료이용시간</td>
	</tr>
	<tr>
	<td>적립기간</td>
	<td><input type=text name='po_view_term' size=3 maxlength=3 numeric value='<?php echo $setting['po_view_term']; ?>'> 일</td>
	<td>등록일로부터 설정일까지만 등록자에게 포인트 적립('0' 입력시 제한없음)</td>
	</tr>
	<tr>
	<td>수수료율</td>
	<td><input type=text name='po_view_fee' size=3 maxlength=3 numeric value='<?php echo $setting['po_view_fee']; ?>'> %</td>
	<td>수수료율 만큼 차감후 등록자에게 포인트 적립</td>
	</tr>
	<tr>
	<td>무료등급</td>
	<td>
		<?php 
			if(!$setting['po_view_free']) $setting['po_view_free'] = 10;
			echo get_member_level_select("po_view_free", 1, $member['mb_level'], $setting['po_view_free']); 
		?>
	</td>
	<td>무료등급이상은 포인트 차감없음(정액회원, 관리자 등)</td>
	</tr>
	<tr class="trfoot">
	<td>이용등급</td>
	<td>
		<?php 
			if(!$setting['po_view_level']) $setting['po_view_level'] = 2;
			echo get_member_level_select("po_view_level", 1, $member['mb_level'], $setting['po_view_level']); 
		?>
	</td>
	<td>비회원(1)은 이용불가 / 설정한 회원등급 이상부터 이용가능</td>
	</tr>
	</table>
</td>
</tr>
<tr>
<th><?php echo get_chk("chk_po_down", $loc, $sca); ?></th>
<td><b>다운기능</b></td>
<td>
	<p class="both"><label><input type=checkbox name='po_down' value='1' <?php if($setting['po_down']) echo "checked"; ?> onclick="amina_show('po_down_tbl');"> 다운기능 사용하기</label></p>

	<table border=1 class="set_tbl" id="po_down_tbl" style="display:<?php if($setting['po_down']) { echo "block"; } else { echo "none"; } ?>;">
	<colgroup>
		<col class="w80">
		<col class="w80">
	</colgroup>
	<tr>
	<td>이용횟수</td>
	<td><input type=text name='po_down_cnt' size=3 maxlength=3 numeric value='<?php echo $setting['po_down_cnt']; ?>'> 회</td>
	<td>1회 포인트 차감후 이용횟수</td>
	</tr>
	<tr>
	<td>이용기간</td>
	<td><input type=text name='po_down_day' size=3 maxlength=3 numeric value='<?php echo $setting['po_down_day']; ?>'> 일</td>
	<td>1회 포인트 차감후 이용기간</td>
	</tr>
	<tr>
	<td>유효시간</td>
	<td><input type=text name='po_down_time' size=3 maxlength=3 numeric value='<?php echo $setting['po_down_time']; ?>'> 시</td>
	<td>1회 포인트 차감후 무료이용시간</td>
	</tr>
	<tr>
	<td>적립기간</td>
	<td><input type=text name='po_down_term' size=3 maxlength=3 numeric value='<?php echo $setting['po_down_term']; ?>'> 일</td>
	<td>등록일로부터 설정일까지만 등록자에게 포인트 적립('0' 입력시 제한없음)</td>
	</tr>
	<tr>
	<td>수수료율</td>
	<td><input type=text name='po_down_fee' size=3 maxlength=3 numeric value='<?php echo $setting['po_down_fee']; ?>'> %</td>
	<td>수수료율 만큼 차감후 등록자에게 포인트 적립</td>
	</tr>
	<tr>
	<td>무료등급</td>
	<td>
		<?php
			if(!$setting['po_down_free']) $setting['po_down_free'] = 10;
			echo get_member_level_select("po_down_free", 1, $member['mb_level'], $setting['po_down_free']);
		?>
	</td>
	<td>무료등급이상은 포인트 차감없음(정액회원, 관리자 등)</td>
	</tr>
	<tr class="trfoot">
	<td>이용등급</td>
	<td>
		<?php
			if(!$setting['po_down_level']) $setting['po_down_level'] = 2;
			echo get_member_level_select("po_down_level", 1, $member['mb_level'], $setting['po_down_level']);
		?>
	</td>
	<td>비회원(1)은 이용불가 / 설정한 회원등급 이상부터 이용가능</td>
	</tr>
	</table>
</td>
</tr>
</table>

<table border=0 class="admin_head no_margin">
<tr>
<th> </th>
<td><?php echo $amina_btn; ?></td>
</tr>
</table>
</form>
