ÿØÿà 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/toadmin/agent_reserve/ |
Upload File : |
<? /* * 호텔 대리점 예약등록 * * 작성일 : 20130814 * 작성자 : 허종 * */ include "../include/top_agent.html"; include "_common.php"; $res_num = auto_create_code($create_code_head);//예약번호 생성 $code_res = base_codec("PRD","RES");//접수상태 $code_nat = base_codec("MEM","MNAT");//회원국적 ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">대리점_예약등록</div> <div class="contents_detail"> <div class="reserve_wrap"> <!-- 폼 --> <form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data"> <input type="hidden" name="SqlType" value="person_reservation_ins"> <input type="hidden" name="res_cust_id" id="res_cust_id" value=""> <input type="hidden" name="roomdate_cnt" id="roomdate_cnt" value="1"> <!-- 대리점 예약 --> <input type="hidden" name="agent_id" id="agent_id" value="<?=$TO_MB['mb_id']?>" hname="대리점조회" required /><!-- 대리점회원 ID (필수) --> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_r_list2"> <thead> <tr> <td colspan="6" class="t_top_line"></td> </tr> <tr> <td colspan="6" class="top_txt2">대리점 정보</td> </tr> </thead> <tbody> <tr> <th><label for="agent_corp_nm">대리점명</label></th> <td><input name="agent_corp_nm" id="agent_corp_nm" value="<?=$TO_MB['bz_corp_nm']?>" type="text" size="15" class="input_text" readonly /> </td> <th class="line_l"><label for="agent_nm">담당자</label></th> <td><input name="agent_nm" id="agent_nm" type="text" value="<?=$TO_MB['mb_nm']?>" size="15" class="input_text" hname="담당자" required /></td> <th class="line_l"><label for="agent_tel">전화번호</label></th> <td> <input name="agent_tel" id="agent_tel" value="<?=$TO_MB['mb_tel']?>" type="text" size="25" class="input_text" hname="전화번호" required /> </td> </tr> <tr> <th><label for="agent_email">이메일</label></th> <td><input name="agent_email" id="agent_email" type="text" size="25" value="<?=$TO_MB['mb_id']?>" class="input_text" style="ime-mode:disabled;" hname="이메일" required maxlength="40"/></td> <th class="line_l"><label for="agent_hp">핸드폰번호</label></th> <td> <input name="agent_hp" id="agent_hp" type="text" value="<?=$TO_MB['mb_phone']?>" size="25" class="input_text"/></td> <th class="line_l"><label for="agent_fax">팩스번호</label></th> <td> <input name="agent_fax" id="agent_fax" type="text" size="25" value="<?=$TO_MB['bz_fax']?>" class="input_text"/> </td> </tr> </tbody> </table> <!-- /대리점 예약 --> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_r_list2"> <thead> <tr> <td colspan="6" class="t_top_line"></td> </tr> <tr> <td colspan="6" class="top_txt2">예약자 정보</td> </tr> </thead> <tbody> <tr> <th><label for="reg_num">예약번호</label></th> <td width="240"><input name="res_no" id="res_no" value="<?=$res_num?>" type="text" size="30" class="input_text" readonly /></td> <th class="line_l">예약일</th> <td width="240"><div class="calendar_wrap"> <input name="res_dt" id="res_dt" type="text" class="calendar_input" size="12" onclick="AjaxCal(this,event);" value="<?=date("Y-m-d")?>" readonly hname="예약일" required /> </div></td> <th class="line_l">접수상태</th> <td><select name="res_stat_cd" id="res_stat_cd" class="w02"> <? for($i=0 ; $i<count($code_res) ; $i++){ $row = $code_res[$i]; if($row['code']=="A"){ ?> <option value="<?=$row['code']?>"><?=$row['cd_nm']?></option> <? } } ?> </select></td> </tr> <tr> <th><label for="name">예약자명</label></th> <td> <input name="res_cust_nm" id="res_cust_nm" type="text" size="15" class="input_text" hname="예약자명" required /> </td> <th class="line_l"><label for="cust_nm">숙박자명</label></th> <td><input name="cust_nm" id="cust_nm" type="text" size="15" class="input_text" hname="숙박자명" required />예약자동일<input type="checkbox" id="cust_nm_check" onclick="check_cust_nm();" value="Y"></td> <th class="line_l"></th> <td></td> </tr> <tr> <th><label for="tel">전화번호</label></th> <td><input name="tel" id="tel" type="text" size="20" value="" class="input_text" /></td> <th class="line_l"><label for="hp">핸드폰</label></th> <td><input name="hp" id="hp" type="text" size="20" value="" class="input_text" hname="핸드폰" required/></td> <th class="line_l"><label for="p_num">숙박인원</label></th> <td>성인 <input name="adult_num" id="adult_num" type="text" value="1" style="me-mode: disabled;" class="t_no" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="3"/> 명<span class="mr10"></span>유아 <input name="child_num" id="child_num" type="text" value="0" style="me-mode: disabled;" class="t_no" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="3"/> 명</td> </tr> <tr> <th><label for="cust_email">이메일</label></th> <td class="input_lo"> <input name="cust_email" id="cust_email" type="text" size="30" class="input_text" style="ime-mode:disabled;" hname="이메일" required maxlength="50"/> </td> <th class="line_l"><label for="cust_nat_cd">국적</label></th> <td> <select name="cust_nat_cd" id="cust_nat_cd" class="w02"> <? for($i=0 ; $i<count($code_nat) ; $i++){ $row = $code_nat[$i]; ?> <option value="<?=$row['code']?>"><?=$row['cd_nm']?></option> <?}?> </select> </td> <th class="line_l"></th> <td> </td> </tr> <!-- <tr> <th>주소</th> <td colspan="5"> <input type="text" class="input_text" name="zipcode" id="zipcode" value="" size="10" readonly> <img src="../image/btn/btn_ad_num.gif" class="v_align" style="cursor:pointer;" onclick="to_dialog.iframe('../include/zipfind.html?z1=zipcode&z2=address','우편번호검색','400','300',true,false);" > <br /> <input name="address" id="address" type="text" value="" size="30" class="input_text mt5"/> <input name="address_d" id="address_d" type="text" value="" size="25" class="input_text mt5" /> </td> </tr> --> <tr> <th><label for="option_memo">추가옵션</label></th> <td colspan="5"> <textarea name="option_memo" id="option_memo" cols="" rows="" style="width:50%; height:60px;"></textarea> </td> </tr> <tr> <th><label for="cust_memo">고객요청</label></th> <td colspan="5"> <textarea name="cust_memo" id="cust_memo" cols="" rows="" style="width:50%; height:60px;"></textarea> </td> </tr> </tbody> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_r_list" id="hotel_roomtype_date"> <thead> <tr> <td colspan="12" class="t_top_line"></td> </tr> <tr> <td colspan="12" class="top_txt2"><span class="lo_left">객실별 정보</span> <div class="lo_left ml50"> </div> <p class="lo_right pr5"><img src="../image/btn/btn_plus.gif" align="top" alt="추가" onClick="add_row();" style="cursor:pointer;" /></p> </td> </tr> <tr> <th>호텔/룸타입</th> <th width="100">체크인</th> <th width="100">체크아웃</th> <th width="90">계약가</th> <th width="90">판매가(대리점)</th> <th width="50">박</th> <th width="60">룸</th> <th width="70">합계</th> <!-- <th width="80">바우처번호</th> <th width="50">발송</th> <th width="50">수정</th> --> <th width="50">삭제</th> </tr> </thead> <tbody> <tr> <td> <input type="hidden" name="hseq_0" id="hseq_0" value=""><!-- 호텔seq --> <input type="hidden" name="hotel_code_0" id="hotel_code_0" value=""><!-- 호텔 code --> <input type="hidden" name="ridx_0" id="ridx_0" value=""><!-- 룸타입seq --> <!-- <input type="hidden" name="hdidx_0" id="hdidx_0" value=""> --><!-- 객실일정요금seq x --> <input type="hidden" name="price_cost_total_0" id="price_cost_total_0" value="" title='계약가 합계'><!-- 계약가 합계 --> <input type="hidden" name="price_sell_total_0" id="price_sell_total_0" value="" title='개인판매가 합계'><!-- 개인판매가 합계 --> <input type="hidden" name="price_agent_total_0" id="price_agent_total_0" value="" title='대리점판매가 합계'><!-- 대리점판매가 합계 (신규) --> <!-- <input type="hidden" name="commission_total_0" id="commission_total_0" value=""> --><!-- 커미션 합계 x--> <input type="hidden" name="hdidx_str_0" id="hdidx_str_0" value=""><!-- 객실일정요금seq 누적(추가)--> <input type="hidden" name="price_total_0" id="price_total_0" value="" title='합계'><!-- 합계 --> <input type="hidden" name="lodg_day_0" id="lodg_day_0" value="1" title='박수'><!-- 박수 --> <input type="hidden" name="room_cnt_0" id="room_cnt_0" value="1" title='룸수'><!-- 룸수 --> <input name="hotel_nm_0" id="hotel_nm_0" type="text" class="input_text" size="18" value="" readonly hname="호텔/룸타입" required /> / <input name="room_type_0" id="room_type_0" type="text" class="input_text" size="18" value="" readonly/> <input type="button" value="객실 조회" class="btn_orange_left" onClick="to_dialog.ajax('../reservation/hotel_roomdate_ajax.html?tr_rowid=0&mode=agent_reg','호텔 객실 조회','600','500',true,false);"><span class="btn_orange_right"></span> </td> <td> <input name="checkin_dt_0" id="checkin_dt_0" type="text" class="input_text" size="15" value="" readonly onClick="to_dialog.ajax('../reservation/hotel_roomdate_ajax.html?tr_rowid=0','호텔 객실 조회','600','500',true,false);" style="cursor:pointer;" /> </td><!-- 체크인 --> <td><div class="calendar_wrap"> <input name="checkout_dt_0" id="checkout_dt_0" type="text" class="calendar_input" size="12" onclick="if(!this.value){alert('체크인하세요.');return;}AjaxCal(this,event,{'sdate':checkin_dt_0.value,'add_event':'row_room_check(\'0\')'});" value="" readonly/> </div></td><!-- 체크아웃 --> <td><span id="price_cost2_0">0</span></td><!-- 계약가 --> <td><span id="price_sell2_0">0</span></td><!-- 판매가(개인 OR 대리점) --> <td><span id="lodg_dt_0">1</span>박</td><!-- 박수 --> <td><select id="room_count_0" style="width:40px;" onChange="row_room_check('0');"> <?for($x=1 ; $x<=$cf['max_reserv_room_cnt'] ;$x++) {?><option value="<?=$x?>"><?=$x?></option><?}?> </select></td><!-- 룸수 --> <td><span id="price_total2_0">0</span></td><!-- 합계 --> <td><img src="../image/btn/btn_delete3.gif" align="top" alt="삭제" onclick="alert('삭제불가합니다.');" /></td> </tr> <!-- 테이블 tr에 추가할 row --> <textarea id="table_tr_template" style="display:none;"> <tr id="table_row_{NUMBER}"> <td> <input type="hidden" name="hseq_{NUMBER}" id="hseq_{NUMBER}" value=""><!-- 호텔seq --> <input type="hidden" name="hotel_code_{NUMBER}" id="hotel_code_{NUMBER}" value=""><!-- 호텔 code --> <input type="hidden" name="ridx_{NUMBER}" id="ridx_{NUMBER}" value=""><!-- 룸타입seq --> <input type="hidden" name="hdidx_{NUMBER}" id="hdidx_{NUMBER}" value=""><!-- 객실일정요금seq x--> <input type="hidden" name="price_cost_total_{NUMBER}" id="price_cost_total_{NUMBER}" value=""><!-- 계약가 합계--> <input type="hidden" name="price_sell_total_{NUMBER}" id="price_sell_total_{NUMBER}" value=""><!-- 판매가 합계--> <input type="hidden" name="price_agent_total_{NUMBER}" id="price_agent_total_{NUMBER}" value=""><!-- 대리점판매가 합계 (신규) --> <!-- <input type="hidden" name="commission_total_{NUMBER}" id="commission_total_{NUMBER}" value=""> --><!-- 커미션 합계 x--> <input type="hidden" name="hdidx_str_{NUMBER}" id="hdidx_str_{NUMBER}" value=""><!-- 객실일정요금seq 누적(추가)--> <input type="hidden" name="price_total_{NUMBER}" id="price_total_{NUMBER}" value=""><!-- 합계 --> <input type="hidden" name="lodg_day_{NUMBER}" id="lodg_day_{NUMBER}" value="1"><!-- 박수 --> <input type="hidden" name="room_cnt_{NUMBER}" id="room_cnt_{NUMBER}" value="1"><!-- 룸수 --> <input name="hotel_nm_{NUMBER}" id="hotel_nm_{NUMBER}" type="text" class="input_text" size="18" value="" readonly hname="호텔/룸타입" required /> / <input name="room_type_{NUMBER}" id="room_type_{NUMBER}" type="text" class="input_text" size="18" value="" readonly/> <input type="button" value="객실 조회" class="btn_orange_left" onClick="to_dialog.ajax('../reservation/hotel_roomdate_ajax.html?tr_rowid={NUMBER}&mode=agent_reg','호텔 객실 조회','600','500',true,false);"><span class="btn_orange_right"></span> </td> <td> <input name="checkin_dt_{NUMBER}" id="checkin_dt_{NUMBER}" type="text" class="input_text" size="15" value="" readonly onClick="to_dialog.ajax('../reservation/hotel_roomdate_ajax.html?tr_rowid={NUMBER}&mode=agent_reg','호텔 객실 조회','600','500',true,false);" style="cursor:pointer;" /> </td><!-- 체크인 --> <td><div class="calendar_wrap"> <input name="checkout_dt_{NUMBER}" id="checkout_dt_{NUMBER}" type="text" class="calendar_input" size="12" onclick="if(!this.value){alert('체크인하세요.');return;}AjaxCal(this,event,{'sdate':checkin_dt_{NUMBER}.value,'add_event':'row_room_check(\'{NUMBER}\')'});" value="" readonly/> </div></td><!-- 체크아웃 --> <td><span id="price_cost2_{NUMBER}">0</span></td><!-- 계약가 --> <td><span id="price_sell2_{NUMBER}">0</span></td><!-- 판매가(개인 OR 대리점) --> <td><span id="lodg_dt_{NUMBER}">1</span>박</td><!-- 박수 --> <td><select id="room_count_{NUMBER}" style="width:40px;" onChange="row_room_check('{NUMBER}');"> <?for($x=1 ; $x<=$cf['max_reserv_room_cnt'] ;$x++) {?><option value="<?=$x?>"><?=$x?></option><?}?> </select></td><!-- 룸수 --> <td><span id="price_total2_{NUMBER}">0</span></td><!-- 합계 --> <!-- <td><span id="voucher_num_0" title="바우처번호">abc123</span></td> <td><input type="image" src="../image/btn/btn_ok.gif" align="top" alt="OK" /></td> <td><input type="image" src="../image/btn/btn_modify2.gif" align="top" alt="수정" /></td> --> <td><img src="../image/btn/btn_delete3.gif" align="top" alt="삭제" onClick="del_row('{NUMBER}');" style="cursor:pointer;" /></td> </tr> </textarea> <!-- /테이블 tr에 추가할 row --> </tbody> </table> </form> <!-- /폼 --> <ul class="btn_check"> <li class="btn01"><a href="javascript:;" onClick="write_frm();">등록</a></li> </ul> </div> </div> </div> </div> <script type="text/javascript"> //tr 번호 var row_number=1; //tr추가 function add_row() { var row = $("#table_tr_template").val(); var str = ""; var i; i=$("#hotel_roomtype_date tbody tr").length; if(i>15) { alert('더이상 추가 할 수 없습니다.'); return; } str = row.replace(/{NUMBER}/g,row_number);//ID para $("#hotel_roomtype_date tbody").append(str); row_number++; } //tr삭제 function del_row(num) { $("#table_row_"+num).remove(); } //박수변경시 객실 체크 function row_room_check(num) { var indate = $("#checkin_dt_"+num).val();// 입실일자 var outdate = $("#checkout_dt_"+num).val();// 퇴실일자 var hseq = $("#hseq_"+num).val();// 호텔seq var ridx = $("#ridx_"+num).val();// 룸타입seq var room_cnt = $("#room_count_"+num).val();// 룸수 if( !indate || !outdate) { $("#room_count_"+num).val('1'); return; } ajax_loader("../reservation/check_room_date_ajax.php?hseq="+hseq+"&ridx="+ridx+"&indate="+indate+"&outdate="+outdate+"&room_cnt="+room_cnt+"&num="+num+"&mode=agent_reg"); } function write_frm() { var f=document.frm_ins; // 폼체크 var result = to_validation(f); if (result == false) return false; if(!confirm("저장하시겠습니까?")) return false; $("#roomdate_cnt").val(row_number); ajax_post("ajax_proc","reserv_proc.php?<?=$href?>","frm_ins"); } // $("#membertype").click(function(){ if($(this).is(":checked")==true){ $("#btn_member_search").css("display","none"); $("#btn_member_search2").css("display","none"); $("#res_cust_id").val("");//아이디 삭제 $("#res_cust_nm").val("");//예약자명 삭제 $("#tel").val(""); $("#hp").val(""); $("#cust_email").val(""); $("#zipcode").val(""); $("#address").val(""); $("#address_d").val(""); }else{ $("#btn_member_search").css("display","inline"); $("#btn_member_search2").css("display","inline"); } }); function check_cust_nm() { if ( $("#cust_nm_check").is(":checked") == true ) $("#cust_nm").val($("#res_cust_nm").val()); else $("#cust_nm").val(''); } </script> <? include "../include/footer.html" ?>