최초등록

This commit is contained in:
sp1000je
2026-02-23 10:01:00 +09:00
commit 7bc9767bf4
3120 changed files with 198447 additions and 0 deletions
+186
View File
@@ -0,0 +1,186 @@
<!--#include virtual="/common/file/head_03address.asp"-->
<%
Dim adr_idx
adr_idx = inputValue( request.queryString("adr_idx") )
'현재경로
prepage = Request.ServerVariables("path_info") & "?" & Request.ServerVariables("query_string")
'그룹리스트
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
'수정
If adr_idx <> "" Then
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 & "'")
End if
%>
<script type="text/javascript">
//<![CDATA[
function sendit(eForm){
if(!valueChk(eForm.adr_name, "이름")){return false;}
if(!valueChk(eForm.adr_mobile1, "휴대폰 첫번째번호")){return false;}
if(!valueChk(eForm.adr_mobile2, "휴대폰 두번째번호")){return false;}
if(!valueChk(eForm.adr_mobile3, "휴대폰 세번째번호")){return false;}
//alert("OK");
}
function valueChk(obj, objName){ //text필드
if(obj.value.split(" ").join("") == ""){
alert(objName+"을(를) 입력하세요");
try{
obj.focus();
return false;
}catch(e){
return false;
}
}else{
return true;
}
}
function SetNum(obj){ //숫자만 입력
val=obj.value;
re=/[^0-9]/gi;
obj.value=val.replace(re,"");
}
//]]>
</script>
<!-- 컨텐츠 부분-->
<td width="720" align="left" valign="top">
<table width="720" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="560" align="left" valign="top" style="padding-bottom:30px;"><img src="/sms_img/sub/stit_03.gif" height="69" /></td>
<td width="300" align="right" valign="bottom" style="padding-bottom:30px;"><img src="/sms_img/sub/home.gif" width="14" height="10" /><img src="/sms_img/sub/arrow.gif" width="14" height="10" /><span class="style11">주소록</span></td>
</tr>
<!-- 핸드폰 전송 부분-->
<tr>
<td colspan="2">
<!-- 쓰기 -->
<link rel="Stylesheet" type="text/css" href="/content/board/nninc_simple/css/common.css" />
<div id="board" style="width:100%;">
<form action="addr_write_ok.asp" method="post" id="frm_pw" name="frm_pw" onsubmit="return sendit(this);">
<div>
<input type="hidden" name="adr_idx" value="<%=adr_idx%>" />
<input type="hidden" name="prepage" value="<%=prepage%>" />
</div>
<div class="guide">
<span><img src="/content/board/nninc_simple/img/ic_vcheck.gif" width="7" height="10" alt="*" /> 표시가 된 곳은 필수 항목입니다.</span>
</div>
<!-- 쓰기 테이블 -->
<div class="table_bwrite">
<table cellspacing="0" >
<caption> 주소록 등록</caption>
<colgroup>
<col width="130" />
<col width="" />
</colgroup>
<thead>
<tr>
<th scope="col" class="th_end" colspan="2">주소록 등록</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><label for="adr_name"><img height="10" width="7" alt="*" src="/content/board/nninc_simple/img/ic_vcheck.gif"/> 이름</label></th>
<td>
<input type="text" size="20" id="adr_name" name="adr_name" class="board_input" value="<%=adr_name%>" maxlength="30" />
</td>
</tr>
<tr>
<th scope="row"><label for="adr_mobile1"><img height="10" width="7" alt="*" src="/content/board/nninc_simple/img/ic_vcheck.gif"/> 휴대폰</label></th>
<td>
<input type="text" size="4" id="adr_mobile1" name="adr_mobile1" class="board_input" value="<%=adr_mobile1%>" maxlength="4" /> -
<input type="text" size="4" id="adr_mobile2" name="adr_mobile2" class="board_input" value="<%=adr_mobile2%>" maxlength="4" /> -
<input type="text" size="4" id="adr_mobile3" name="adr_mobile3" class="board_input" value="<%=adr_mobile3%>" maxlength="4" />
</td>
</tr>
<tr>
<th scope="row"><label for="adr_c_memo">메모</label></th>
<td>
<input type="text" size="60" id="adr_c_memo" name="adr_c_memo" class="board_input" value="<%=adr_c_memo%>" maxlength="100" />
</td>
</tr>
<tr>
<th scope="row"><img height="10" width="7" alt="*" src="/content/board/nninc_simple/img/ic_vcheck.gif"/> <label for="bdm_idx">그룹</label></th>
<td>
<select 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>
</td>
</tr>
</tbody>
</table>
</div>
<!-- //쓰기 테이블 -->
<!-- 버튼 -->
<div class="board_button2">
<span><input id="submitbtn" type="image" src="/content/board/nninc_simple/img/save_bt.gif" alt="저장" /></span>
<span><a href="index.asp" ><img src="/content/board/nninc_simple/img/list_bt.gif" width="62" height="23" alt="목록" /></a></span>
</div>
<!-- //버튼 -->
</form>
</div>
<!-- //쓰기 -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include virtual="/common/file/bottom.asp"-->