ÿØÿà 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_good/ |
Upload File : |
<? include "../include/top_proc.html"; //공통파일 인클루드 if ($cseq) { // 상담마스터 $data = contab_list(" and cseq = '{$cseq}' "); $row = $data[0]; $d_start = $row['d_start']; if ($d_start=="0000-00-00") $d_start=""; if ( $row['d_day'] > 0 ){ $periodStr = $row['d_day']-1; $period = $row['d_day']; } $d_title = $row['ct_title']; $tab = $row['tab']; $b_uid = $row['b_uid']; $m_uid = $row['m_uid']; $s_uid = $row['s_uid']; $d_people2 = $row['d_people1']; // 예약인원(d_people2) $tab = "P"; // } $require_num_comma = " maxlength=\"10\" style=\"ime-mode:inactive;ime-mode:disabled;text-align:right\" onblur=\"this.value=comma(this.value)\" onKeyDown=\"ChkNum(this,event);\" "; ?> <div class="iframe ma0"> <div class="popbox"> <!-- 본문 --> <!-- 폼 --> <form name="date_conn_frm" id="date_conn_frm" method="post"> <input type="hidden" name="SqlType" id="SqlType" value="ins_date"><!-- 생성(ins_date),연결(conn_date) --> <INPUT TYPE="hidden" NAME="g_uid" id="g_uid" value=""><!-- 상품 id --> <input type="hidden" name="d_uid" id="d_uid" value=""><!-- 행사 id --> <input type="hidden" name="cseq" id="cseq" value="<?=$cseq?>"><!-- 상담게시물 id --> <input type="hidden" name="lodg_idx" id="lodg_idx" value=""><!-- 국내여행 요금id --> <input type="hidden" name="lodg_seq" id="lodg_seq" value=""><!-- 국내여행 요금id --> <div class="title">여행상품예약</div> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <colgroup> <col width="150px" /> <col /> </colgroup> <tbody> <tr> <th><label for="">행사명</label></th> <td> <input type="text" name="d_title" id="d_title" class="input_text" value="<?=$d_title?>" hname="행사명" style="width:565px;" required> <input type="button" class="Table_btn" value="행사연결" onclick="to_dialog.iframe('date_ev_ajax.html?tab=<?=$tab?>&b_uid=<?=$b_uid?>&m_uid=<?=$m_uid?>&s_uid=<?=$s_uid?>','행사연결','1150','550',true,true,'yes');"> </td> </tr> <tr> <th><label for="">출발</label></th> <td> <input type="text" name="d_start" id="d_start" class="cal_input" style="width:120px; margin-right:22px" readonly value="<?=$d_start?>" onclick="if(cal_yn=='y'){AjaxCal(this,event);}" hname="출발일" required > <input type="text" name="d_starttime_1" id="d_starttime_1" class="input_text" value="<?=$d_starttime_1?>" style=" width:50px"> : <input type="text" name="d_starttime_2" id="d_starttime_2" class="input_text mr10" value="<?=$d_starttime_2?>" style=" width:50px"> 비행편 <input type="text" name="d_plane1" id="d_plane1" class="input_text" value="<?=$d_plane1?>" style="width:106px"> </td> </tr> <tr> <th><label for="ct_cont">도착</label></th> <td> <input type="text" name="periodStr" id="periodStr" class="input_text" style="width:48px" value="<?=$periodStr?>" hname="박수" required>박 <input type="text" name="period" id="period" class="input_text ml10" style="width:48px" value="<?=$period?>" hname="일수" required>일 <input type="text" name="d_endtime_1" id="d_endtime_1" class="input_text ml10" style="width:50px" value="<?=$d_endtime_1?>"> : <input type="text" name="d_endtime_2" id="d_endtime_2" class="input_text mr10" style="width:50px" value="<?=$d_endtime_2?>"> 비행편 <input type="text" name="d_plane2" id="d_plane2" class="input_text" style="width:106px" value="<?=$d_plane2?>"> </td> </tr> <tr> <th><label for="">가격</label></th> <td> 성인 <input type="text" name="d_money1" id="d_money1" class="input_text mr10" style="width:101px" value="<?=$d_money1?>" hname="성인가" required <?=$require_num_comma?>> 소인 <input type="text" name="d_money2" id="d_money2" class="input_text mr10" style="width:101px" value="<?=$d_money2?>" <?=$require_num_comma?>> 유아 <input type="text" name="d_money3" id="d_money3" class="input_text mr10" style="width:101px" value="<?=$d_money3?>" <?=$require_num_comma?>> 영아 <input type="text" name="d_money7" id="d_money7" class="input_text mr10" style="width:101px" value="<?=$d_money7?>" <?=$require_num_comma?>> </td> </tr> <tr> <th><label for="">출발인원</label></th> <td> <input type="text" name="d_people2" id="d_people2" class="input_text" value="<?=$d_people2?>" hname="인원" required > </tr> </tbody> </table> <div class="btn_wrap_C mt20 mb20"> <a class="Tbtn red" href="javascript:;" onclick="chk_frm_dateconn();">예약등록</a> <a class="Tbtn" href="javascript:;" onclick="to_dialog.close('<?=$tmp_layer_id?>');to_dialog.ajax('date_reg.html?cseq=<?=$cseq?>','여행상품예약','1100','550',true,false);">초기화</a> </div> </form> <!-- /폼 --> <!-- /본문 --> </div> </div> <script type="text/javascript"> var cal_yn = "y"; <?if ($cseq) {?> $("form#date_conn_frm input").attr("readOnly",false); <?}?> function write_readony_date(c) { if(c=='d') { $("form#date_conn_frm input").attr("readOnly",true); // 폼 무력화 cal_yn='n'; // 카렌다 무력화 } } // 폼체크 function chk_frm_dateconn() { var f = document.date_conn_frm; if (f.SqlType.value=="ins_date") { var result = to_validation(f); if ( result == false ) return false; if(!confirm('행사를 생성합니다.\n계속진행하시겠습니까?')) return; ajax_post("ajax_proc","date_reg_proc.html","date_conn_frm"); // 행사생성 } else { var d_uid = f.d_uid.value; if ( !d_uid ) { alert('선택된 행사가 없습니다.'); return; } if(!confirm('행사를 연결하시겠습니까?')) return; reserv_good(d_uid); // 예약페이지 연결 } } function reserv_good(d_uid) { var g_uid = $("#g_uid").val(); var d_money1 = $("#d_money1").val(); var d_money2 = $("#d_money2").val(); var d_money3 = $("#d_money3").val(); var d_money7 = $("#d_money7").val(); var d_title = $("#d_title").val(); var lodg_idx = $("#lodg_idx").val(); var lodg_seq = $("#lodg_seq").val(); var params; d_title = encodeURIComponent(d_title); params = 'g_uid='+g_uid+'&d_uid='+d_uid+'&cseq=<?=$cseq?>&d_money1='+d_money1+'&d_money2='+d_money2+'&d_money3='+d_money3+'&d_money7='+d_money7+'&d_title='+d_title; params = params + '&lodg_idx='+lodg_idx+'&lodg_seq='+lodg_seq // 국내여행 파라메터 parent.to_dialog.iframe('good_res_reg.html'+'?'+params,'여행상품예약','1200','700',true,true,'yes'); to_dialog.close('<?=$tmp_layer_id?>'); } </script>