크롬80버전 업데이트 영카트5 주요패치 확인! KCP/이니시스/LGU+ 결제 이슈 대응 패치입니다.

일본어 주소 처리하기 > 그누M 팁

그누M 팁

일본어 주소 처리하기 정보

일본어 주소 처리하기

첨부파일

첨부파일 ajaxzip3.js (5.5K) 5회 다운로드 2019-04-23 20:32:48
첨부파일 user.config.php (1.1K) 4회 다운로드 2019-04-23 20:34:44

본문

lib\get_data.lib.php

 

    } else if($lang == 'ja_JP') {

        $str .= '<script src="'.GML_JS_URL.'/ajaxzip3.js" charset="UTF-8"></script>';

        $str .= '<label for="'.$labels['mb_zip'].'" class="sound_only">'.__('Postcode');
        if( $is_required ){
            $str .= '<strong class="sound_only"> '. __('Required').'</strong>';
        }
        $str .= '</label>';
        $str .= '<input type="text" name="mb_zip" value="'.$mb['mb_zip'].'" id="'.$labels['mb_zip'].'" '.$str_required.' '.$attrs['mb_zip'].' placeholder="'.__('Postcode').'" onkeyup=AjaxZip3.zip2addr(this,"","mb_addr1","mb_addr2")>'.PHP_EOL;
        $str .= '<a href="http://www.post.japanpost.jp/zipcode/index.html" target="_blank" class="btn_frmline postcode_btn">'.__('Search').'</a><br>';
        $str .= '<input type="hidden" name="mb_country" value="'.$mb['mb_country'].'" id="'.$labels['mb_country'].'" >';
        $str .= get_city_select("mb_addr1", $mb['mb_addr1'], ' id="'.$labels['mb_addr1'].'" '.$str_required.' '.$attrs['mb_addr1'].' ');
        $str .= '<label for="'.$labels['mb_addr1'].'" class="sound_only">'.__('City').'</label><br>';
        $str .= '<input type="text" name="mb_addr2" value="'.$mb['mb_addr2'].'" id="'.$labels['mb_addr2'].'" '.$str_required.' '.$attrs['mb_addr2'].' placeholder="'.__('Street address 1').'">';
        $str .= '<label for="'.$labels['mb_addr2'].'" class="sound_only">'.__('Street address 1').'</label><br>';
        $str .= '<input type="text" name="mb_addr3" value="'.$mb['mb_addr3'].'" id="'.$labels['mb_addr3'].'" '.$attrs['mb_addr3'].' placeholder="'.__('Street address 2').'">';
        $str .= '<label for="'.$labels['mb_addr3'].'" class="sound_only">'.__('Street address 2').'</label><br>';
    }

 

skin\member\basic\register_form.skin.php

<?php if ($config['cf_use_addr']) { ?>
                <li>
                    <?php if ($config['cf_req_addr']) { ?><strong class="sound_only"><?php e__('Required'); ?></strong><?php }  ?>
                    <?php
                    if($lang == 'ja_JP') {
                        echo get_form_address($member, array(
                        'mb_country'=>'class="frm_input"',
                        'mb_zip'=>'class="frm_input half_input2 '.element_required($config['cf_req_addr']).'" size="5" maxlength="10"',
                        'mb_addr1'=>'class="frm_input '.element_required($config['cf_req_addr']).'"',
                        'mb_addr2'=>'class="frm_input frm_address full_input" size="50"',
                        'mb_addr3'=>'class="frm_input frm_address full_input" size="50"'
                        ),
                        array(
                        'mb_country'=>'reg_mb_country',
                        'mb_zip'=>'reg_mb_zip',
                        'mb_addr1'=>'reg_mb_addr1',
                        'mb_addr2'=>'reg_mb_addr2',
                        'mb_addr3'=>'reg_mb_addr3'
                        ),
                        $config['cf_req_addr']);
                    } else {
                        echo get_form_address($member, array(
                        'mb_country'=>'class="frm_input"',
                        'mb_zip'=>'class="frm_input half_input2 '.element_required($config['cf_req_addr']).'" size="5" maxlength="10"',
                        'mb_addr1'=>'class="frm_input frm_address full_input '.element_required($config['cf_req_addr']).'" size="50"',
                        'mb_addr2'=>'class="frm_input frm_address full_input" size="50"',
                        'mb_addr3'=>'class="frm_input frm_address full_input" size="50"'
                        ),
                        array(
                        'mb_country'=>'reg_mb_country',
                        'mb_zip'=>'reg_mb_zip',
                        'mb_addr1'=>'reg_mb_addr1',
                        'mb_addr2'=>'reg_mb_addr2',
                        'mb_addr3'=>'reg_mb_addr3'
                        ),
                        $config['cf_req_addr']);
                    }
                    ?>
                </li>
                <?php }  ?>

 

파일 업로드

extend/user.config.php

js/ajaxzip3.js

 

 

추천1 비추천0

댓글 전체

전체 23 |RSS
그누M 팁 내용 검색

회원로그인

(주)에스아이알소프트 (06253) 서울특별시 강남구 도곡로1길 14, 6층 624호 (역삼동, 삼일프라자) 대표메일:admin@sir.kr
사업자등록번호:217-81-36347 대표:홍석명 통신판매업신고번호:2014-서울강남-02098호 개인정보보호책임자:이총

© SIRSOFT