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

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

@ -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
// 희망배송일을 사용한다면