<!--#include virtual="/common/lib/dbcon.asp"-->
<!--#Include virtual="/common/lib/func.asp"-->
<%
Dim adr_idx, sql
adr_idx = InputValue( request.querystring("adr_idx") )

'그룹리스트
sql = "select bdm_idx, bdm_menuname from bd_address where bdm_id = '" & session("ss_m_id") & "'"
Set bdmRs = Dbcon.Execute( sql )
If bdmRs.bof Or bdmRs.eof Then
	bdm_data = Null
Else
	bdm_data = bdmRs.getrows
End If
Set bdmRs = Nothing


r_fields_s = "bdm_idx,adr_m_id, adr_name, adr_email, adr_mobile1, adr_mobile2, adr_mobile3, adr_adr1, adr_adr2, adr_phone1, adr_phone2, adr_phone3, adr_homepage, adr_b_day, adr_company, adr_jikgub, adr_c_homepage, adr_c_phone1, adr_c_phone2, adr_c_phone3, adr_c_fax1, adr_c_fax2, adr_c_fax3, adr_c_memo"
Call SelectQuery(r_fields_s, "bd_address_page", "where adr_idx = '" & adr_idx & "'")


%>
			<input type="hidden" name="adr_idx" value="<%=adr_idx%>" />
			<ul class="frm">
				<li><input type="text" class="inp_basic" name="adr_name" value="<%=adr_name%>" maxlength="30" /></li>
				<li><input type="text" class="inp_basic" value="<%=adr_mobile1 & adr_mobile2 & adr_mobile3%>" name="adr_mobile" placeholder="연락처" maxlength="12" onkeyup="SetNum(this);" /></li>
				<li><input type="text" class="inp_basic" name="adr_c_memo" value="나눔아이앤씨" /></li>
				<li>
					<select class="select_basic" id="bdm_idx" name="bdm_idx">
						<option value="0">그룹미지정</option>
						<%
							If Not(IsNull(bdm_data)) then
								For i = 0 To UBound(bdm_data, 2)
						%>
								<option value="<%=bdm_data(0,i)%>" <%=chkSelect( bdm_data(0,i), bdm_idx )%>><%=bdm_data(1,i)%></option>
						<%
								Next
							End if
						%>
					</select>
				</li>
			</ul>
			<div class="btngroup">
				<ul class="btn_nrm column2">
					<li><input type="submit" class="nrm1" value="수정" style="width:160px;" /></li>
					<li><a href="#close" onclick="closeArea();" class="nrm2">취소</a></li>
				</ul>
			</div>
<script type="text/javascript">
$(function(){
	clickArea(detaillayer10,0);
});
</script>