ÿØÿà 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/admin/res_hotel/ |
Upload File : |
<? include "../include/top_iframe.html"; include "../reservation/_common.php"; // 파라메터 $SqlType=$SqlType; // hotel_res_updt(예약변경), hotel_res_addon(예약추가) $cseq = $cseq; // 상담ID $res_no = $res_no; // 예약번호 $HotelReserv = new HotelReserv(); $CommonTour = new CommonTour(); if(!isset($SqlType)) $SqlType="hote_res_ins"; // 예약저장 if(isset($res_no)) { $data_res = $HotelReserv->res_hotel_master(" and res_no='{$res_no}' "); $row_res = $HotelReserv->res_hotel_master_replace($data_res[0]); //p($row_res); // 회원 포인트 $mb_point_tot = 0; if ($row_res['res_cust_id']) { $data_mbpoint = $CommonTour->pointTotal(array("sql_where"=>" and mb_id='{$row_res[res_cust_id]}' ")); $mb_point_tot = $data_mbpoint['cur_point']; } }else $res_no=auto_create_code("L"); // 예약추가일때는 예약번호를 새로 생성 if($SqlType=="hotel_res_addon") $res_no=auto_create_code("L"); //2019-10-18 통화단위 선택시 언어카테고리 switch($curunit) { case "KRW": $lang = "ko"; break; case "USD": case "PHP": case "MYR": case "SGD": case "THB": $lang = "en"; break; case "CNY": $lang = "cn"; break; case "HKD": case "TWD": $lang = "hk"; break; default: $lang = "ko"; } if($lang =='ko' || $lang =='ag') $ext_to_krw = '1'; else { $rdata['sql_where'] = " and ext_eng='{$curunit}' "; $rdata['sql_order'] = " ins_dt desc "; $data_krw = $CommonTour -> exchangeList($rdata); //2019-10-28 통화단위당 krw $ext_to_krw = $data_krw[0][ext_to_krw]; } ?> <div class="top_bar"> <div class="btn_fix"><a class="Bbtn red" href="javascript:;" onclick="chk_form();">저장</a></div> </div> <div class="conbody_area" style="padding-top:30px;"> <!-- 본문 --> <!-- 폼 --> <form name="frm_ins" id="frm_ins" method="post"> <input type="hidden" name="SqlType" value="<?=$SqlType?>"> <input type="hidden" name="res_no" value="<?=$res_no?>"> <input type="hidden" name="sales_total" value="0"><!-- 판매금액 --> <input type="hidden" name="agent_total" value="0"><!-- 거래처가 --> <input type="hidden" name="buy_total" value="0"><!-- 매입금액 --> <input type="hidden" name="cseq" value="<?=$cseq?>"> <!--2019-10-18 통화변환값--> <input type="hidden" name="lang" value="<?=$lang?>"><!-- 언어 카테고리 --> <input type="hidden" name="curunit" value="<?=$curunit?>"><!-- 통화 --> <input type="hidden" name="sales_total_fr" value="<?=$row_res['sales_total_fr']?>"><!-- 판매가 합계 외화 --> <INPUT TYPE="hidden" NAME="ext_to_krw" value="<?=$ext_to_krw?>"> <!-- ********************************************상품정보******************************************** --> <div id="cont01"> <? $rtab = '1'; include "hotelResRegTab.php"; ?> <script type="text/javascript" src="../res_hotel/hotelResReg.js?ver=1.8"></script> <div id="item_ajaxResHotel"></div> </div> <!-- ********************************************/상품정보******************************************** --> <!-- *********************************************예약자정보******************************************* --> <div id="cont02"> <? $rtab = '2'; include "hotelResRegTab.php"; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="50%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th width="100">예약자 아이디</th> <td colspan="3"><input type="text" class="input_text" id="mb_id" name="mb_id" value="<?=$row_res['res_cust_id']?>" readonly> <input class="Table_btn gray" id="btn_agent_search" onclick="to_dialog.iframe('../res_good/member_find_ajax.html','회원검색','680','360',true,true,'no');" type="button" value="회원조회"/> <input class="Table_btn green" id="item_btn_nomember" type="button" value="비회원"/> </td> </tr> <tr> <th>예약자 적립금</th> <td colspan="3"><span id="member_point"><?=number_format($mb_point_tot)?></span>원 <input mb_id='' mb_nm='' class="Table_btn blue" id="btn_agent_search" onclick="if(!$('#mb_id').val()){alert('회원만조회가능합니다.');return;}to_dialog.iframe('../res_good/member_point.html?mb_id='+$('#mb_id').val(),$('#cu_name').val()+'님 적립금내역','800','450',true,true,'yes');" type="button" value="적립금내역"/> </td> </tr> <tr> <th>예약자명*</th> <td><input type="text" class="input_text" id="cu_name" name="res_cust_nm" value="<?=$row_res['res_cust_nm']?>" style="width:130px;" hname="예약자명" required></td> <th>국적</th> <td><input type="text" class="input_text" id="res_cust_nat_cd" name="res_cust_nat_cd" value="<?=$row_res['res_cust_nat_cd']?>" style="width:130px;" ></td> </tr> <tr> <th>핸드폰*</th> <td><input type="text" class="input_text" id="cu_phone" name="res_cust_hp" value="<?=$row_res['res_cust_hp']?>" style="width:130px;" hname="핸드폰" required></td> <th width="100">전화번호</th> <td><input type="text" class="input_text" id="cu_tel" name="res_cust_tel" value="<?=$row_res['res_cust_tel']?>" style="width:130px;"></td> </tr> <tr> <th>이메일</th> <td colspan="3"> <input type="text" class="input_text" id="cu_email" name="res_cust_email" value="<?=$row_res['res_cust_email']?>" style="width:240px;"> </td> </tr> </tbody> </table> </td> </tr> </table> </div> <!-- ********************************************/상품정보******************************************** --> <div id="cont03"> <? // 숙박자정보 $rtab = '3'; include "hotelResRegTab.php"; include "hotelResPerson.php"; ?> </div> <script type="text/javascript"> $(function(){ // 호텔상품정보 ajax_loader('hotelResRegFormNew.ajax.html?SqlType=<?=$SqlType?>&res_no=<?=$res_no?>&lang=<?=$lang?>&curunit=<?=$curunit?>','item_ajaxResHotel'); }); </script> </form> <!-- /폼 --> <div class="btn_wrap_C mt30 mb30"> <a class="Bbtn red" href="javascript:;" onclick="chk_form();">저장</a> </div> <script type="text/javascript"> // 저장 function chk_form() { var f = document.frm_ins; var result = to_validation(f) if( result == false ) return false; if(!confirm('예약을 저장하시겠습니까?')) return; //ajax_post('ajax_proc','hotelResProc.html','frm_ins'); f.action = "hotelResProc.html"; f.submit(); } </script> <!-- /본문 --> </div> <? include "../include/footer_iframe.html"; ?>