도로명 주소 표기법에 따른 수정

This commit is contained in:
chicpro
2014-01-03 15:54:46 +09:00
parent 4ff183eb2b
commit 46b20261ff
15 changed files with 66 additions and 39 deletions

View File

@ -45,7 +45,7 @@ for($i=1; $row=sql_fetch_array($result); $i++) {
$worksheet->write($i, 4, $row['od_b_name']);
$worksheet->write($i, 5, $row['od_b_tel']);
$worksheet->write($i, 6, $row['od_b_hp']);
$worksheet->write($i, 7, $row['od_b_addr1'].' '.$row['od_b_addr2']);
$worksheet->write($i, 7, print_address($row['od_b_addr1'], $row['od_b_addr2']));
$worksheet->write($i, 8, $row['od_delivery_company']);
$worksheet->write($i, 9, $row['od_invoice']);
}

View File

@ -735,12 +735,13 @@ $result = sql_query($sql);
-
<label for="od_zip2" class="sound_only">우편번호 뒷자리</label>
<input type="text" name="od_zip2" value="<?php echo $od['od_zip2']; ?>" id="od_zip2" required class="frm_input required" size="4">
<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform3&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_jibeon=od_addr_jibeon" id="od_zip_find" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform3&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_addr3=od_addr3&amp;frm_jibeon=od_addr_jibeon" id="od_zip_find" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<span id="od_win_zip" style="display:block"></span>
<label for="od_addr1" class="sound_only">주소</label>
<input type="text" name="od_addr1" value="<?php echo $od['od_addr1']; ?>" id="od_addr1" required class="frm_input required" size="50"><br>
<input type="text" name="od_addr1" value="<?php echo $od['od_addr1']; ?>" id="od_addr1" required class="frm_input required" size="35"> <span id="od_addr3"></span>
<input type="hidden" name="od_addr3" value=""><br>
<label for="od_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_addr2" value="<?php echo $od['od_addr2']; ?>" id="od_addr2" required class="frm_input required" size="50">
<input type="text" name="od_addr2" value="<?php echo $od['od_addr2']; ?>" id="od_addr2" class="frm_input" size="50">
<input type="hidden" name="od_addr_jibeon" value="<?php echo $od['od_addr_jibeon']; ?>"><br>
<span id="od_addr_jibeon">지번주소 : <?php echo $od['od_addr_jibeon']; ?></span>
</tr>
@ -788,11 +789,12 @@ $result = sql_query($sql);
-
<label for="od_b_zip2" class="sound_only">우편번호 뒷자리</label>
<input type="text" name="od_b_zip2" value="<?php echo $od['od_b_zip2']; ?>" id="od_b_zip2" required class="frm_input required" size="4">
<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform3&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_jibeon=od_b_addr_jibeon" id="od_zip_findb" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform3&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_addr3=od_b_addr3&amp;frm_jibeon=od_b_addr_jibeon" id="od_zip_findb" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<label for="od_b_addr1" class="sound_only">주소</label>
<input type="text" name="od_b_addr1" value="<?php echo $od['od_b_addr1']; ?>" id="od_b_addr1" required class="frm_input required" size="50"><br>
<input type="text" name="od_b_addr1" value="<?php echo $od['od_b_addr1']; ?>" id="od_b_addr1" required class="frm_input required" size="35"> <span id="od_b_addr3"></span>
<input type="hidden" name="od_b_addr3" value=""><br>
<label for="od_b_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_b_addr2" value="<?php echo $od['od_b_addr2']; ?>" id="od_b_addr2" required class="frm_input required" size="50">
<input type="text" name="od_b_addr2" value="<?php echo $od['od_b_addr2']; ?>" id="od_b_addr2" class="frm_input" size="50">
<input type="hidden" name="od_b_addr_jibeon" value="<?php echo $od['od_b_addr_jibeon']; ?>"><br>
<span id="od_b_addr_jibeon">지번주소 : <?php echo $od['od_b_addr_jibeon']; ?></span>
</td>

View File

@ -3,6 +3,9 @@ $sub_menu = '400400';
include_once('./_common.php');
if($_POST['mod_type'] == 'info') {
$od_addr2 = get_address2($od_addr2, $od_addr3);
$od_b_addr2 = get_address2($od_b_addr2, $od_b_addr3);
$sql = " update {$g5['g5_shop_order_table']}
set od_name = '$od_name',
od_tel = '$od_tel',

View File

@ -69,7 +69,7 @@ if ($csv == 'csv')
$ct_send_cost = iconv_euckr($row['ct_send_cost'] ? '착불' : '선불');
echo '"'.$row['od_b_zip1'].'-'.$row['od_b_zip2'].'"'.',';
echo '"'.$row['od_b_addr1'].' '.$row['od_b_addr2'].'"'.',';
echo '"'.print_address($row['od_b_addr1'], $row['od_b_addr2']).'"'.',';
echo '"'.$row['od_b_name'].'"'.',';
//echo '"'.multibyte_digit((string)$row[od_b_tel]).'"'.',';
//echo '"'.multibyte_digit((string)$row[od_b_hp]).'"'.',';
@ -138,7 +138,7 @@ if ($csv == 'xls')
$row = array_map('iconv_euckr', $row);
$worksheet->write($i, 0, $row['od_b_zip1'].'-'.$row['od_b_zip2']);
$worksheet->write($i, 1, $row['od_b_addr1'].' '.$row['od_b_addr2']);
$worksheet->write($i, 1, print_address($row['od_b_addr1'], $row['od_b_addr2']));
$worksheet->write($i, 2, $row['od_b_name']);
$worksheet->write($i, 3, $row['od_b_tel']);
$worksheet->write($i, 4, $row['od_b_hp']);
@ -146,7 +146,7 @@ if ($csv == 'xls')
$worksheet->write($i, 6, $row['ct_qty']);
$worksheet->write($i, 7, $row['ct_option']);
$worksheet->write($i, 8, $ct_send_cost);
$worksheet->write($i, 9, $row['it_id']);
$worksheet->write($i, 9, ' '.$row['it_id']);
$worksheet->write($i, 10, ' '.$row['od_id']);
$worksheet->write($i, 11, $row['od_invoice']);
$worksheet->write($i, 12, $row['od_memo']);
@ -218,8 +218,8 @@ if (mysql_num_rows($result) == 0)
$row1 = sql_fetch($sql1);
// 1.03.02
$row1['od_addr'] = '('.$row1['od_zip1'].'-'.$row1['od_zip2'].') '.$row1['od_addr1'].' '.$row1['od_addr2'];
$row1['od_b_addr'] = '('.$row1['od_b_zip1'].'-'.$row1['od_b_zip2'].') '.$row1['od_b_addr1'].' '.$row1['od_b_addr2'];
$row1['od_addr'] = '('.$row1['od_zip1'].'-'.$row1['od_zip2'].') '.print_address($row1['od_addr1'], $row1['od_addr2']);
$row1['od_b_addr'] = '('.$row1['od_b_zip1'].'-'.$row1['od_b_zip2'].') '.print_address($row1['od_b_addr1'], $row1['od_b_addr2']);
$row1['od_addr'] = ($row1['od_addr']) ? $row1['od_addr'] : '입력안함';
$row1['od_tel'] = ($row1['od_tel']) ? $row1['od_tel'] : '입력안함';

View File

@ -41,7 +41,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
<dt>회원가입일시</dt>
<dd><?php echo $member['mb_datetime']; ?></dd>
<dt>주소</dt>
<dd><?php echo sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']); ?></dd>
<dd><?php echo sprintf("(%s-%s)", $member['mb_zip1'], $member['mb_zip2']).' '.print_address($member['mb_addr1'], $member['mb_addr2']); ?></dd>
</dl>
</section>

View File

@ -365,7 +365,7 @@ ob_end_clean();
<th scope="row"><label for="od_hp">핸드폰</label></th>
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_jibeon=od_addr_jibeon'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_addr3=od_addr3&amp;frm_jibeon=od_addr_jibeon'; ?>
<tr>
<th scope="row">주소</th>
<td>
@ -377,8 +377,10 @@ ob_end_clean();
<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<label for="od_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr1" value="<?php echo $member['mb_addr1'] ?>" id="od_addr1" required class="frm_input frm_address required">
<label for="od_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr2" value="<?php echo $member['mb_addr2'] ?>" id="od_addr2" required class="frm_input frm_address required">
<span id="od_addr3"></span>
<input type="hidden" name="od_addr3" value="">
<label for="od_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_addr2" value="<?php echo $member['mb_addr2'] ?>" id="od_addr2" class="frm_input frm_address">
<input type="hidden" name="od_addr_jibeon" value="<?php echo $member['mb_addr_jibeon']; ?>">
<span id="od_addr_jibeon"><?php echo ($member['mb_addr_jibeon'] ? '지번주소 : '.$member['mb_addr_jibeon'] : ''); ?></span>
</td>
@ -492,7 +494,7 @@ ob_end_clean();
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_jibeon=od_b_addr_jibeon'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_addr3=od_b_addr3&amp;frm_jibeon=od_b_addr_jibeon'; ?>
<tr>
<th scope="row">주소</th>
<td id="sod_frm_addr">
@ -504,8 +506,10 @@ ob_end_clean();
<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<label for="od_b_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr1" id="od_b_addr1" required class="frm_input frm_address required">
<label for="od_b_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr2" id="od_b_addr2" required class="frm_input frm_address required">
<span id="od_b_addr3"></span>
<input type="hidden" name="od_b_addr3" value="">
<label for="od_b_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_b_addr2" id="od_b_addr2" class="frm_input frm_address">
<input type="hidden" name="od_b_addr_jibeon" value="">
<span id="od_b_addr_jibeon"></span>
</td>
@ -1065,7 +1069,7 @@ $(function() {
gumae2baesong(false);
} else {
if(addr[0] == "new") {
for(i=0; i<8; i++) {
for(i=0; i<9; i++) {
addr[i] = "";
}
}
@ -1501,7 +1505,9 @@ function gumae2baesong(checked) {
f.od_b_zip2.value = f.od_zip2.value;
f.od_b_addr1.value = f.od_addr1.value;
f.od_b_addr2.value = f.od_addr2.value;
f.od_b_addr3.value = f.od_addr3.value;
f.od_b_addr_jibeon.value = f.od_addr_jibeon.value;
document.getElementById("od_b_addr3").innerText = document.getElementById("od_addr3").innerText;
document.getElementById("od_b_addr_jibeon").innerText = document.getElementById("od_addr_jibeon").innerText;
calculate_sendcost(String(f.od_b_zip1.value) + String(f.od_b_zip2.value));
@ -1513,7 +1519,9 @@ function gumae2baesong(checked) {
f.od_b_zip2.value = "";
f.od_b_addr1.value = "";
f.od_b_addr2.value = "";
f.od_b_addr3.value = "";
f.od_b_addr_jibeon.value = "";
document.getElementById("od_b_addr3").innerText = "";
document.getElementById("od_b_addr_jibeon").innerText = "";
}
}

View File

@ -378,6 +378,9 @@ if($default['de_tax_flag_use']) {
$od_free_mny = (int)$_POST['comm_free_mny'];
}
$od_addr2 = get_address2($od_addr2, $od_addr3);
$od_b_addr2 = get_address2($od_b_addr2, $od_b_addr3);
// 주문서에 입력
$sql = " insert {$g5['g5_shop_order_table']}
set od_id = '$od_id',

View File

@ -380,7 +380,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_zip1'], $od['od_zip2'], $od['od_addr1'], $od['od_addr2']); ?></td>
<td><?php echo sprintf("(%s-%s)", $od['od_zip1'], $od['od_zip2']) . print_address($od['od_addr1'], $od['od_addr2']); ?></td>
</tr>
<tr>
<th scope="row">E-mail</th>
@ -416,7 +416,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_b_zip1'], $od['od_b_zip2'], $od['od_b_addr1'], $od['od_b_addr2']); ?></td>
<td><?php echo sprintf("(%s-%s)", $od['od_b_zip1'], $od['od_b_zip2']) . print_address($od['od_b_addr1'], $od['od_b_addr2']); ?></td>
</tr>
<?php
// 희망배송일을 사용한다면

View File

@ -148,7 +148,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_zip1, $od_zip2, $od_addr1, $od_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_zip1, $od_zip2).' '.print_address($od_addr1, $od_addr2); ?></td>
</tr>
<?php if ($od_hope_date) { ?>
@ -181,7 +181,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_b_zip1, $od_b_zip2, $od_b_addr1, $od_b_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_b_zip1, $od_b_zip2_).' '.print_address($od_b_addr1, $od_b_addr2); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">전하실 말씀</th>

View File

@ -148,7 +148,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_zip1, $od_zip2, $od_addr1, $od_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_zip1, $od_zip2).' '.print_address($od_addr1, $od_addr2); ?></td>
</tr>
<?php if ($od_hope_date) { ?>
@ -181,7 +181,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_b_zip1, $od_b_zip2, $od_b_addr1, $od_b_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_b_zip1, $od_b_zip2).' '.print_address($od_b_addr1, $od_b_addr2); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">전하실 말씀</th>

View File

@ -71,7 +71,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_zip1, $od_zip2, $od_addr1, $od_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_zip1, $od_zip2).' '.print_address($od_addr1, $od_addr2); ?></td>
</tr>
<?php if ($od_hope_date) { ?>
@ -105,7 +105,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">주소</th>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s) %s %s", $od_b_zip1, $od_b_zip2, $od_b_addr1, $od_b_addr2); ?></td>
<td style="<?php echo $td_st; ?>"><?php echo sprintf("(%s-%s)", $od_b_zip1, $od_b_zip2).' '.print_address($od_b_addr1, $od_b_addr2); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">전하실 말씀</th>

View File

@ -57,7 +57,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
<dt>회원가입일시</dt>
<dd><?php echo $member['mb_datetime']; ?></dd>
<dt id="smb_my_ovaddt">주소</dt>
<dd id="smb_my_ovaddd"><?php echo sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']); ?></dd>
<dd id="smb_my_ovaddd"><?php echo sprintf("(%s-%s)", $member['mb_zip1'], $member['mb_zip2']).' '.print_address($member['mb_addr1'], $member['mb_addr2']); ?></dd>
</dl>
</section>
<!-- } 회원정보 개요 끝 -->

View File

@ -644,7 +644,7 @@ function get_intall_file()
<th scope="row"><label for="od_hp">핸드폰</label></th>
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_jibeon=od_addr_jibeon'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2&amp;frm_addr3=od_addr3&amp;frm_jibeon=od_addr_jibeon'; ?>
<tr>
<th scope="row">주소</th>
<td>
@ -655,9 +655,11 @@ function get_intall_file()
<input type="text" name="od_zip2" value="<?php echo $member['mb_zip2'] ?>" id="od_zip2" required class="frm_input required" size="3" maxlength="3">
<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<label for="od_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr1" value="<?php echo $member['mb_addr1'] ?>" id="od_addr1" required class="frm_input frm_address required" size="70">
<label for="od_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr2" value="<?php echo $member['mb_addr2'] ?>" id="od_addr2" required class="frm_input frm_address required" size="70">
<input type="text" name="od_addr1" value="<?php echo $member['mb_addr1'] ?>" id="od_addr1" required class="frm_input frm_address required" size="40">
<span id="od_addr3"></span>
<input type="hidden" name="od_addr3" value="">
<label for="od_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_addr2" value="<?php echo $member['mb_addr2'] ?>" id="od_addr2" class="frm_input frm_address" size="70">
<input type="hidden" name="od_addr_jibeon" value="<?php echo $member['mb_addr_jibeon']; ?>">
<span id="od_addr_jibeon"><?php echo ($member['mb_addr_jibeon'] ? '지번주소 : '.$member['mb_addr_jibeon'] : ''); ?></span>
</td>
@ -771,7 +773,7 @@ function get_intall_file()
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_jibeon=od_b_addr_jibeon'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2&amp;frm_addr3=od_b_addr3&amp;frm_jibeon=od_b_addr_jibeon'; ?>
<tr>
<th scope="row">주소</th>
<td id="sod_frm_addr">
@ -782,9 +784,11 @@ function get_intall_file()
<input type="text" name="od_b_zip2" id="od_b_zip2" required class="frm_input required" size="3" maxlength="3">
<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
<label for="od_b_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr1" id="od_b_addr1" required class="frm_input frm_address required" size="70">
<label for="od_b_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr2" id="od_b_addr2" required class="frm_input frm_address required" size="70">
<input type="text" name="od_b_addr1" id="od_b_addr1" required class="frm_input frm_address required" size="40">
<span id="od_b_addr3"></span>
<input type="hidden" name="od_b_addr3" value="">
<label for="od_b_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_b_addr2" id="od_b_addr2" class="frm_input frm_address" size="70">
<input type="hidden" name="od_b_addr_jibeon" value="">
<span id="od_b_addr_jibeon"></span>
</td>
@ -1727,7 +1731,9 @@ function gumae2baesong(checked) {
f.od_b_zip2.value = f.od_zip2.value;
f.od_b_addr1.value = f.od_addr1.value;
f.od_b_addr2.value = f.od_addr2.value;
f.od_b_addr3.value = f.od_addr3.value;
f.od_b_addr_jibeon.value = f.od_addr_jibeon.value;
document.getElementById("od_b_addr3").innerText = document.getElementById("od_addr3").innerText;
document.getElementById("od_b_addr_jibeon").innerText = document.getElementById("od_addr_jibeon").innerText;
calculate_sendcost(String(f.od_b_zip1.value) + String(f.od_b_zip2.value));
@ -1739,7 +1745,9 @@ function gumae2baesong(checked) {
f.od_b_zip2.value = "";
f.od_b_addr1.value = "";
f.od_b_addr2.value = "";
f.od_b_addr3.value = "";
f.od_b_addr_jibeon.value = "";
document.getElementById("od_b_addr3").innerText = "";
document.getElementById("od_b_addr_jibeon").innerText = "";
}
}

View File

@ -373,6 +373,9 @@ if($default['de_tax_flag_use']) {
$od_free_mny = (int)$_POST['comm_free_mny'];
}
$od_addr2 = get_address2($od_addr2, $od_addr3);
$od_b_addr2 = get_address2($od_b_addr2, $od_b_addr3);
// 주문서에 입력
$sql = " insert {$g5['g5_shop_order_table']}
set od_id = '$od_id',

View File

@ -402,7 +402,7 @@ if(openwin != null) {
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_zip1'], $od['od_zip2'], $od['od_addr1'], $od['od_addr2']); ?></td>
<td><?php echo sprintf("(%s-%s)", $od['od_zip1'], $od['od_zip2']).' '.print_address($od['od_addr1'], $od['od_addr2']); ?></td>
</tr>
<tr>
<th scope="row">E-mail</th>
@ -437,7 +437,7 @@ if(openwin != null) {
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_b_zip1'], $od['od_b_zip2'], $od['od_b_addr1'], $od['od_b_addr2']); ?></td>
<td><?php echo sprintf("(%s-%s)", $od['od_b_zip1'], $od['od_b_zip2']).' '.print_address($od['od_b_addr1'], $od['od_b_addr2']); ?></td>
</tr>
<?php
// 희망배송일을 사용한다면