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

include_once($set_skin_path.'/set.load.php');

if(!$set_val) {
	$set['list_subj_len'] = 0;
	$set['list_height'] = 25;
	$set['o_num'] = 1;
	$set['o_subject'] = 2;
	$set['o_name'] = 3;
	$set['o_date'] = 4;
	$set['o_hit'] = 5;

	$set['w_num'] = 50;
	$set['w_name'] = 100;
	$set['w_date'] = 80;
	$set['w_hit'] = 60;

} else {
	$set = amina_set_list($set_val);
}

$set['list_thumb_w'] = $set['list_thumb_w'] > 0 ? $set['list_thumb_w'] : 0;
$set['list_photo'] = $set['list_photo'] > 0 ? $set['list_photo'] : 0;
$set['list_subj_len'] = $set['list_subj_len'] > 0 ? $set['list_subj_len'] : 0;
$set['list_height'] = $set['list_height'] > 0 ? $set['list_height'] : 25;

$set['o_num'] = $set['o_num'] > 0 ? $set['o_num'] : 0;
$set['o_thumb'] = $set['o_thumb'] > 0 ? $set['o_thumb'] : 0;
$set['o_cate'] = $set['o_cate'] > 0 ? $set['o_cate'] : 0;
$set['o_photo'] = $set['o_photo'] > 0 ? $set['o_photo'] : 0;
$set['o_subject'] = $set['o_subject'] > 0 ? $set['o_subject'] : 0;
$set['o_name'] = $set['o_name'] > 0 ? $set['o_name'] : 0;
$set['o_date'] = $set['o_date'] > 0 ? $set['o_date'] : 0;
$set['o_cmt'] = $set['o_cmt'] > 0 ? $set['o_cmt'] : 0;
$set['o_hit'] = $set['o_hit'] > 0 ? $set['o_hit'] : 0;
$set['o_good'] = $set['o_good'] > 0 ? $set['o_good'] : 0;
$set['o_nogood'] = $set['o_nogood'] > 0 ? $set['o_nogood'] : 0;
$set['o_star'] = $set['o_star'] > 0 ? $set['o_star'] : 0;
$set['o_po_view'] = $set['o_po_view'] > 0 ? $set['o_po_view'] : 0;
$set['o_po_down'] = $set['o_po_down'] > 0 ? $set['o_po_down'] : 0;
$set['o_point'] = $set['o_point'] > 0 ? $set['o_point'] : 0;
$set['o_choice'] = $set['o_choice'] > 0 ? $set['o_choice'] : 0;
$set['o_daum'] = $set['o_daum'] > 0 ? $set['o_daum'] : 0;

$set['w_num'] = $set['w_num'] > 0 ? $set['w_num'] : 0;
$set['w_cate'] = $set['w_cate'] > 0 ? $set['w_cate'] : 0;
$set['w_name'] = $set['w_name'] > 0 ? $set['w_name'] : 0;
$set['w_date'] = $set['w_date'] > 0 ? $set['w_date'] : 0;
$set['w_cmt'] = $set['w_cmt'] > 0 ? $set['w_cmt'] : 0;
$set['w_hit'] = $set['w_hit'] > 0 ? $set['w_hit'] : 0;
$set['w_good'] = $set['w_good'] > 0 ? $set['w_good'] : 0;
$set['w_nogood']= $set['w_nogood'] > 0 ? $set['w_nogood'] : 0;
$set['w_po_view'] = $set['w_po_view'] > 0 ? $set['w_po_view'] : 0;
$set['w_po_down'] = $set['w_po_down'] > 0 ? $set['w_po_down'] : 0;
$set['w_point'] = $set['w_point'] > 0 ? $set['w_point'] : 0;
$set['w_choice'] = $set['w_choice'] > 0 ? $set['w_choice'] : 0;

$set['list_cmt'] = $set['list_cmt'] ? $set['list_cmt'] : '댓글';
$set['list_date'] = $set['list_date'] ? $set['list_date'] : 'm.d';
$set['list_choice'] = $set['list_choice'] ? $set['list_choice'] : '채택됨'; 
$set['list_nochoice'] = $set['list_nochoice'] ? $set['list_nochoice'] : '미채택';
$set['list_free_view'] = $set['list_free_view'] ? $set['list_free_view'] : '무료';
$set['list_free_down'] = $set['list_free_down'] ? $set['list_free_down'] : '무료';
$set['list_line_height'] = $set['list_line_height'] ? $set['list_line_height'] : '1.6';
$set['list_padding'] = $set['list_padding'] ? $set['list_padding'] : '8px 5px';

?>

<p></p>

<table border=1 class="set_tbl">
<colgroup>
	<col class="w60">
	<col class="w40">
	<col class="w60">
</colgroup>
<tr class="head_gray">
<td><b>항목</b></td>
<td><b>순서</b></td>
<td><b>너비</b></td>
<td>
	<b>입력된 출력순서에 따라 각 항목출력. 단, 기능 미사용시 출력안됨</b>
</td>
</tr>
<tr>
<td>번호</td>
<td>
	<input type="text" name="o_num" size=2 maxlength=10 numeric value="<?php echo $set['o_num']; ?>">
</td>
<td>
	<input type="text" name="w_num" size=3 maxlength=10 numeric value="<?php echo $set['w_num']; ?>">
</td>
<td>
	<label><input type="checkbox" name="list_qa" value="1" <?php if($set['list_qa']) echo 'checked'; ?>> 질답게시판으로 사용</label>
	&nbsp;
	<label><input type="checkbox" name="list_no_icon" value="1" <?php if($set['list_no_icon']) echo 'checked'; ?>> 첨부/링크 아이콘 미표시</label>
</td>
</tr>
<tr>
<td>썸네일</td>
<td>
	<input type="text" name="o_thumb" size=2 maxlength=10 numeric value="<?php echo $set['o_thumb']; ?>">
</td>
<td></td>
<td>
	<input type="text" name="list_thumb_w" size=3 maxlength=10 numeric value="<?php echo $set['list_thumb_w']; ?>">
	x
	<input type="text" name="list_thumb_h" size=3 maxlength=10 numeric value="<?php echo $set['list_thumb_h']; ?>"> px 

	&nbsp;
	노썸
	<select name="list_thumb_no">
		<option value="white">회색</option>
		<option value="black" <?php if($set['list_thumb_no'] == "black") echo 'selected'; ?>>검정</option>
		<option value="logo" <?php if($set['list_thumb_no'] == "logo") echo 'selected'; ?>>로고</option>
		<option value="none" <?php if($set['list_thumb_no'] == "none") echo 'selected'; ?>>없음</option>
	</select>

	&nbsp;
	아이콘
	<select name="list_thumb_icon">
		<option value="s">소</option>
		<option value="m" <?php if($set['list_thumb_icon'] == "m") echo 'selected'; ?>>중</option>
		<option value="l" <?php if($set['list_thumb_icon'] == "l") echo 'selected'; ?>>대</option>
	</select>

	&nbsp;
	<label><input type="checkbox" name="list_thumb_cut" value="nocut" <?php if($set['list_thumb_cut'] == "nocut") echo 'checked'; ?>> No-Cut</label>

	&nbsp;
	<label><input type="checkbox" name="linked_img" value="1" <?php if($set['linked_img'] == "1") echo 'checked'; ?>> 연동이미지</label>
</td>
</tr>
<tr>
<td>분류</td>
<td>
	<input type="text" name="o_cate" size=2 maxlength=10 numeric value="<?php echo $set['o_cate']; ?>">
</td>
<td>
	<input type="text" name="w_cate" size=3 maxlength=10 numeric value="<?php echo $set['w_cate']; ?>">
</td>
<td>
	<label><input type="radio" name="list_cate" value="0" <?php if(!$set['list_cate'] || $set['list_cate'] == "0") echo 'checked'; ?>> 별도표시</label>
	&nbsp;
	<label><input type="radio" name="list_cate" value="1" <?php if($set['list_cate'] == "1") echo 'checked'; ?>> 제목앞에</label>
	&nbsp;
	<label><input type="radio" name="list_cate" value="2" <?php if($set['list_cate'] == "2") echo 'checked'; ?>> 모두표시</label>
</td>
</tr>
<tr>
<td>포토</td>
<td>
	<input type="text" name="o_photo" size=2 maxlength=10 numeric value="<?php echo $set['o_photo']; ?>">
</td>
<td></td>
<td> 
	<input type="text" name="list_photo" size=3 numeric maxlength=10 value="<?php echo $set['list_photo']; ?>"> px - 회원사진 & 이모티콘 크기
</td>
</tr>
<tr>
<td>제목</td>
<td>
	<input type="text" name="o_subject" size=2 maxlength=10 numeric value="<?php echo $set['o_subject']; ?>">
</td>
<td></td>
<td>
	<input type="text" name="list_subj_len" size=3 numeric maxlength=10 value="<?php echo $set['list_subj_len']; ?>"> 자 - 제목길이
</td>
</tr>
<tr>
<td>이름</td>
<td>
	<input type="text" name="o_name" size=2 maxlength=10 numeric value="<?php echo $set['o_name']; ?>">
</td>
<td>
	<input type="text" name="w_name" size=3 maxlength=10 numeric value="<?php echo $set['w_name']; ?>">
</td>
<td>
	<label><input type="radio" name="list_name" value="left" <?php if(!$set['list_name'] || $set['list_name'] == "left") echo 'checked'; ?>> 좌측정렬</label>
	<label><input type="radio" name="list_name" value="center" <?php if($set['list_name'] == "center") echo 'checked'; ?>> 중간정렬</label>
	<label><input type="radio" name="list_name" value="right" <?php if($set['list_name'] == "right") echo 'checked'; ?>> 우측정렬</label>
</td>
</tr>
<tr>
<td>날짜</td>
<td>
	<input type="text" name="o_date" size=2 maxlength=10 numeric value="<?php echo $set['o_date']; ?>">
</td>
<td>
	<input type="text" name="w_date" size=3 maxlength=10 numeric value="<?php echo $set['w_date']; ?>">
</td>
<td>

	<label><input type="text" name="list_date" size=6 maxlength=6 value="<?php echo $set['list_date']; ?>"> 형태 ex) Y/m/d 등 - 그누기본은 1, '며칠전' 형태는 2 라고 입력</label>
</td>
</tr>
<tr>
<td>댓글</td>
<td>
	<input type="text" name="o_cmt" size=2 maxlength=10 numeric value="<?php echo $set['o_cmt']; ?>">
</td>
<td>
	<input type="text" name="w_cmt" size=3 maxlength=10 numeric value="<?php echo $set['w_cmt']; ?>">
</td>
<td>
	<label><input type="text" name="list_cmt" size=6 value="<?php echo $set['list_cmt']; ?>"> 이라고 헤드에 표시 ex) 참여 등 ※ 제목 옆 댓글수는 출력안됨</label>
</td>
</tr>
<tr>
<td>조회</td>
<td>
	<input type="text" name="o_hit" size=2 maxlength=10 numeric value="<?php echo $set['o_hit']; ?>">
</td>
<td>
	<input type="text" name="w_hit" size=3 maxlength=10 numeric value="<?php echo $set['w_hit']; ?>">
</td>
<td></td>
</tr>
<tr>
<td>추천</td>
<td>
	<input type="text" name="o_good" size=2 maxlength=10 numeric value="<?php echo $set['o_good']; ?>">
</td>
<td>
	<input type="text" name="w_good" size=3 maxlength=10 numeric value="<?php echo $set['w_good']; ?>">
</td>
<td></td>
</tr>
<tr>
<td>비추천</td>
<td>
	<input type="text" name="o_nogood" size=2 maxlength=10 numeric value="<?php echo $set['o_nogood']; ?>">
</td>
<td>
	<input type="text" name="w_nogood" size=3 maxlength=10 numeric value="<?php echo $set['w_nogood']; ?>">
</td>
<td></td>
</tr>
<tr>
<td>별점</td>
<td>
	<input type="text" name="o_star" size=2 maxlength=10 numeric value="<?php echo $set['o_star']; ?>">
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>열람</td>
<td>
	<input type="text" name="o_po_view" size=2 maxlength=10 numeric value="<?php echo $set['o_po_view']; ?>">
</td>
<td>
	<input type="text" name="w_po_view" size=3 maxlength=10 numeric value="<?php echo $set['w_po_view']; ?>">
</td>
<td>
	<input type="text" name="list_free_view" size=6 value="<?php echo $set['list_free_view']; ?>"> 라고 "무료" 표시(-, 무료, 공짜 등)
</td>
</tr>
<tr>
<td>다운</td>
<td>
	<input type="text" name="o_po_down" size=2 maxlength=10 numeric value="<?php echo $set['o_po_down']; ?>">
</td>
<td>
	<input type="text" name="w_po_down" size=3 maxlength=10 numeric value="<?php echo $set['w_po_down']; ?>">
</td>
<td>
	<input type="text" name="list_free_down" size=6 value="<?php echo $set['list_free_down']; ?>"> 라고 "무료" 표시(-, 무료, 공짜 등)
</td>
</tr>
<tr>
<td>채택</td>
<td>
	<input type="text" name="o_point" size=2 maxlength=10 numeric value="<?php echo $set['o_point']; ?>">
</td>
<td>
	<input type="text" name="w_point" size=3 maxlength=10 numeric value="<?php echo $set['w_point']; ?>">
</td>
<td>채택포인트</td>
</tr>
<tr>
<td>상태</td>
<td>
	<input type="text" name="o_choice" size=2 maxlength=10 numeric value="<?php echo $set['o_choice']; ?>">
</td>
<td>
	<input type="text" name="w_choice" size=3 maxlength=10 numeric value="<?php echo $set['w_choice']; ?>">
</td>
<td>
	<label><input type="text" name="list_choice" size=6 value="<?php echo $set['list_choice']; ?>"> 표시(완료, 종료 등)</label>
	/
	<label><input type="text" name="list_nochoice" size=6 value="<?php echo $set['list_nochoice']; ?>"> 표시(진행, 검토 등 )</label>
</td>
</tr>
<tr>
<td>다음뷰</td>
<td>
	<input type="text" name="o_daum" size=2 maxlength=10 numeric value="<?php echo $set['o_daum']; ?>">
</td>
<td></td>
<td>
	<label><input type="radio" name="list_daum" value="t"<?php if(!$set['list_daum'] || $set['list_daum'] == "t") echo ' checked'; ?>> 미니</label>
	&nbsp;
	<label><input type="radio" name="list_daum" value="s"<?php if($set['list_daum'] == "s") echo ' checked'; ?>> 일반</label>
	&nbsp;
	<label><input type="radio" name="list_daum" value="m"<?php if($set['list_daum'] == "m") echo ' checked'; ?>> 버튼</label>
</td>
</tr>
<tr class="trfoot">
<td colspan=3>리스트 모양 설정</td>
<td>
	<p class="bline"><label><input type="checkbox" name="shell_color" value="1"<?php if($set['shell_color']) echo ' checked'; ?>> 리스트에 번갈아 색상 표시</label></p>

	<label>TD 줄간격(line-height) <input type="text" name="list_line_height" size=4 value="<?php echo $set['list_line_height']; ?>"></label>
	&nbsp; - &nbsp;
	<label>TD 여백(padding) <input type="text" name="list_padding" size=12 value="<?php echo $set['list_padding']; ?>"></label>
</td>
</tr>
</table>
