<!--#include virtual ="/manager/common/file/basic_top.asp" -->
<%'//*************************************************************************************%>
<script type="text/javascript" src="/common/js/01info.js"></script>
<%'//*************************************************************************************%>
<!--#include file ="config.asp" -->
<%
Dim R_Fields, R_tablename_str, R_WHERE_str
Dim sc_idx, sc_sitename, sc_sitename_en, sc_ademail, sc_url, sc_company, sc_logo, sc_uptae, sc_jongmok, sc_zipcode, sc_addr1, sc_addr2, sc_no, sc_no2, sc_ceo, sc_phone1, sc_phone2, sc_phone3, sc_fax1, sc_fax2, sc_fax3, sc_title, sc_skeyword, sc_hdate1, sc_hdate2, sc_hdd, sc_copyright, sc_logouttime, sc_wdate, sc_date_chk, sc_hdd_chk

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


R_Fields = "sc_idx, sc_sitename, sc_sitename_en, sc_ademail, sc_url, sc_company, sc_logo, sc_uptae, sc_jongmok, sc_zipcode, sc_addr1, sc_addr2, sc_no, sc_no2, sc_ceo, sc_phone1, sc_phone2, sc_phone3, sc_fax1, sc_fax2, sc_fax3, sc_title, sc_skeyword, sc_hdate1, sc_hdate2, sc_hdd, sc_copyright, sc_logouttime, sc_wdate, sc_date_chk, sc_hdd_chk"

R_tablename_str = "site_config"
R_WHERE_str = " WHERE sc_idx=1"

Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)



If sc_hdate1 = "" then

	sc_hdate1_y = Year(now)
	sc_hdate1_m = Right( "0" & Month(now), 2 )
	sc_hdate1_d = Right( "0" & day(now), 2 )

else

	sc_hdate1_arr	= Split(sc_hdate1, "-")

	sc_hdate1_y = sc_hdate1_arr(0)
	sc_hdate1_m = sc_hdate1_arr(1)
	sc_hdate1_d = sc_hdate1_arr(2)

End if


If sc_hdate2 = "" then
	sc_hdate2_temp = DateSerial( Year(now), Month(now)+2, Day(now) )
	sc_hdate2_y = Year(sc_hdate2_temp)
	sc_hdate2_m = Right( "0" & Month(sc_hdate2_temp), 2 )
	sc_hdate2_d = Right( "0" & day(sc_hdate2_temp), 2 )

else

	sc_hdate2_arr	= Split(sc_hdate2 , "-" )

	sc_hdate2_y = sc_hdate2_arr(0)
	sc_hdate2_m = sc_hdate2_arr(1)
	sc_hdate2_d = sc_hdate2_arr(2)

End if

%>

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

			<div id="contents_head"> 
				<div id="contents_title">
					<img src="/manager/img/tit_ic04.gif" width="22" height="21" class="<%=skin%> center" alt="" /><h1><span>기본정보 설정</span></h1>
				</div>
				<div id="location">
					<a href="/manager/" tabindex="<%=getTabIndex()%>">Home</a> &gt; <a href="/manager/content/01info/write.asp" tabindex="<%=getTabIndex()%>">기본환경관리</a> &gt; <a href="/manager/content/01info/write.asp" tabindex="<%=getTabIndex()%>">기본관리</a> &gt; <a href="/manager/content/01info/write.asp" class="now" tabindex="<%=getTabIndex()%>">기본정보 설정</a> 
					
				</div>
			</div>

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


				<form id="frm" method="post" action="write_ok.asp" >
				<div><input type="hidden" name="sc_idx" value="<%=sc_idx%>" /><!-- (수정일때사용) --></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="sc_sitename">사이트명</label></th>
							<td class="left"><input type="text" size="23" title="사이트명 입력" id="sc_sitename" name="sc_sitename" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_sitename%>" maxlength="100" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row"><label for="sc_sitename_en">영문명</label></th>
							<td class="left"><input type="text" size="23" title="사이트 영문명 입력" id="sc_sitename_en" name="sc_sitename_en" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_sitename_en%>" maxlength="100" tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row"><label for="sc_url">사이트 URL</label></th>
							<td class="left"><span class="eng">http://</span> <input type="text" size="18" title="사이트 URL 입력" id="sc_url" name="sc_url" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_url%>" maxlength="150" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row"><label for="sc_ademail">관리자 E-mail</label></th>
							<td class="left"><input type="text" size="23" title="관리자 E-mail 입력" id="sc_ademail" name="sc_ademail" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_ademail%>" maxlength="100" 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"><label for="sc_company">상호명</label></th>
							<td colspan="3" class="left"><input type="text" size="40" title="상호명 입력" id="sc_company" name="sc_company" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_company%>" maxlength="50" tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row"><label for="sc_uptae">업태</label></th>
							<td class="left"><input type="text" size="23" title="업태 입력" id="sc_uptae" name="sc_uptae" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_uptae%>" maxlength="30" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row"><label for="sc_jongmok">종목</label></th>
							<td class="left"><input type="text" size="23" title="종목 입력" id="sc_jongmok" name="sc_jongmok" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_jongmok%>" maxlength="30" tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row"><label for="m_zip1">사업장주소</label></th>
							<td colspan="3" class="left">


								<div id="Addr_search1">

									<input type="button" value="우편번호찾기" class="ct_bt01" onclick="document.getElementById('Addr_search1').style.display='none';document.getElementById('Addr_search2').style.display='block';document.getElementById('frm').ZC_SG.focus();" tabindex="<%=getTabIndex()%>"/>

									<input type="text" size="4" title="우편번호 첫번째 3자리" id="m_zip1" name="m_zip1" class="input_box"  value="<%=Left(sc_zipcode,3)%>" tabindex="<%=getTabIndex()%>" />
									- 
									<input type="text" size="4" title="우편번호 두번째 3자리" id="m_zip2" name="m_zip2" class="input_box"  value="<%=right(sc_zipcode,3)%>" tabindex="<%=getTabIndex()%>" />

									<div class="pt3">
									<input type="text" size="26" title="주소" id="m_addr1" name="m_addr1" class="input_box" value="<%=sc_addr1%>" tabindex="<%=getTabIndex()%>" />
									<input type="text" size="60" title="상세주소" id="m_addr2" name="m_addr2" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_addr2%>" maxlength="100" tabindex="<%=getTabIndex()%>" /><br />
									</div>

								</div>



								
								<!-- 우편번호 찾기 부분 -->
								<div id="Addr_search2" class="disnone" >
									<div class="post_write"><label for="ZC_SG">동이름</label> :
										<input type="text" id="ZC_SG" name="ZC_SG" 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()%>" />
										<input type="button" value=" 취소 " class="ct_bt01" onclick="document.getElementById('Addr_search1').style.display='block';document.getElementById('Addr_search2').style.display='none';"  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").ZC_SG.value) {

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

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

										document.getElementById("frm_addr").ZC_SG.value = document.getElementById("frm").ZC_SG.value;

										document.getElementById("frm_addr").action = "/manager/content/01info/addr_search.asp";
										document.getElementById("frm_addr").target = "Search_Iframe";

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

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

								//-->
								</script>
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="sc_no">사업자번호</label></th>
							<td class="left"><input type="text" size="23" title="사업자번호 입력" id="sc_no" name="sc_no" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_no%>" maxlength="20" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row"><label for="sc_no2">통신판매신고번호</label></th>
							<td class="left"><input type="text" size="23" title="통신판매신고번호 입력" id="sc_no2" name="sc_no2" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_no2%>" maxlength="20" tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row"><label for="sc_phone1">전화번호</label></th>
							<td class="left"><input type="text" size="4" title="연락처 첫번째 입력" id="sc_phone1" name="sc_phone1" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_phone1%>" maxlength="4" tabindex="<%=getTabIndex()%>" /> - <input type="text" size="4" title="연락처 두번째 입력" id="sc_phone2" name="sc_phone2" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_phone2%>" maxlength="4" tabindex="<%=getTabIndex()%>" /> - <input type="text" size="4" title="연락처 세번째 입력" id="sc_phone3" name="sc_phone3" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_phone3%>" maxlength="4" tabindex="<%=getTabIndex()%>" /></td>
							<th scope="row"><label for="sc_fax1">팩스번호</label></th>
							<td class="left"><input type="text" size="4" title="팩스번호 첫번째 입력" id="sc_fax1" name="sc_fax1" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_fax1%>" maxlength="4" tabindex="<%=getTabIndex()%>" /> - <input type="text" size="4" title="팩스번호 두번째 입력" id="sc_fax2" name="sc_fax2" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_fax2%>" maxlength="4" tabindex="<%=getTabIndex()%>" /> - <input type="text" size="4" title="팩스번호 세번째 입력" id="sc_fax3" name="sc_fax3" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_fax3%>" maxlength="4" 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="sc_title">사이트 타이틀</label></th><!--nowrap-->
							<td class="left"><input type="text" size="90" title="사이트 타이틀 입력" id="sc_title" name="sc_title" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_title%>" maxlength="100" tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row"><label for="sc_skeyword">검색엔진 키워드</label></th>
							<td class="left"><input type="text" size="90" title="검색엔진 키워드 입력" id="sc_skeyword" name="sc_skeyword" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_skeyword%>" maxlength="1000" 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="sc_hdate1_y">사용기간</label></th>
							<td class="left">
								<select id="sc_hdate1_y" name="sc_hdate1_y" title="시작 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z = Year(now)-3 To Year(now) + 5%>
									<option value="<%=z%>" <%=chkSelect(sc_hdate1_y, z)%>><%=z%>년</option>
									<%next%>
								</select>
								<select id="sc_hdate1_m" name="sc_hdate1_m"  title="시작 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z=1 To 12%>
									<option value="<%=z%>" <%=chkSelect(sc_hdate1_m, z)%>><%=z%>월</option>
									<%next%>
								</select>
								<select id="sc_hdate1_d" name="sc_hdate1_d"   title="시작 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z=1 To 31 %>
									<option value="<%=z%>" <%=chkSelect(sc_hdate1_d, z)%>><%=z%>일</option>
									<%next%>
								</select>

								~

								<select id="sc_hdate2_y" name="sc_hdate2_y" title="종료 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z = Year(now)-3 To Year(now) + 5%>
									<option value="<%=z%>" <%=chkSelect(sc_hdate2_y, z)%>><%=z%>년</option>
									<%next%>
								</select>
								<select id="sc_hdate2_m" name="sc_hdate2_m"  title="종료 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z=1 To 12%>
									<option value="<%=z%>" <%=chkSelect(sc_hdate2_m, z)%>><%=z%>월</option>
									<%next%>
								</select>
								<select id="sc_hdate2_d" name="sc_hdate2_d"   title="종료 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
									<%For z=1 To 31 %>
									<option value="<%=z%>" <%=chkSelect(sc_hdate2_d, z)%>><%=z%>일</option>
									<%next%>
								</select>

								&nbsp;&nbsp;<input type="checkbox" name="sc_date_chk" onclick="date_chk();" value="Y" <%=chkRadio(sc_date_chk, "Y")%>   tabindex="<%=getTabIndex()%>" /> 무제한

							</td>
						</tr>
						<!-- <tr>
							<th scope="row"><label for="sc_logouttime">자동로그아웃</label></th>
							<td class="left">로그인 후 <input type="text" size="4" title="자동로그아웃(분) 입력" id="sc_logouttime" name="sc_logouttime" class="input_box" onfocus="focus_on1_<?=$skin?>(this);" onblur="focus_off1(this);" value="<?=$sc_logouttime?>" maxlength="4" tabindex="<?=getTabIndex()?>" /> 분간 클릭이 없으면 자동로그아웃됩니다.<span class="text1">* 공란으로 두면 시간제한없음 </span></td>
						</tr> -->
						<tr>
							<th scope="row"><label for="sc_hdd">사용용량</label></th>
							<td class="left"><input type="text" size="4" title="사용용량 입력" id="sc_hdd" name="sc_hdd" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=sc_hdd%>" maxlength="3" tabindex="<%=getTabIndex()%>" /> <span class="eng">G Byte</span> <span class="text1">* 공란으로 두면 기본 1GByte </span> 
							&nbsp;&nbsp;<input type="checkbox" name="sc_hdd_chk" onclick="hdd_chk();" value="Y" <%=chkRadio(sc_hdd_chk, "Y")%> tabindex="<%=getTabIndex()%>" /> 무제한
							</td>
						</tr>
						</table>
					</fieldset>

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

				</form>

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

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

		<form id= "frm_addr" method='post' action="">
			<div>
				<input type="hidden" name="ZC_SG" />
			</div>
		</form>

		<script type='text/javascript'>
		<!--
			date_chk();
			hdd_chk();
		//-->
		</script>

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