ÿØÿà JFIF ` ` ÿþ
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 : |
<?php include $_SERVER['DOCUMENT_ROOT'] . '/include/base.php'; include $_SERVER['DOCUMENT_ROOT'] . '/process/process_common.php'; $gUid = (int) $_GET['g_uid']; if(!$gUid){ goMain(); } $goodInfo = getGoodInfo($gUid); $tab = $goodInfo['tab']; // [movie_i] => https://www.youtube.com/watch?v=TXQPQ-f5_UY $categoryImg = getFirstCategoryImg($currentFirstCategory); $firstOptionName = $goodInfo['option']['op_nm']; $dtid = getGoodFirstDateDtid($gUid, $firstOptionName); //리뷰데이터 $reviewData = getReviewData($gUid); // p($reviewData); ?> <!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/product-detail.css?ver=<?=time()?>"> <script type="text/javascript" src="/js/TO.lib.js"></script> <script type="text/javascript" src="/js/common.js"></script> <script type="text/javascript" src="/js/common.lib.js"></script> <script type="text/javascript" src="/js/Validator.js"></script> <script type="text/javascript" src="/js/link.js"></script> <script type="text/javascript"> $(function(){ $("#date_detail_ajax").load("/process/calendar.php?g_uid=<?=$gUid?>&d_uid=<?=$d_uid?>&dtid=<?=$dtid?>&_mDbpage=info_main"); }); </script> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/include/header.php'; // p($categoryImg['categoryPcImg']); // p($categoryImg['categoryMoImg']); ?> <!--서브페이지 배너--> <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" data-aos="fade-up" data-aos-duration="2000"> <div class="wrap_inner inner"> <!-- 상단 타이틀 --> <h1 class="sub_title text-center"> <?=$goodInfo['g_title']?> </h1> <div class="top_titlebox"> <p class="desc"> <?=$goodInfo['g_short_brief']?> </p> </div> <!-- 상단 이미지 --> <div class="top_banner"> <div class="swiper banner_slider"> <div class="swiper-wrapper"> <?php if($goodInfo['g_image1']){ ?> <div class="swiper-slide"> <img src="/FileData/good/<?=$goodInfo['g_image1']?>" alt="<?=$goodInfo['g_title']?>" class="img-full"> </div> <?php } $imgAltNo = 1; foreach($goodInfo['gallery'] as $item){ ?> <div class="swiper-slide"> <img src="/FileData/good_img/<?=$item['ImgTitle']?>" alt="product image <?=$imgAltNo?>" class="img-full"> </div> <?php $imgAltNo++; } ?> </div> <div class="swiper-button-next slider_next"> <img src="/img/sub/product-detail/swiper_next.svg" alt="" class="img-full"> </div> <div class="swiper-button-prev slider_prev"> <img src="/img/sub/product-detail/swiper_prev.svg" alt="" class="img-full"> </div> </div> <div class="banner_grid"> <?php $imgAltNo = 1; foreach($goodInfo['gallery'] as $item){ ?> <div class="grid_item"> <img src="/FileData/good_img/<?=$item['ImgTitle']?>" alt="product image <?=$imgAltNo?>" class="img-full"> </div> <?php $imgAltNo++; } ?> </div> </div> <div class="contents"> <div class="cont_wrap"> <!-- 상품 정보 --> <div class="prd_box prd_info_box"> <div class="sub_titbox"> <p class="txt"><?=_e("상품 정보")?></p> </div> <div class="border_box"> <div class="info_wrap"> <div class="info_box"> <?php for($i = 1; $i <= 3; $i++){ if($goodInfo['product_info_label_'.$i] && $goodInfo['product_info_value_'.$i]){ ?> <div class="info_item"> <div class="sub"> <?=$goodInfo['product_info_label_'.$i]?> </div> <div class="desc"> <?=$goodInfo['product_info_value_'.$i]?> </div> </div> <?php } } ?> </div> <div class="info_box"> <?php for($i = 4; $i <= 6; $i++){ if($goodInfo['product_info_label_'.$i] && $goodInfo['product_info_value_'.$i]){ ?> <div class="info_item"> <div class="sub"> <?=$goodInfo['product_info_label_'.$i]?> </div> <div class="desc"> <?=$goodInfo['product_info_value_'.$i]?> </div> </div> <?php } } ?> </div> </div> </div> </div> <!-- 상품 설명 --> <div class="prd_box prd_desc_box"> <div class="sub_titbox"> <p class="txt"><?=_e("상품 설명")?></p> </div> <div class="border_box"> <div class="description"> <?=$goodInfo['g_special']?> </div> </div> </div> <?php if(count($goodInfo['realOptionList'])){ ?> <!-- 상품 선택 --> <div class="prd_box prd_sel_box"> <div class="sub_titbox flexbox"> <p class="txt left"> <?=_e('상품 선택')?> <img src="/img/sub/product-detail/star.svg" alt="" class="img-full star_icon"> </p> </div> <div class="border_box"> <div class="select_box"> <?php //realOptionList $optionSeq = 1; foreach($goodInfo['realOptionList'] as $item){ ?> <div class="form-check"> <input class="form-check-input" type="radio" name="prd_select" dtid="<?=$item['dtid']?>" id="prd_select<?=$optionSeq?>" <?=(($item['date_type_nm'] == $firstOptionName) ? 'checked' : '')?>> <label class="form-check-label" dtid="<?=$item['dtid']?>" for="prd_select<?=$optionSeq?>"> <?=$item['date_type_nm']?> </label> </div> <?php $optionSeq++; } ?> </div> </div> </div> <?php } ?> <div class="prd_box prd_date_box"> <div class="sub_titbox"> <p class="txt"><?=_e('날짜 선택')?></p> </div> <div class="border_box"> <div class="calender_box" id="date_detail_ajax"> <?php //달력공간 ?> </div> </div> </div> <div class="side_wrap mobile" id="sideWrapMoWrap"> </div> <div class="prd_box prd_tab_box"> <nav id="prd_navbox" class="prd_navbox"> <div class="prd_nav_inner"> <ul class="prd_nav_ul"> <li> <a href="#none" data-target="#prd_tab_cont1" class="prd_navlink link1 on"> <?=_e('상품상세')?> </a> </li> <li> <a href="#none" data-target="#prd_tab_cont2" class="prd_navlink"> <?=_e('이용안내')?> </a> </li> <li> <a href="#none" data-target="#prd_tab_cont5" class="prd_navlink"> <?=_e('여행후기')?> </a> </li> <li> <a href="#none" data-target="#prd_tab_cont4" class="prd_navlink"> <?=_e('취소 및 환불')?> </a> </li> </ul> </div> </nav> <div id="prd_tab_contents" class="prd_tab_contents"> <div id="prd_tab_cont1" class="prd_tab_cont"> <div class="sub_titbox"> <p class="txt"><?=_e('상품상세')?></p> </div> <div class="detail_box"> <div id="detail_img" class="detail_img"> <?=$goodInfo['g_heed']?> </div> <div id="detail_more" class="detail_btn detail_more"> <button type="button" class="btn_clear btn_more"> <?=_e('더보기')?> </button> </div> <div id="detail_hide" class="detail_btn detail_hide hide"> <button type="button" class="btn_clear btn_more"> <?=_e('상세정보 접기')?> </button> </div> </div> </div> <div id="prd_tab_cont2" class="prd_tab_cont"> <div class="sub_titbox"> <p class="txt"><?=_e('이용안내')?></p> </div> <div class="border_box"> <div class="blankbox"> <?=$goodInfo['g_inclusion']?> </div> </div> </div> <div id="prd_tab_cont3" class="prd_tab_cont"> <div class="sub_titbox"> <p class="txt"><?=_e('주의사항')?></p> </div> <div class="border_box"> <div class="blankbox"> <?=$goodInfo['g_cautions']?> </div> </div> </div> <div id="prd_tab_cont4" class="prd_tab_cont"> <div class="sub_titbox"> <p class="txt"><?=_e('취소 및 환불')?></p> </div> <div class="border_box"> <div class="blankbox"> <?=$goodInfo['g_rule']?> </div> </div> </div> <script> $(function(){ $('#reviewWriteBtn').click(function(){ $('#writeFormArea').slideDown('fast'); }) }) </script> <style> #writeFormArea{clear:both;float:left;width:100%;background:#eee;padding:10px;margin-bottom:20px;display:none;} #writeFormArea h3{clear:both;float:left;width:100%;font-size:15px} #writeFormArea textarea{clear:both;float:left;width:98%;min-height:100px;border:1px solid #ccc;border-radius:5px;margin:10px 0;padding:1%} #writeFormArea #reviewRegBtn{float:right;background:#ff4c22;padding:2px 6px;border:none;border-radius:5px;color:#fff} #prd_tab_cont5{overflow:scroll} @media screen and (min-width:0px) and (max-width:599px){ } </style> <div id="prd_tab_cont5" class="prd_tab_cont"> <div class="sub_titbox"> <p class="txt"><?=_e('여행후기')?></p> </div> <div class="border_box mb"> <div class="blankbox"> <!-- 여행후기 --> <div class="review_box"> <div class="review_photo"> <span><?=_e('포토&동영상')?> <?=_e(number_format(count($reviewData['photoFileList'])).'건')?></span> <div class="review_photo_list"> <?php foreach($reviewData['photoFileList'] as $reviewPhoto){ ?> <img src="/FileData/review/<?=$reviewPhoto?>"/> <?php } ?> </div> </div> <div class="border_box"></div> <div class="review_text"> <div class="review_text_header"> <span><?=_e('리뷰')?> <?=_e(number_format(count($reviewData['reviewData'])).'건')?></span> <div class="review_write" id="reviewWriteBtn"><?=_e('후기쓰기')?></div> </div> <div id="writeFormArea"> <form name="" id="" method="post" action="/process/good_review_reg.php" enctype="multipart/form-data"> <input type="hidden" name="mode" value="input" /> <input type="hidden" name="b_uid" value="<?=$_GET['b_uid']?>" /> <input type="hidden" name="m_uid" value="<?=$_GET['m_uid']?>" /> <input type="hidden" name="g_uid" value="<?=$_GET['g_uid']?>" /> <h3><?=_e('어떤 점이 좋았나요?')?></h3> <textarea name="review_contents"></textarea> <input type="file" name="photos[]" multiple /> <input type="submit" id="reviewRegBtn" value="<?=_e('등록')?>" /> </form> </div> <?php if(count($reviewData['reviewData']) > 0){ ?> <ul class="review_text_list"> <?php foreach($reviewData['reviewData'] as $reviewRowData){ $insDt = explode(" ",$reviewRowData['INSDT']); $insDt = str_replace("-",".",$insDt[0]); ?> <li> <div class="review_left"> <img class="review_avatar" src="/img/logo-tbus.png"/> <div class="review_text_box"> <span><?=$reviewRowData['MEM_ID']?></span> <span class="review_text_date"><?=$insDt?></span> <div class="review_text_content"><?=$reviewRowData['MCONT']?></div> </div> </div> <?php //MFILE1 $photoFileFullPath = $_SERVER['DOCUMENT_ROOT'].'/FileData/review/'.$reviewRowData['MFILE1']; if($reviewRowData['MFILE1'] && file_exists($photoFileFullPath)){ ?> <img src="<?='/FileData/review/'.$reviewRowData['MFILE1']?>"/> <?php } ?> </li> <?php //코멘트 foreach($reviewRowData['comment'] as $commentDataRow){ $commentInsDt = explode(" ",$commentDataRow['INSDT']); $commentInsDt = str_replace("-",".",$commentInsDt[0]); ?> <li> <div class="review_left"> <img class="review_avatar" src="/img/logo-tbus.png"/> <div class="review_text_box"> <span><?=_e('관리자')?></span> <span class="review_text_date"><?=$commentInsDt?></span> <div class="review_text_content"><?=_e('답변')?> : <?=$commentDataRow['MCONT']?></div> </div> </div> </li> <?php } } ?> </ul> <?php } ?> </div> </div> </div> </div> </div> </div> </div> </div> <div class="side_wrap" id="sideWrapPcWrap"> <form id="resForm" method="post" name="resForm" action="/page/regReservation.html"> <!-- 옵션 --> <div class="side_box option_box"> <input type="hidden" name="g_uid" value="<?=$gUid?>" required /> <input type="hidden" id="d_uid" name="d_uid" value="" required /> <input type="hidden" id="currentCnt" value="" /> <input type="hidden" id="maxCnt" value="" /> <input type="hidden" name="dtid" value="<?=$dtid?>" /> <input type="hidden" name="currency" id="currency" value="<?=$currencyUnit?>" /> <input type="hidden" name="ext_to_krw" id="extToKrw" value="<?=$extToKrw?>" /> <input type="hidden" name="startDay" value="" /> <div class="option_item adultOptionItem"> <input type="hidden" name="adultPrice" value="" /> <div class="opt_info"> <p class="sub"> <?php if($tab == 'P'){ echo _e("버스"); }else{ echo _e("성인 (만 12세이상)"); } ?> </p> <p class="price"> <!-- 29,000원--> </p> </div> <div class="opt_control"> <button type="button" class="btn_clear btn_minus"> <img src="/img/sub/product-detail/minus.svg" alt="" class="img-full"> </button> <input type="text" value="0" id="adultCnt" name="adultCnt" readonly> <button type="button" class="btn_clear btn_plus"> <img src="/img/sub/product-detail/plus.svg" alt="" class="img-full"> </button> </div> </div> <div class="option_item childOptionItem" style="display:<?=(($tab== 'P') ? 'none' : 'block')?>"> <input type="hidden" name="childPrice" value="" /> <div class="opt_info" style="float:left"> <p class="sub"> <?=_e("소인")?> </p> <p class="price"> <!-- 9,000원--> </p> </div> <div class="opt_control" style="float:right"> <button type="button" class="btn_clear btn_minus"> <img src="/img/sub/product-detail/minus.svg" alt="" class="img-full"> </button> <input type="text" value="0" id="childCnt" name="childCnt" readonly> <button type="button" class="btn_clear btn_plus"> <img src="/img/sub/product-detail/plus.svg" alt="" class="img-full"> </button> </div> </div> </div> <!-- 다른 날짜 선택 --> <div class="side_box date_select_box"> <button type="button" class="btn_clear btn_date_sel"> <img src="/img/sub/product-detail/search.svg" alt="" class="img-full"> <?=_e('다른 날짜선택')?> </button> </div> <!-- 옵션 정보 --> <div class="side_box option_info_box"> <div class="info_txt date_info_txt"> <p class="sub"><?=_e('날짜')?></p> <p class="desc"></p> </div> <div class="info_txt people_info_txt"> <p class="sub"><?=_e('인원')?></p> <p class="desc"></p> </div> </div> <!-- 예약하기 --> <div class="side_box total_box"> <div class="total_price"> <div class="sub"><?=_e('총 금액')?></div> <div class="price bold color1"> <?php /*if($lang == 'ko'){ echo "0원"; }else if($lang == 'en'){ echo "$0"; }else if($lang == 'hk'){ echo "NT$0"; }*/ echo "$ 0"; ?> </div> <input type="hidden" name="totalPrice" /> </div> <div class="reservation"> <input type="submit" class="btn_clear btn_reserve" id="resBtn" value="<?=_e('예약하기')?>"> </div> <div class="video_link"> <a class="btn_clear btn_reserve" href="<?=$goodInfo['movie_i']?>" target="_blank"><?=_e('투어영상 미리보기')?></a> </div> </div> </form> </div> </div> <div class="mo_reservation"> <input type="submit" class="btn_clear btn_reserve" id="moBottomResBtn" value="<?=_e('예약하기')?>"> </div> </div> </div> <?php include $_SERVER['DOCUMENT_ROOT'] . '/include/footer.php'; ?> <!-- JS --> <!--<script src="/js/jquery-3.4.1.min.js"></script>--> <script src="/js/product-detail.js"></script> <script> $(function(){ $('.form-check-label').click(function(){ initPricePeopleCnt(); dtid = $(this).attr('dtid'); $("input[name='dtid']").val(dtid); $("#date_detail_ajax").load("/process/calendar.php?g_uid=<?=$gUid?>&d_uid=<?=$d_uid?>&dtid="+dtid+"&_mDbpage=info_main"); }) function initPricePeopleCnt(){ $('.date_info_txt .desc').text(''); $('input[name="adultPrice"').val(''); $('input[name="childPrice"').val(''); $('#currentCnt').val(''); $('#maxCnt').val('') $('.adultOptionItem .price').text(''); $('.childOptionItem .price').text(''); $('#adultCnt').val(0); $('#childCnt').val(0); <?php /*if($lang == 'ko'){ $priceDefault = "0원"; }else if($lang == 'en'){ $priceDefault = "$0"; }else{ $priceDefault = "NT$0"; }*/ $priceDefault = "$0"; ?> $('.total_price .price').text('<?=$priceDefault?>'); $('input[name="totalPrice"]').val(''); $('.people_info_txt .desc').text(''); $('#d_uid').val(''); $('input[name="dtid"]').val(''); $('input[name="startDay"]').val(''); } $(document).on('click', '#moBottomResBtn', function(){ resFormPosition = document.getElementById("resForm"); resFormPosition.scrollIntoView(); }); $(document).on('click', '.calender_body .date', function(){ if($(this).attr('class').indexOf('disabled') == -1){ $('.calender_body .date').removeClass('selectedDate'); adultPrice = $(this).attr("adultPrice"); childPrice = $(this).attr("childPrice"); $('input[name="adultPrice"').val(adultPrice); $('input[name="childPrice"').val(childPrice); fullDay = $(this).attr("fullday"); currentCnt = $(this).attr("current_people"); maxCnt = $(this).attr("max_people"); $('#currentCnt').val(currentCnt); $('#maxCnt').val(maxCnt); extToKrw = $('#extToKrw').val(); if(adultPrice > 0){ $('.adultOptionItem').show(); <?php if($lang == 'ko'){ ?> // $('.adultOptionItem .price').text(number_format(adultPrice)+'원'); <?php }else{ ?> // viewAdultPrice = parseInt(adultPrice / extToKrw); // $('.adultOptionItem .price').text(currencyUnit+number_format(viewAdultPrice)); <?php } ?> viewAdultPrice = parseInt(adultPrice / extToKrw); $('.adultOptionItem .price').text(currencyUnit+number_format(viewAdultPrice)); }else{ $('.adultOptionItem').hide(); } if(childPrice > 0){ $('.childOptionItem').show(); <?php if($lang == 'ko'){ ?> // $('.childOptionItem .price').text(number_format(childPrice)+'원'); <?php }else{ ?> // viewChildPrice = parseInt(childPrice / extToKrw); // $('.childOptionItem .price').text(currencyUnit+number_format(viewChildPrice)); <?php } ?> viewChildPrice = parseInt(childPrice / extToKrw); $('.childOptionItem .price').text(currencyUnit+number_format(viewChildPrice)); }else{ $('.childOptionItem').hide(); } fulldayEx = fullDay.split("-"); fullDayGetDay = new Date(fullDay).getDay(); <?php if($lang == 'ko'){ ?> viewDayStr = dayStr[fullDayGetDay]; dateInfoTxt = fulldayEx[1] + '월' + ' ' + fulldayEx[2] + '일 ' + '(' + viewDayStr + '요일)'; <?php }else if($lang == 'en'){ ?> viewDayStr = enDayStr[fullDayGetDay]; dateInfoTxt = fulldayEx[1] + '.' + ' ' + fulldayEx[2] + ' ' + '(' + viewDayStr + ')'; <?php }else { ?> viewDayStr = hkDayStr[fullDayGetDay]; dateInfoTxt = fulldayEx[1] + '月' + ' ' + fulldayEx[2] + '日 ' + '(' + viewDayStr + '曜日)'; <?php } ?> //날짜 $('.date_info_txt .desc').text(dateInfoTxt); $('input[name="startDay"]').val(fullDay); $('#d_uid').val($(this).attr('d_uid')); } $(this).addClass('selectedDate'); }); $(document).on('click', '.adultOptionItem .btn_minus', function(){ setCalcuPeoplePrice('adult', 'minus'); }) $(document).on('click', '.adultOptionItem .btn_plus', function(){ setCalcuPeoplePrice('adult', 'plus'); }) $(document).on('click', '.childOptionItem .btn_minus', function(){ setCalcuPeoplePrice('child', 'minus'); }) $(document).on('click', '.childOptionItem .btn_plus', function(){ setCalcuPeoplePrice('child', 'plus'); }) $(document).on('submit', '#resForm', function(){ if($('input[name="g_uid"]').val() && $('input[name="d_uid"]').val() && $('input[name="dtid"]').val() && $('input[name="startDay"]').val() && $('input[name="totalPrice"]').val()){ if(parseInt($('input[name="adultCnt"]').val()) > 0 || parseInt($('input[name="childCnt"]').val()) > 0){ if(confirm('<?=_e('예약을 진행하시겠습니까?')?>')){ return true; }else{ return false; } }else{ alert('<?=_e('인원수를 선택하세요.')?>'); return false; } }else{ alert('<?=_e('날짜또는 인원수를 선택하세요.')?>'); return false; } }) }) function setCalcuPeoplePrice(peopleType, increaseType){ if($('#d_uid').val() == ''){ alert('<?=_e('달력에서 출발날짜를 선택하세요.')?>'); return false; } currentCnt = parseInt($('#currentCnt').val()); maxCnt = parseInt($('#maxCnt').val()); extToKrw = parseInt($('#extToKrw').val()); if(peopleType == 'adult'){ adultNowCnt = parseInt($('#adultCnt').val()); if(increaseType == 'plus'){ adultNowCnt += 1; }else if(increaseType == 'minus'){ adultNowCnt -= 1; } totalRescnt = adultNowCnt + parseInt($('#childCnt').val()) + currentCnt; //childCnt if(totalRescnt > maxCnt){ alert('<?=_e('예약 가능한 인원을 넘었습니다.')?>'); return false; } $('#adultCnt').val(adultNowCnt); }else if(peopleType == 'child'){ childNowCnt = parseInt($('#childCnt').val()); if(increaseType == 'plus'){ childNowCnt += 1; }else if(increaseType == 'minus'){ childNowCnt -= 1; } totalRescnt = parseInt($('#adultCnt').val()) + childNowCnt + currentCnt; //childCnt if(totalRescnt > maxCnt){ alert('<?=_e('예약 가능한 인원을 넘었습니다.')?>'); return false; } $('#childCnt').val(childNowCnt); } //calcu adultUnitPrice = parseInt($('input[name="adultPrice"]').val()); childUnitPrice = parseInt($('input[name="childPrice"]').val()); adultCnt = parseInt($('#adultCnt').val()); childCnt = parseInt($('#childCnt').val()); <?php if($lang == 'ko'){ if($tab == 'P'){ ?> //표시 peopleCntInfo = '버스 '+ adultCnt +'대'; $('.people_info_txt .desc').text(peopleCntInfo); <?php }else{ ?> //표시 peopleCntInfo = (adultCnt + childCnt) + '명 ' + '(성인 '+ adultCnt +'명 / 소아 '+ childCnt +'명)' $('.people_info_txt .desc').text(peopleCntInfo); <?php } ?> // totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); // totalPriceFormat = number_format(totalPrice) + '원'; <?php }else if($lang == 'en'){ if($tab == 'P'){ ?> peopleCntInfo = 'BUS : '+ adultCnt; $('.people_info_txt .desc').text(peopleCntInfo); <?php }else{ ?> peopleCntInfo = (adultCnt + childCnt) + '' + '(Adult : '+ adultCnt +' / child : '+ childCnt +')' $('.people_info_txt .desc').text(peopleCntInfo); <?php } ?> // totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); // $('input[name="totalPrice"]').val(totalPrice); /*adultUnitPrice = parseInt(adultUnitPrice / extToKrw); childUnitPrice = parseInt(childUnitPrice / extToKrw); totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); totalPriceFormat = currencyUnit + number_format(totalPrice);*/ <?php } else if($lang == 'hk'){ if($tab == 'P'){ ?> peopleCntInfo = adultCnt +'輛巴士' $('.people_info_txt .desc').text(peopleCntInfo); <?php }else{ ?> peopleCntInfo = (adultCnt + childCnt) + '名 ' + '(成人 '+ adultCnt +'名 / 兒童 '+ childCnt +'名)' $('.people_info_txt .desc').text(peopleCntInfo); <?php } ?> // totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); // $('input[name="totalPrice"]').val(totalPrice); /*adultUnitPrice = parseInt(adultUnitPrice / extToKrw); childUnitPrice = parseInt(childUnitPrice / extToKrw); totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); totalPriceFormat = currencyUnit + number_format(totalPrice);*/ <?php } ?> totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); $('input[name="totalPrice"]').val(totalPrice); adultUnitPrice = parseInt(adultUnitPrice / extToKrw); childUnitPrice = parseInt(childUnitPrice / extToKrw); totalPrice = (adultUnitPrice * adultCnt) + (childUnitPrice * childCnt); totalPriceFormat = currencyUnit + number_format(totalPrice); $('.total_price .price').text(totalPriceFormat); } $(document).ready(function(){ setTimeout(function(){ var widthSize = window.innerWidth; console.log('widthSize is ' + widthSize); if (widthSize >= 1024) { }else{ //이미 있는지 확인한다. document.getElementById('sideWrapMoWrap').getElementsByTagName('form').length; if(document.getElementById('sideWrapMoWrap').getElementsByTagName('form').length == 1){ }else{ //넣는다. $('#sideWrapMoWrap').html($('#sideWrapPcWrap').html()); $('#sideWrapPcWrap').html(''); } } },1000); }) $(window).resize(function() { var width_size = window.innerWidth; console.log('width_size is ' + width_size); if (width_size >= 1024) { //이미 있는지 확인한다. document.getElementById('sideWrapPcWrap').getElementsByTagName('form').length; if(document.getElementById('sideWrapPcWrap').getElementsByTagName('form').length == 1){ }else{ //넣는다. $('#sideWrapPcWrap').html($('#sideWrapMoWrap').html()); $('#sideWrapMoWrap').html(''); } } else { //이미 있는지 확인한다. document.getElementById('sideWrapMoWrap').getElementsByTagName('form').length; if(document.getElementById('sideWrapMoWrap').getElementsByTagName('form').length == 1){ }else{ //넣는다. $('#sideWrapMoWrap').html($('#sideWrapPcWrap').html()); $('#sideWrapPcWrap').html(''); } } /*if($('#resBtn').is(":visible")){ console.log("노출되고있음."); }else{ console.log("안보임"); } if($("#resBtn:visible").length){ console.log("노출되고있음."); }*/ }); $(window).scroll(function() { if (window.innerWidth >= 1024) { }else{ if($(window).scrollTop() >= 3000){ $('#moBottomResBtn').fadeIn('fast'); }else{ $('#moBottomResBtn').fadeOut('fast'); } } }); </script> </body> </html>