<!--#include virtual = "/manager/common/file/board_top.asp" -->
<%'//*************************************************************************************%>
<script type="text/javascript" src="/common/js/02board.js"></script>
<%'//*************************************************************************************%>
<!--#include file ="config.asp"-->
<%
Dim a_num, a_bbsname, a_level, a_type, a_tablename, a_imgline, a_imgwidth, a_imgheight, a_member, a_ad_cms_id, a_ad_cms, a_cate, a_email, a_phone, a_home, a_jumin, a_jumin_opt, a_ftemp1, a_ftemp1_str, a_ftemp2, a_ftemp2_str, a_ftemp3, a_ftemp3_str, a_ftemp4, a_ftemp4_str, a_new, a_upload, a_upload_len, a_nofilesize, a_nofile, a_reply, a_replyOpt, a_command, a_date_list, a_sdate, a_edate, a_noword, a_width, a_displaysu, a_viewType, a_lt_a, a_lt_b, a_lt_c, a_lt_e, a_lt_f, a_header, a_hd_file, a_detail, a_dt_file, a_writecontent, a_topinclude, a_btminclude, a_skin, a_date, a_edit,a_password, a_password_str, a_close, a_sendmail, a_sendmail_addr, a_sendsms, a_sendsms_addr

Dim cp_a_num

'//쓰기권한체크*************************************************************************************
if is_write <> "Y" then
	back_back "쓰기권한이 없습니다."
End if
'//**************************************************************************************************


'//파라미터정보 *************************************************************************************
a_num		= InputValue(request.queryString("a_num"))
cp_a_num	= InputValue(request.queryString("cp_a_num"))
'//**************************************************************************************************


If a_num = "" then			'//등록
	
	a_num			= ""

	a_bbsname		= ""
	a_level			= "B"
	a_type			= "N"
	a_tablename		= ""
	a_imgline		= "4"
	a_imgwidth		= "130"
	a_imgheight		= ""
	a_member		= "N"
	a_ad_cms_id		= ""
	a_ad_cms		= "Y"
	a_cate			= "N"
	a_email			= "N"
	a_phone			= "N"
	a_home			= "N"
	a_jumin			= "N"
	a_jumin_opt		= "1"
	a_ftemp1		= "N"
	a_ftemp1_str	= ""
	a_ftemp2		= "N"
	a_ftemp2_str	= ""
	a_ftemp3		= "N"
	a_ftemp3_str	= ""
	a_ftemp4		= "N"
	a_ftemp4_str	= ""
	a_new			= "1"
	a_upload		= "Y"
	a_upload_len	= "2"
	a_nofilesize	= "5"
	a_nofile		= "hwp,doc,ppt,xls,txt,gif,jpg,docx,pptx,xlsx,zip,alz,rar,pdf"
	a_reply			= "N"
	a_replyOpt		= "2"
	a_command		= "N"
	a_date_list		= "N"
	a_sdate			= ""
	a_edate			= ""
	a_noword		= ""
	a_width			= "100%"
	a_displaysu		= "10"
	a_viewType		= "1"
	a_lt_a			= "Y"
	a_lt_b			= "Y"
	a_lt_c			= "Y"
	a_lt_e			= "Y"
	a_lt_f			= "N"
	a_header		= ""
	a_hd_file		= ""
	a_detail		= ""
	a_dt_file		= ""
	a_writecontent	= ""
	a_topinclude	= ""
	a_btminclude	= ""
	a_skin			= "1"
	a_date			= ""
	a_edit			= "Y"
	
	is_title_str	= "신규 게시판 생성"

	a_password		= "N"
	a_password_str	= ""
	a_close			= "N"

	a_sendmail = "N"
	a_sendsms = "N"
	

	
Else	'//수정

	R_Fields = "a_num, a_bbsname, a_level, a_type, a_tablename, a_imgline, a_imgwidth, a_imgheight, a_member, a_ad_cms_id, a_ad_cms, a_cate, a_email, a_phone, a_home, a_jumin, a_jumin_opt, a_ftemp1, a_ftemp1_str, a_ftemp2, a_ftemp2_str, a_ftemp3, a_ftemp3_str, a_ftemp4, a_ftemp4_str, a_new, a_upload, a_upload_len, a_nofilesize, a_nofile, a_reply, a_replyOpt, a_command, a_date_list, a_sdate, a_edate, a_noword, a_width, a_displaysu, a_viewType, a_lt_a, a_lt_b, a_lt_c, a_lt_e, a_lt_f, a_header, a_hd_file, a_detail, a_dt_file, a_writecontent, a_topinclude, a_btminclude, a_skin, a_date, a_edit,a_password, a_password_str, a_close, a_sendmail, a_sendmail_addr, a_sendsms, a_sendsms_addr"

	R_tablename_str = "board_config"

	R_WHERE_str = " WHERE a_num=" & a_num

	Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)

	is_title_str = "게시판 수정"


End if



If cp_a_num <> "" then	'//복사

	R_Fields = "a_bbsname, a_level, a_type, a_tablename, a_imgline, a_imgwidth, a_imgheight, a_member, a_ad_cms_id, a_ad_cms, a_cate, a_email, a_phone, a_home, a_jumin, a_jumin_opt, a_ftemp1, a_ftemp1_str, a_ftemp2, a_ftemp2_str, a_ftemp3, a_ftemp3_str, a_ftemp4, a_ftemp4_str, a_new, a_upload, a_upload_len, a_nofilesize, a_nofile, a_reply, a_replyOpt, a_command, a_date_list, a_sdate, a_edate, a_noword, a_width, a_displaysu, a_viewType, a_lt_a, a_lt_b, a_lt_c, a_lt_e, a_lt_f, a_header, a_detail, a_writecontent, a_topinclude, a_btminclude, a_skin,a_password, a_password_str, a_close, a_sendmail, a_sendmail_addr, a_sendsms, a_sendsms_addr"

	R_tablename_str = "board_config"

	R_WHERE_str = " WHERE a_num=" & cp_a_num

	Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)
	
	a_bbsname = "[복사본]" & a_bbsname

	is_title_str = "신규 게시판 생성"

End if



If a_sdate = "" then

	a_sdate_y = Year(now)
	a_sdate_m = Right( "0" & Month(now), 2)
	a_sdate_d = Right( "0" & Day(now), 2)

else

	a_sdate_arr	= Split( a_sdate, "-" )

	a_sdate_y = a_sdate_arr(0)
	a_sdate_m = a_sdate_arr(1)
	a_sdate_d = a_sdate_arr(2)

End if


If a_edate = "" then
	a_edate_arr = Split( DateSerial(Year(now), Month(now)+2, Day(now)), "-" )

	a_edate_y = a_edate_arr(0)
	a_edate_m = a_edate_arr(1)
	a_edate_d = a_edate_arr(2)

else

	a_edate_arr	= Split( a_edate, "-" )

	a_edate_y = a_edate_arr(0)
	a_edate_m = a_edate_arr(1)
	a_edate_d = a_edate_arr(2)

End if

%>

		<!-- 내용영역 -->
		<div id="contents">

			<div id="contents_head"> 
				<div id="contents_title">
					<img src="/manager/img/tit_ic01.gif" width="22" height="21" class="<%=skin%> center" alt="" /><h1><span><%=is_title_str%></span></h1>
				</div>
				<div id="location">
					<a href="/manager/" tabindex="<%=getTabIndex()%>">Home</a> &gt; <a href="/manager/content/02board/list.asp" tabindex="<%=getTabIndex()%>">게시판관리</a> &gt; <a href="/manager/content/02board/write.asp" class="now" tabindex="<%=getTabIndex()%>"><%=is_title_str%></a>
				</div>
			</div>

			<!-- 내용들어가는곳 -->
			<div id="contents_area">

				<form id="frm" method="post" action="write_ok.asp?<%=page_info%>" enctype='multipart/form-data' onsubmit="return w_chk();">
				<div>
				<input type="hidden" name="a_num" value="<%=a_num%>" /><!-- (수정일때사용) -->
				<input type="hidden" name="is_a_hd_file" value="<%=a_hd_file%>" />
				<input type="hidden" name="is_a_dt_file" value="<%=a_dt_file%>" />
				<input type="hidden" name="a_tablename" value="<%=a_tablename%>" />
				<input type="hidden" name="a_replyOpt" value="1" /> <!-- 답변(목록/내용) => 사용안함..무조건 목록 -->
				</div>

					<h2 class="<%=skin%>">게시판기본정보<span>기본정보를 입력해주세요.</span></h2>
					<fieldset>
						<legend>신규 게시판 생성 서식 작성</legend>
						<table cellspacing="0" class="bbs_<%=skin%>" summary="신규 게시판 생성을 위한 입력 양식입니다.">
						<caption>신규 게시판 생성 서식</caption>
						<colgroup>
						<col width="140" />
						<col width="215" />
						<col width="140" />
						<col width="215" />
						</colgroup>
						<tr>
							<th scope="row"><label for="a_level">게시판종류</label></th>
							<td colspan="3" class="left">
								<select id="a_level" name="a_level" title="게시판종류 선택" tabindex="<%=getTabIndex()%>">

									<option value="nninc_simple" <%=chkSelect(a_level, "nninc_simple")%>>일반(심플)(nninc_simple)</option>
									<option value="default_photo" <%=chkSelect(a_level, "default_photo")%>>갤러리(이미지형)(default_photo)</option>
									<option value="default_calendar" <%=chkSelect(a_level, "default_calendar")%>>일정/달력(default_calendar)</option>
									<option value="nninc_qna" <%=chkSelect(a_level, "nninc_qna")%>>묻고답하기(nninc_qna)</option>
									<option value="nninc_faq" <%=chkSelect(a_level, "nninc_faq")%>>FAQ(nninc_faq)</option>

								</select>
								<span class="text1">* 갤러리 사용시 하단에서 [<strong>파일업로드</strong>] 기능을 꼭 체크하세요</span>
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="a_bbsname">게시판명</label></th>
							<td class="left"><input type="text" size="23" title="게시판명 입력" id="a_bbsname" name="a_bbsname" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_bbsname%>" maxlength="200" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row">회원제</th>
							<td class="left">
								<label for="a_member_Y"><input type="radio" id="a_member_Y" name="a_member" value="Y" title="사용 선택" <%=chkRadio(a_member, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_member_N"><input type="radio" id="a_member_N" name="a_member" value="N" title="사용안함 선택"  <%=chkRadio(a_member, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="a_ad_cms_id">관리자 아이디</label></th>
							<td class="left" colspan="3"><input type="text" size="65" title="관리자 아이디 입력" id="a_ad_cms_id" name="a_ad_cms_id" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_ad_cms_id%>" tabindex="<%=getTabIndex()%>"/><span class="text1">* 사용 예) test1, test2, test3</span>
							
								
								
								<!-- 우편번호 찾기 부분 -->
								<div id="Addr_search2" >
									<div class="post_write">
										<select id="sch_field" name="sch_field" title="검색형태 선택" tabindex="<%=getTabIndex()%>">
											<option value="all" >전체</option>
											<option value="m_name" >이름</option>
											<option value="m_id" >아이디</option>
											<option value="lvlname">그룹명</option>
										</select>
										:

										<input type="text" id="sch_member" name="sch_member" size="10" class="input_box" onkeypress="if(event.keyCode==13){return false;}" value="" tabindex="<%=getTabIndex()%>" />

										<input type="button" value=" 검색 " class="ct_bt01" onclick="wdSearch_Addr()" tabindex="<%=getTabIndex()%>" />

										<span class="text1">예) 홍길동, 길동</span>
									</div>
									<div class="post_search_wrap">
										<strong>↓ 회원목록 </strong> - 회원명 검색 결과 목록입니다. 

										<!-- 우편번호 나열 -->
										<div id="Search_Form" class="post_search"></div>

									</div>
								</div>



								<script type="text/javascript">
								<!--
								function wdSearch_Addr(){

									if(!document.getElementById("frm").sch_member.value) {

										alert("검색어를 적어주세요");
										document.getElementById("frm").sch_member.focus();

									}else{
										//document.getElementById("Search_Form").innerHTML= " <table valign='top'><tr><td>찾는 중입니다!!!</td></tr><table> ";

										document.getElementById("frm_member").sch_member.value = document.getElementById("frm").sch_member.value;

										document.getElementById("frm_member").sch_field.value = document.getElementById("frm").sch_field.value;

										

										document.getElementById("frm_member").action = "/manager/content/02board/member_search.asp";
										document.getElementById("frm_member").target = "Search_Iframe";

										document.getElementById("Search_Form").innerHTML="<iframe name='Search_Iframe' width='100%' height='100%' frameborder='0'></iframe>";

										document.getElementById("frm_member").submit();
									}
								}

								//-->
								</script>
							
							</td>
						</tr>
						<tr>
							<th scope="row">비밀번호 인증</th>
							<td class="left" colspan="3">
								<label for="a_password_Y"><input type="radio" id="a_password_Y" name="a_password" value="Y" title="사용 선택" <%=chkRadio(a_password, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_password_N"><input type="radio" id="a_password_N" name="a_password" value="N" title="사용안함 선택" <%=chkRadio(a_password, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;&nbsp;<strong>비밀번호</strong> :
								<input type="text" size="23" title="네번째 필드명 입력" id="a_password_str" name="a_password_str" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_password_str%>" maxlength="30" tabindex="<%=getTabIndex()%>" />
							</td>
						</tr>
						</table>
					</fieldset>







					<h2 class="<%=skin%>">필드관리<span>필드정보를 입력해주세요.</span></h2>
					<fieldset>
						<legend>필드정보 서식 작성</legend>
						<table cellspacing="0" class="bbs_<%=skin%>" summary="신규 게시판 필드정보를 위한 입력 양식입니다.">
						<caption>필드정보 서식</caption>
						<colgroup>
						<col width="140" />
						<col width="215" />
						<col width="140" />
						<col width="215" />
						</colgroup>
						<tr>
							<th scope="row">관리자버튼</th>
							<td class="left">
								<label for="a_ad_cms_Y"><input type="radio" id="a_ad_cms_Y" name="a_ad_cms" value="Y" title="사용 선택" <%=chkRadio(a_ad_cms, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_ad_cms_N"><input type="radio" id="a_ad_cms_N" name="a_ad_cms" value="N" title="사용안함 선택" <%=chkRadio(a_ad_cms, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
							<th scope="row">분류</th>
							<td class="left">
								<label for="a_cate_Y"><input type="radio" id="a_cate_Y" name="a_cate" value="Y" title="사용 선택" <%=chkRadio(a_cate, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_cate_N"><input type="radio" id="a_cate_N" name="a_cate" value="N" title="사용안함 선택" <%=chkRadio(a_cate, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row">이메일</th>
							<td class="left">
								<label for="a_email_Y"><input type="radio" id="a_email_Y" name="a_email" value="Y" title="사용 선택" <%=chkRadio(a_email, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_email_N"><input type="radio" id="a_email_N" name="a_email" value="N" title="사용안함 선택" <%=chkRadio(a_email, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
							</td>
							<th scope="row">전화번호</th>
							<td class="left">
								<label for="a_phone_Y"><input type="radio" id="a_phone_Y" name="a_phone" value="Y" title="사용 선택" <%=chkRadio(a_phone, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_phone_N"><input type="radio" id="a_phone_N" name="a_phone" value="N" title="사용안함 선택" <%=chkRadio(a_phone, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row">주소</th>
							<td class="left">
								<label for="a_home_Y"><input type="radio" id="a_home_Y" name="a_home" value="Y" title="사용 선택" <%=chkRadio(a_home, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_home_N"><input type="radio" id="a_home_N" name="a_home" value="N" title="사용안함 선택" <%=chkRadio(a_home, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
							</td>
							<th scope="row">주민번호</th>
							<td class="left">
								<label for="a_jumin_Y"><input type="radio" id="a_jumin_Y" name="a_jumin" value="Y" title="사용 선택" <%=chkRadio(a_jumin, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_jumin_N"><input type="radio" id="a_jumin_N" name="a_jumin" value="N" title="사용안함 선택" <%=chkRadio(a_jumin, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;
								<select id="a_jumin_opt" name="a_jumin_opt" title="주민번호 인증방식 선택" tabindex="<%=getTabIndex()%>" >
									<option value="1" <%=chkSelect(a_jumin_opt, "1")%> >일반</option>
									<option value="2" <%=chkSelect(a_jumin_opt, "2")%>>실명제</option>
								</select>
							</td>
						</tr>
						<tr>
							<th scope="row">사용자 필드추가 1</th>
							<td class="left" colspan="3">
								<label for="a_ftemp1_Y"><input type="radio" id="a_ftemp1_Y" name="a_ftemp1" value="Y" title="사용 선택"  <%=chkRadio(a_ftemp1, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_ftemp1_N"><input type="radio" id="a_ftemp1_N" name="a_ftemp1" value="N" title="사용안함 선택" <%=chkRadio(a_ftemp1, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;&nbsp;<strong>필드명</strong> :
								<input type="text" size="23" title="첫번째 필드명 입력" id="a_ftemp1_str" name="a_ftemp1_str" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_ftemp1_str%>" maxlength="30" tabindex="<%=getTabIndex()%>" />
							</td>
						</tr>
						<tr>
							<th scope="row">사용자 필드추가 2</th>
							<td class="left" colspan="3">
								<label for="a_ftemp2_Y"><input type="radio" id="a_ftemp2_Y" name="a_ftemp2" value="Y" title="사용 선택" <%=chkRadio(a_ftemp2, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_ftemp2_N"><input type="radio" id="a_ftemp2_N" name="a_ftemp2" value="N" title="사용안함 선택" <%=chkRadio(a_ftemp2, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
								&nbsp;&nbsp;&nbsp;<strong>필드명</strong> :
								<input type="text" size="23" title="두번째 필드명 입력" id="a_ftemp2_str" name="a_ftemp2_str" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_ftemp2_str%>"  maxlength="30" tabindex="<%=getTabIndex()%>"  />
							</td>
						</tr>
						<tr>
							<th scope="row">사용자 필드추가 3</th>
							<td class="left" colspan="3">
								<label for="a_ftemp3_Y"><input type="radio" id="a_ftemp3_Y" name="a_ftemp3" value="Y" title="사용 선택" <%=chkRadio(a_ftemp3, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_ftemp3_N"><input type="radio" id="a_ftemp3_N" name="a_ftemp3" value="N" title="사용안함 선택" <%=chkRadio(a_ftemp3, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;&nbsp;<strong>필드명</strong> :
								<input type="text" size="23" title="세번째 필드명 입력" id="a_ftemp3_str" name="a_ftemp3_str" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_ftemp3_str%>" maxlength="30" tabindex="<%=getTabIndex()%>" />
							</td>
						</tr>
						<tr>
							<th scope="row">사용자 필드추가 4</th>
							<td class="left" colspan="3">
								<label for="a_ftemp4_Y"><input type="radio" id="a_ftemp4_Y" name="a_ftemp4" value="Y" title="사용 선택" <%=chkRadio(a_ftemp4, "Y")%> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_ftemp4_N"><input type="radio" id="a_ftemp4_N" name="a_ftemp4" value="N" title="사용안함 선택" <%=chkRadio(a_ftemp4, "N")%> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;&nbsp;<strong>필드명</strong> :
								<input type="text" size="23" title="네번째 필드명 입력" id="a_ftemp4_str" name="a_ftemp4_str" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_ftemp4_str%>" maxlength="30" tabindex="<%=getTabIndex()%>" />
							</td>
						</tr>
						</table>
					</fieldset>





					<h2 class="<%=skin%>">기능관리<span>기능정보를 입력해주세요.</span></h2>
					<fieldset>
						<legend>기능정보 서식 작성</legend>
						<table cellspacing="0" class="bbs_<%=skin%>" summary="신규 게시판 기능정보를 위한 입력 양식입니다.">
						<caption>기능정보 서식</caption>
						<colgroup>
						<col width="140" />
						<col width="580" />
						</colgroup>
						<tr>
							<th scope="row"><label for="a_new">NEW 아이콘 출력</label></th>
							<td class="left"><input type="text" size="4" title="NEW 아이콘 출력기간 입력" id="a_new" name="a_new" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_new%>" maxlength="2" tabindex="<%=getTabIndex()%>" /> 일</td>
						</tr>
						<tr>
							<th scope="row">파일업로드</th>				
							<td class="left">
								<label for="a_upload_Y"><input type="radio" id="a_upload_Y" name="a_upload" value="Y" title="사용 선택" onclick="document.getElementById('nofile').style.display='block'" <%=chkRadio(a_upload, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_upload_N"><input type="radio" id="a_upload_N" name="a_upload" value="N" title="사용안함 선택" onclick="document.getElementById('nofile').style.display='none'" <%=chkRadio(a_upload, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>

								<div id="nofile" style="display:block;" class="pt4">
									
									<table cellspacing="0" class="bbs_2step" summary="파일업로드 기능정보를 위한 입력 양식입니다.">
									<caption>파일업로드 기능정보 서식</caption>
									<colgroup>
									<col width="130" />
									<col width="320" />
									</colgroup>
									<tr>
										<th scope="row"><label for="a_upload_len">업로드파일갯수</label></th>
										<td class="left">
											<select id="a_upload_len" name="a_upload_len" title="업로드파일갯수 선택" tabindex="<%=getTabIndex()%>">
											<%
											tablenumber = Replace(a_tablename,"board_","")
											'' 다문화 쪽 게시판에 첨부파일이 10개 인경우가 있다; (김천교육청)
											If tablenumber="74" or tablenumber="75" or tablenumber="76" or tablenumber="77" or tablenumber="78" or tablenumber="83" Or tablenumber="84" Then 
												limit_file_num = 10
											Else
												limit_file_num = 5
											End if
											%>
											<% For i=1 To limit_file_num%>
												<option value="<%=i%>" <%=chkSelect(a_upload_len, CStr(i))%>><%=i%></option>
											<% Next %>
											</select> 개
										</td>
									</tr>
									<tr>
										<th scope="row"><label for="a_nofilesize">업로드제한용량</label></th>
										<td class="left"><input type="text" size="4" title="업로드제한용량 입력" id="a_nofilesize" name="a_nofilesize" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_nofilesize%>" maxlength="3" tabindex="<%=getTabIndex()%>" /> <span class="eng">MByte</span>이하</td>
									</tr>
									<tr>
										<th scope="row"><label for="a_nofile">업로드허용파일</label></th>
										<td class="left"><textarea cols="45" rows="2" id="a_nofile" name="a_nofile" title="업로드제한파일 입력" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" tabindex="<%=getTabIndex()%>"><%=a_nofile%></textarea> <br /><span class="text1">* 사용 예) asp, exe, dll,</span></td>
									</tr>
									</table>
								</div>
								<%If a_upload = "N" then%>
								<script type='text/javascript'>
								<!--
									document.getElementById('nofile').style.display='none';
								//-->
								</script>
								<%End if%>
							</td>
						</tr>
						<tr>
							<th scope="row">답변</th>
							<td class="left">
								<label for="a_reply_Y"><input type="radio" id="a_reply_Y" name="a_reply" value="Y" title="사용 선택" <%=chkRadio(a_reply, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_reply_N"><input type="radio" id="a_reply_N" name="a_reply" value="N" title="사용안함 선택" <%=chkRadio(a_reply, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
								&nbsp;
								

								<!-- <select id="a_replyOpt" name="a_replyOpt" title="답변 출력방식 선택" tabindex="<%=getTabIndex()%>">
									<option value="1" <?if ($a_replyOpt == "1") { echo("selected='selected'"); } ?>>목록</option>
									<option value="2" <?if ($a_replyOpt == "2") { echo("selected='selected'"); } ?>>내용</option>
								</select> -->
							</td>
						</tr>
						<tr>
							<th scope="row">한줄답글(댓글)</th>
							<td class="left">
								<label for="a_command_Y"><input type="radio" id="a_command_Y" name="a_command" value="Y" title="사용 선택" <%=chkRadio(a_command, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_command_N"><input type="radio" id="a_command_N" name="a_command" value="N" title="사용안함 선택" <%=chkRadio(a_command, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row">공개/비공개</th>
							<td class="left">
								<label for="a_type_Y"><input type="radio" id="a_type_Y" name="a_type" value="Y" title="사용 선택" <%=chkRadio(a_type, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_type_N"><input type="radio" id="a_type_N" name="a_type" value="N" title="사용안함 선택" <%=chkRadio(a_type, "N")%> tabindex="<%=getTabIndex()%>"/>사용안함</label>
								<label for="a_type_T"><input type="radio" id="a_type_T" name="a_type" value="T" title="전체글 비공개" <%=chkRadio(a_type, "T")%> tabindex="<%=getTabIndex()%>"/>전체글 비공개</label>
							</td>
						</tr>

						<tr>
							<th scope="row">에디터</th>
							<td class="left">
								<label for="a_edit_Y"><input type="radio" id="a_edit_Y" name="a_edit" value="Y" title="사용 선택" <%=chkRadio(a_edit, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_edit_N"><input type="radio" id="a_edit_N" name="a_edit" value="N" title="사용안함 선택" <%=chkRadio(a_edit, "N")%> tabindex="<%=getTabIndex()%>"/>사용안함</label>
							</td>
						</tr>

						<tr>
							<th scope="row">사용기간</th>
							<td class="left">
								<label for="a_date_list_Y"><input type="radio" id="a_date_list_Y" name="a_date_list" value="Y" title="사용 선택" checked="checked" <%=chkRadio(a_date_list, "Y")%> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="a_date_list_N"><input type="radio" id="a_date_list_N" name="a_date_list" value="N" title="사용안함 선택" <%=chkRadio(a_date_list, "N")%> tabindex="<%=getTabIndex()%>" />사용안함</label>
								&nbsp;
								<select id="a_sdate_y" name="a_sdate_y" title="시작 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z=Year(now)-2 To Year(now)+5%>
									<option value="<%=z%>" <%=chkSelect(a_sdate_y, z)%>><%=z%>년</option>
								<%next%>
								</select>
								<select id="a_sdate_m" name="a_sdate_m"  title="시작 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z = 1 To 12
									z_value = Right( "0" & z, 2 )
								%>
									<option value="<%=z_value%>" <%=chkSelect(a_sdate_m, z_value)%>><%=z%>월</option>
								<%next%>
								</select>
								<select id="a_sdate_d" name="a_sdate_d"   title="시작 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z = 1 To 31
									z_value = Right( "0" & z, 2 )
								%>
									<option value="<%=z_value%>" <%=chkSelect(a_sdate_d, z_value)%>><%=z%>일</option>
								<%next%>
								</select>
								~
								<select id="a_edate_y" name="a_edate_y" title="종료 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z=Year(now)-2 To Year(now)+5%>
									<option value="<%=z%>" <%=chkSelect(a_edate_arr(0), z)%>><%=z%>년</option>
								<%next%>
								</select>
								<select id="a_edate_m" name="a_edate_m"  title="종료 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z = 1 To 12
									z_value = Right( "0" & z, 2 )
								%>
									<option value="<%=z_value%>" <%=chkSelect(a_edate_arr(1), z_value)%>><%=z%>월</option>
								<%next%>
								</select>
								<select id="a_edate_d" name="a_edate_d"   title="종료 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
								<%For z = 1 To 31
									z_value = Right( "0" & z, 2 )
								%>
									<option value="<%=z_value%>" <%=chkSelect(a_edate_arr(2), z_value)%>><%=z%>일</option>
								<%next%>
								</select>
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="a_noword">금지단어</label></th>
							<td class="left"><input type="text" size="65" title="금지단어 입력" id="a_noword" name="a_noword" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_noword%>" tabindex="<%=getTabIndex()%>"/><span class="text1">* 사용 예) 욕설, 비방, 광고,</span></td>
						</tr>

						<tr>
							<th scope="row">글등록시 메일발송</th>
							<td class="left">
								<label for="a_sendmail_Y"><input type="radio" id="a_sendmail_Y" name="a_sendmail" value="Y" title="사용 선택"  <%if a_sendmail = "Y" Then response.write "checked='checked'" End If %> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_sendmail_N"><input type="radio" id="a_sendmail_N" name="a_sendmail" value="N" title="사용안함 선택"  <%if a_sendmail = "N" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;
								<label for="a_sendmail_addr">이메일주소</label> : <input type="text" size="20" title="이메일주소 입력" id="a_sendmail_addr" name="a_sendmail_addr" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_sendmail_addr%>"/>
							</td>
						</tr>

						<tr>
							<th scope="row">글등록시 SMS발송</th>
							<td class="left">
								<label for="a_sendsms_Y"><input type="radio" id="a_sendsms_Y" name="a_sendsms" value="Y" title="사용 선택"  <%if a_sendsms = "Y" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>"  />사용</label>
								<label for="a_sendsms_N"><input type="radio" id="a_sendsms_N" name="a_sendsms" value="N" title="사용안함 선택" <%if a_sendsms = "N" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>"  />사용안함</label>
								&nbsp;&nbsp;
								<label for="a_sendsms_addr">핸드폰번호</label> : <input type="text" size="20" title="핸드폰번호 입력" id="a_sendsms_addr" name="a_sendsms_addr" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_sendsms_addr%>"/><span class="text1">* '-' 는 제외</span>
							</td>
						</tr>


						</table>
					</fieldset>








					<h2 class="<%=skin%>">디자인관리<span>게시판 디자인정보를 입력해주세요.</span></h2>
					<fieldset>
						<legend>디자인정보 서식 작성</legend>
						<table cellspacing="0" class="bbs_<%=skin%>" summary="신규 게시판 디자인정보를 위한 입력 양식입니다.">
						<caption>기능정보 서식</caption>
						<colgroup>
						<col width="140" />
						<col width="580" />
						</colgroup>
						<tr>
							<th scope="row"><label for="a_width">게시판 폭(너비)</label></th>
							<td class="left"><input type="text" size="4" title="게시판 폭(너비) 입력" id="a_width" name="a_width" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_width%>" maxlength="5" tabindex="<%=getTabIndex()%>" /> <span class="text1"> * 퍼센트(%)단위 설정은 꼭 <strong>%</strong>를 넣어주세요. 숫자만 입력하시면 픽셀(pixel)단위로 설정됩니다.</span></td>
						</tr>

						<tr>
							<th scope="row"><label for="a_displaysu">페이지당 게시물수</label></th>
							<td class="left"><input type="text" size="4" title="페이지별 게시물출력수 입력" id="a_displaysu" name="a_displaysu" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_displaysu%>" maxlength="5" tabindex="<%=getTabIndex()%>" /> 개 </td>
						</tr>

						<!-- <tr>
							<th scope="row">내용보기 출력형식</th>
							<td class="left">
								<label for="a_viewType_Y"><input type="radio" id="a_viewType_Y" name="a_viewType" value="1" title="내용보기 선택" <?if ($a_viewType == "1") { echo("checked='checked'"); } ?> tabindex="<%=getTabIndex()%>" />내용보기</label>
								<label for="a_viewType_N"><input type="radio" id="a_viewType_N" name="a_viewType" value="2" title="내용보기+목록 선택" <?if ($a_viewType == "2") { echo("checked='checked'"); } ?> tabindex="<%=getTabIndex()%>" />내용보기+목록</label>
							</td>
						</tr> -->
						<tr>
							<th scope="row"><label for="a_lt_a">목록보기 출력형식</label></th>
							<td class="left">
								<input type="checkbox" id="a_lt_a" name="a_lt_a" value="Y" title="작성자 선택" <%=chkRadio(a_lt_a, "Y")%> tabindex="<%=getTabIndex()%>" />작성자 
								<input type="checkbox" id="a_lt_b" name="a_lt_b" value="Y" title="작성일 선택" <%=chkRadio(a_lt_b, "Y")%> tabindex="<%=getTabIndex()%>" />작성일
								<input type="checkbox" id="a_lt_c" name="a_lt_c" value="Y" title="조회 선택" <%=chkRadio(a_lt_c, "Y")%> tabindex="<%=getTabIndex()%>" />조회
								<input type="checkbox" id="a_lt_e" name="a_lt_e" value="Y" title="파일 선택" <%=chkRadio(a_lt_e, "Y")%> tabindex="<%=getTabIndex()%>" />파일
								<input type="checkbox" id="a_lt_f" name="a_lt_f" value="Y" title="답변 선택" <%=chkRadio(a_lt_f, "Y")%> tabindex="<%=getTabIndex()%>" />답변
							</td>
						</tr>

						<tr>
							<th scope="row"><label for="a_topinclude">상단 파일</label></th>
							<td class="left"><input type="text" size="90" id="a_topinclude" name="a_topinclude" title="상단에 삽입할 파일(경로포함) 입력" class="input_box_file" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_topinclude%>" maxlength="100" tabindex="<%=getTabIndex()%>"/><br /><span class="text1">* 시작경로는 루트(/)로 설정된 경로부터 시작됩니다.</span></td>
						</tr>

						<tr>
							<th scope="row"><label for="a_header">상단 HTML 정보</label></th>
							<td class="left"><textarea cols="90" rows="6" id="a_header" name="a_header" title="상단 HTML 입력" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" tabindex="<%=getTabIndex()%>"><%=a_header%></textarea><br /><span class="text1">* HTML태그사용은 가능하나, &lt; script &gt; 는 사용불가합니다.</span></td>
						</tr>
						
						<tr>
							<th scope="row"><label for="a_writecontent">글쓰기기본내용</label></th>
							<td class="left"><textarea cols="90" rows="6" id="a_writecontent" name="a_writecontent" title="글쓰기기본내용 입력" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" tabindex="<%=getTabIndex()%>"><%=a_writecontent%></textarea></td>
						</tr>
						<tr>
							<th scope="row"><label for="a_btminclude">하단 파일</label></th>
							<td class="left"><input type="text" size="90" id="a_btminclude" name="a_btminclude" title="하단에 삽입할 파일(경로포함) 입력" class="input_box_file" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=a_btminclude%>"  maxlength="100" tabindex="<%=getTabIndex()%>"/><br /><span class="text1">* 시작경로는 루트(/)로 설정된 경로부터 시작됩니다.</span></td>
						</tr>
						<tr>
							<th scope="row"><label for="a_detail">하단 HTML 정보</label></th>
							<td class="left"><textarea cols="90" rows="6" id="a_detail" name="a_detail" title="하단 HTML 입력" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" tabindex="<%=getTabIndex()%>"><%=a_detail%></textarea><br /><span class="text1">* HTML태그사용은 가능하나, &lt; script &gt; 는 사용불가합니다.</span></td>
						</tr>
						
						
						</table>
					</fieldset>




					<div class="contoll_box">
						<div id="<%=skin%>_bt"><span class="button"><input type="submit" value="등록" tabindex="<%=getTabIndex()%>"/></span>  <span class="button"><input type="button" value="취소" onclick="page_go1('list.asp');" tabindex="<%=getTabIndex()%>"/></span></div>
					</div>

				</form>

			</div>
			<!-- 내용들어가는곳 -->

		</div>
		<!-- //내용영역 -->

		<form id= "frm_member" method='post' action="">
			<div>
				<input type="hidden" name="sch_member" />
				<input type="hidden" name="sch_field" />
			</div>
		</form>

<!--#include virtual="/manager/common/file/sub_bottom.asp"-->