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

<%

' 레코드필드
R_Fields = "mc_idx, mc_agree, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_agree_str, mc_jumin"

sql = "SELECT top 1 "&R_Fields&" FROM member_config"
Set Rs = Dbcon.Execute (sql)
If Not rs.eof Then

	mc_idx			= rs("mc_idx")
	mc_agree		= rs("mc_agree")
	mc_addr			= rs("mc_addr")
	mc_nickname		= rs("mc_nickname")
	mc_phone		= rs("mc_phone")
	mc_mobile		= rs("mc_mobile")
	mc_email		= rs("mc_email")
	mc_homepage		= rs("mc_homepage")
	mc_joinlevel	= rs("mc_joinlevel")
	mc_wdate		= rs("mc_wdate")
	mc_agree_str	= rs("mc_agree_str")
	mc_jumin		= rs("mc_jumin")

Else

	mc_agree		= "N"
	mc_addr			= "N"
	mc_nickname		= "N"
	mc_phone		= "N"
	mc_mobile		= "N"
	mc_email		= "N"
	mc_homepage		= "N"
	mc_joinlevel	= "0"
	mc_wdate		= ""
	mc_agree_str	= ""
	mc_jumin		= "N"

End If
rs.close : Set rs = nothing

%>


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

			<div id="contents_head"> 
				<div id="contents_title">
					<img src="/manager/img/tit_ic03.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/03member/list.asp" tabindex="<%=getTabIndex()%>">회원관리</a> &gt; <a href="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="mc_idx" value="<%=mc_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="580" />
						</colgroup>
						<tr>
							<th scope="row">약관</th>
							<td class="left">
								<label for="mc_agree_Y"><input type="radio" id="mc_agree_Y" name="mc_agree" value="Y" title="사용 선택" onclick="document.getElementById('agree').style.display='block'" <%if mc_agree = "Y" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="mc_agree_N"><input type="radio" id="mc_agree_N" name="mc_agree" value="N" title="사용안함 선택" onclick="document.getElementById('agree').style.display='none'" <%if mc_agree = "N" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>" />사용안함</label>

								<div id="agree" style="display:block;" class="pt4">
									<textarea cols="90" rows="10" id="mc_agree_str" name="mc_agree_str" title="약관 내용 입력" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" tabindex="<%=getTabIndex()%>"><%=mc_agree_str%></textarea>
								</div>

								<%If mc_agree = "N" then%>
								<script type='text/javascript'>
								<!--
									document.getElementById('agree').style.display='none'
								//-->
								</script>
								<%End if%>
							</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="mc_addr_Y"><input type="radio" id="mc_addr_Y" name="mc_addr" value="Y" title="사용 선택" <%if mc_addr = "Y" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="mc_addr_N"><input type="radio" id="mc_addr_N" name="mc_addr" value="N" title="사용안함 선택" <%if mc_addr = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
							<th scope="row">닉네임</th>
							<td class="left">
								<label for="mc_nickname_Y"><input type="radio" id="mc_nickname_Y" name="mc_nickname" value="Y" title="사용 선택" <%if mc_nickname = "Y" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="mc_nickname_N"><input type="radio" id="mc_nickname_N" name="mc_nickname" value="N" title="사용안함 선택" <%if mc_nickname = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row">연락처</th>
							<td class="left">
								<label for="mc_phone_Y"><input type="radio" id="mc_phone_Y" name="mc_phone" value="Y" title="사용 선택" <%if mc_phone = "Y" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="mc_phone_N"><input type="radio" id="mc_phone_N" name="mc_phone" value="N" title="사용안함 선택" <%if mc_phone = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
							<th scope="row">휴대폰</th>
							<td class="left">
								<label for="mc_mobile_Y"><input type="radio" id="mc_mobile_Y" name="mc_mobile" value="Y" title="사용 선택" <%if mc_mobile = "Y" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>"/>사용</label>
								<label for="mc_mobile_N"><input type="radio" id="mc_mobile_N" name="mc_mobile" value="N" title="사용안함 선택" <%if mc_mobile = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row">이메일</th>
							<td class="left">
								<label for="mc_email_Y"><input type="radio" id="mc_email_Y" name="mc_email" value="Y" title="사용 선택" <%if mc_email = "Y" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용</label>
								<label for="mc_email_N"><input type="radio" id="mc_email_N" name="mc_email" value="N" title="사용안함 선택" <%if mc_email = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
							<th scope="row">학력</th>
							<td class="left">
								<label for="mc_homepage_Y"><input type="radio" id="mc_homepage_Y" name="mc_homepage" value="Y" title="사용 선택" <%if mc_homepage = "Y" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>"/>사용</label>
								<label for="mc_homepage_N"><input type="radio" id="mc_homepage_N" name="mc_homepage" value="N" title="사용안함 선택" <%if mc_homepage = "N" Then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />사용안함</label>
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="mc_joinlevel">회원가입시 등급</label></th>
							<td class="left" colspan="3">
								<select id="mc_joinlevel" name="mc_joinlevel" title="회원가입시 등급 선택" tabindex="<%=getTabIndex()%>" >


									<%
										' 회원권한 부분										
										R_Fields_mg = "g_num, g_menuname"
										sql2 = "Select "&R_Fields_mg&" from member_group where g_chk='Y' order by g_code "
										Set Rs = Dbcon.Execute (sql2)

										Do While Not Rs.eof										
									%>
										<option value="<%=Rs("g_num")%>" <%if mc_joinlevel = Rs("g_num") Then response.write "selected='selected'" End if %>><%=Rs("g_menuname")%></option>
									<%
											rs.movenext
										Loop
										rs.close : Set rs = nothing

									%>
									
								</select>
							</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('write.asp');" tabindex="<%=getTabIndex()%>"/></span></div>
					</div>

				</form>

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

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


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