ÿØÿà 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/erp/ |
Upload File : |
<?php session_start(); //error_reporting(E_ALL); //ini_set('display_errors', '1'); include "../../Lib/config.php"; include "../include/top_yeonsung.html"; include "_common.php"; $SqlType = "res_ins"; // 버스정산 연동위한 임시 idx $x_idx = "9" . substr(time(), 5,5); ?> <div class="contents_wrap"> <div class="contents_wrap_in" style="position:relative"> <ul class="butline" style="position:absolute;right:28px;top:45px;z-index:1;"> <?php echo ''; ?> </ul> <div class="title"> <i class="xi-document" style="font-size: 21px; position: relative; top: 2px;"></i> <strong style="margin-left:-4px">견적서 등록</strong></div> <div class="contents_detail"> <!-- 본문 --> <!--<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="margin-top:0;padding-top:0;"> <!-- ********************************************견적서******************************************** --> <div id="cont01" style="background-color:#edf0f5;"> <!-- 폼 --> <form name="frm_reserv_good" id="frm_reserv_good" method="post"> <input type="hidden" name="SqlType" value="<?=$SqlType?>"> <input type="hidden" name="amount_per_one" value=""> <input type="hidden" name="x_idx" value="<?=$x_idx?>"> <input type="hidden" name="currency" value="₩"> <?php $rtab = '1'; include "good_res_tabreg_yeonsung.php"; ?> <p style="background-color:#edf0f5"> </p> <table width="72%" border="0" cellspacing="0" cellpadding="0" style="background-color:#edf0f5; position: relative; top: -2px;"> <tr> <td valign="top" width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr style="border-top:1.2px solid #555;"> <th width="10%">ATTN</th> <td colspan="6"><input type="text" class="input_text" id="attn" name="attn" value="" style="width:90%" hname="ATTN" required> </td> <th width="10%">FROM</th> <td width="20%"> <input type="text" class="input_text" id="admiN_nm" name="admin_nm" value="" > </td> <th width="10%">담당자</th> <td width="20%"> <input type="text" class="input_text" id="charger" name="charger" value="" > </td> </tr> <tr> <th>행사명</th> <td colspan="6"><input type="text" class="input_text" id="good_name" name="good_name" value="" style="width:90%" hname="행사명" required> </td> <th>행사날짜</th> <td colspan="3"> <input type="text" name="start_date" id="start_date" class="cal_input" value="" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" readonly hname="출발날짜" required> ~ <input type="text" name="end_date" id="end_date" class="cal_input" value="" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" readonly hname="도착날짜" required> <!--<span id="periods"><?=$row['periods']?></span>--> <input type="text" class="input_text" id="period_str" name="period_str" value="" style="display:inline;width:25%;margin-left:22px"> </td> </tr> <tr> <th>호텔명</th> <td colspan="6"><input type="text" class="input_text" id="hotel_name" name="hotel_name" value="" style="width:90%"> </td> <th>차량정보</th> <td> <input type="text" class="input_text" id="car_info" name="car_info" value="" > </td> <th width="10%">항공비</th> <td width="20%"> <input onblur="this.value=comma(this.value);" type="text" class="input_text" id="air_fee" name="air_fee" value="" > </td> </tr> <tr> <th>예약자명</th> <td colspan="2"><input type="text" class="input_text" id="res_name" name="res_name" value="" hname="예약자명" required> </td> <th>국적</th> <td colspan="3"> <input type="text" style="width:164px" class="input_text" id="res_nationality" name="res_nationality" value="" > </td> <th>공급가액</th> <td colspan="3"> <span id="supply_price"></span> </td> </tr> <tr> <th>연락처</th> <td colspan="2"><input type="text" class="input_text" id="res_phone" name="res_phone" value="" hname="연락처" required> </td> <th>이메일</th> <td colspan="3"> <input type="text" style="width:164px" class="input_text" id="res_email" name="res_email" value="" hname="이메일" required> </td> <th>부가세</th> <td colspan="3"> <span id="surtax_price"></span> </td> </tr> <tr> <th>인원</th> <th width="5%">Adult</th> <td width="5%"> <input type="text" class="input_text" id="num_adult" name="num_adult" value="" style="width:60px" hname="성인 인원" onblur="calcu()" required> </td> <th width="5%">Child</th> <td width="5%"> <input type="text" class="input_text" id="num_child" name="num_child" value="" style="width:60px" onblur="calcu()"> </td> <th width="5%">FOC</th> <td width="5%"> <input type="text" class="input_text" id="num_foc" name="num_foc" value="" style="width:60px" onblur="calcu()"> </td> <th>최종합계</th> <td> <span id="total" style="font-weight:bold;">0</span> <input type="hidden" id="total_price" name="total_price" value=""> </td> <th>1인투어비</th> <td> <span id="per_amount"><?=number_format($price_per_one)?></span> </td> </tr> </tbody> </table> </td> </tr> <tr> <td height="20"> </td> </tr> <tr> <td valign="top" width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr style="border-top:1.2px solid #555;"> <th width="10%">포함사항</th> <td colspan="10"><textarea name="included" style="width:100%;min-height:70px;background-color:white;"></textarea></td> </tr> <tr> <th>불포함사항</th> <td colspan="10"><textarea name="non_included" style="width:100%;min-height:70px;background-color:white;"></textarea></td> </tr> <tr> <th>취소/환불규정</th> <td colspan="10"><textarea name="notice" style="width:100%;min-height:70px;background-color:white;"></textarea></td> </tr> </tbody> </table> </td> </tr> </table> <p style="background-color:#edf0f5"> </p> <div id="item_ajaxEstimate"></div> <!-- <div class="btn_wrap_C pt30 pb30" style="background-color:#edf0f5;"> <a class="Bbtn red" href="javascript:;" onclick="chk_form();" style="position:fixed;top:550px;right:150px;">견적서 저장</a> </div> --> </form> <!-- //폼 --> </div> <script> $(document).ready(function(){ $('input[type="checkbox"][name="state"]').click(function(){ if ($(this).prop('checked')) { $('input[type="checkbox"][name="state"]').prop('checked', false); $(this).prop('checked', true); } }); }); $(function(){ ajax_loader('resForm.ajax_yeonsung.php?SqlType=<?=$SqlType?>&x_idx=<?=$x_idx?>&a_idx=<?=$a_idx?>','item_ajaxEstimate'); }); function clear_period_date() { //no op } function calcu() { var currency = $("input[name='currency']").val(); //인원 var num_adult = $("#frm_reserv_good input[name='num_adult']").val(); var num_child = $("#frm_reserv_good input[name='num_child']").val(); if(!num_adult || num_adult==undefined) num_adult = "0"; if(!num_child || num_child==undefined) num_child = "0"; var total_price = $("#frm_reserv_good input[name='total_price']").val(); //합계 total_price = parseInt(replaceComma(total_price)); $("#total_price").val(total_price); //1인 투어비 var per_amount = ""; var total_inwon = parseInt(num_adult) + parseInt(num_child); if(total_inwon == 0) total_inwon = 1; $("#frm_reserv_good input[name='amount_per_one']").val(Math.round(total_price / total_inwon)); per_amount = currency + " " + number_format(Math.round(total_price / total_inwon)).toString(); $("#per_amount").html(per_amount); // 최종합계 $("#total").html(currency + " " + number_format(total_price)); } </script> <!-- ********************************************/견적서******************************************** --> <!-- /본문 --> </div> </div><!-- //contents_detail --> </div><!-- //contents_wrap_in --> </div><!-- //contents_wrap --> <? include "../include/footer_yeonsung.html" ?>