ÿØÿà 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/good/ |
Upload File : |
<? include "../include/top_iframe.html"; include "_common.php"; if (!$g_uid or !$d_uid_ga) exit; $d_uid_arr = explode(",",$d_uid_ga); if(is_array($d_uid_arr)){ foreach($d_uid_arr as $v) { if($v) $d_uid_ar[] = $v; }} if(count($d_uid_ar)==0) error_msg(); // 상품정보 $arr = good_list(" and g_uid='{$g_uid}' "); $row_good = good_list_replace($arr[0]); //prePrint($row_good); // 행사 ID $d_uid = $d_uid_ar[0]; // 행사정보 $data = date_list($g_uid,"none"," and d_uid='{$d_uid}' "); /*if(devCookie()){ p($data); exit; }*/ //prePrint($data); $row = date_list_replace($data[0]); //prePrint($row); if(!$row['d_title']) error_msg(); // 항공사 $data_airplane = TO_get_airline(" and delflag='N' "," airnm_kor asc "); // 운송수단 코드 $data_trans = base_codec("HTL","ABTU","","N"); // 관리자목록 $admin_arr = member_fetch(" and mb_level <= 10 and del_flag='N' "); // 기본일정표 $base_sch_data = toad_schedule($g_uid," and Sort='0' "); // 적립금 $class_CommonTour = new CommonTour(); $shop_point = $class_CommonTour->shopPoint(); //if(devCookie()){ // p($row_good['b_uid']); // p($row_good['m_uid']); // p($row_good['Bidx']); if($row_good['b_uid']){ //해당 행사의 언어 $sql = "SELECT b_lang FROM bc WHERE b_uid = {$row_good['b_uid']}"; $res = db_fetch($sql); $b_lang = $res['b_lang']; // p($b_lang); } // exit; //} ?> <div class="popup_form"> <h2 class="mb5">[<?=$row['d_title']?>] 행사관리 <?if(count($d_uid_ar)>1){?> <?if($all=="Y"){?>[전체]<?}else{?>[<?=count($d_uid_ar)?>건]<?}?><?}?></h2> <!-- 본문 --> <!-- 폼 --> <form name="frmdate" id="frmdate" method="post"> <input type="hidden" name="SqlType" value="date_updt"> <input type="hidden" name="g_uid" value="<?=$g_uid?>"> <input type="hidden" name="d_tax" id="d_tax" value="N"><!-- TAX 불포함 --> <input type="hidden" name="d_oil" id="d_oil" value="N"><!-- 유류할증료 불포함 --> <INPUT TYPE="hidden" NAME="tour_cond" value="<?=$row['tour_cond']?>"> <INPUT TYPE="hidden" NAME="d_kor_sch" value="<?=$row['d_kor_sch']?>"> <INPUT TYPE="hidden" NAME="d_route" value="<?=$row['d_route']?>"> <input type="hidden" name="all" value="<?=$all?>"><!-- 전기간 --> <input type="hidden" name="dtid" value="<?=$dtid?>"> <? // 선택된 행사ID for($i=0 ; $i<count($d_uid_ar); $i++) { $d_uid = $d_uid_ar[$i]; ?> <input type="hidden" name="d_uid_ar[]" value="<?=$d_uid?>"> <?}?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <colgroup> <col style=" width:40px" /> <col style=" width:150px" /> <col style=" width:*;" /> <col style=" width:70px" /> </colgroup> <tr> <th class="item_disp_checkbox"><span id="ck_item_chg" ck="true" class="help_tooltip" title="수정하실 항목을 전체선택합니다."> all</span></th> <th>행사명</th> <td class="input_lo"><?=$row['d_title']?></td> <th>여행기간</th> <td class="input_lo"><?=$row['d_period']?></td> </tr> <tr> <th class="item_disp_checkbox"></th> <th>행사코드</th> <td colspan="3"><?=$row['d_code']?></td> </tr> <? ## 데이투어 if($row_good['tab']=="D") { ?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_starttime"></th> <th>투어일정</th> <td colspan="3"> <img src="../image/icon/date_s.gif" style="position:relative;top:4px;"> 시작 <input name="d_starttime_1" type="text" size="3" value="<?=$row['d_starttime_1']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" <?if($tab!="D"){?>hname="출발시" required<?}?> />: <input name="d_starttime_2" type="text" size="3" value="<?=$row['d_starttime_2']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" hname="출발분" required /> → 마감 <input name="d_starttime2_1" type="text" size="3" value="<?=$row['d_starttime2_1']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" hname="도착시" required />: <input name="d_starttime2_2" type="text" size="3" value="<?=$row['d_starttime2_2']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);"hname="도착분" required /> </td> </tr> <? } ## 패키지 elseif($row_good['tab']=="P") { ?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_starttime"></th> <th>출발일정</th> <td> <?=$row['d_start']?>(<?=$row['d_start_yo']?>) 출발시간 <input name="d_starttime_1" type="text" size="3" value="<?=$row['d_starttime_1']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" />: <input name="d_starttime_2" type="text" size="3" value="<?=$row['d_starttime_2']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" /> <select name="d_starttime_see" style="width:75px;" class="abroad_disp_item"> <option value="A" <?=($row['d_starttime_see']=="A")?"selected":""?>>한국기준</option> <option value="B" <?=($row['d_starttime_see']=="B")?"selected":""?>>현지기준</option> </select> → 도착시간 <input type="checkbox" name="d_starttime2_nx" value="Y" <?=($row['d_starttime2_nx']=="Y")?"checked":""?> style='position:relative;top:3px;'>익일 <input name="d_starttime2_1" type="text" size="3" value="<?=$row['d_starttime2_1']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" />: <input name="d_starttime2_2" type="text" size="3" value="<?=$row['d_starttime2_2']?>" class="input_text" maxlength="2" onKeyDown="ChkNum(this,event);" /> <select name="d_starttime2_see" style="width:75px;" class="abroad_disp_item"> <option value="A" <?=($row['d_starttime2_see']=="A")?"selected":""?>>한국기준</option> <option value="B" <?=($row['d_starttime2_see']=="B")?"selected":""?>>현지기준</option> </select> </td> <th>출발편</th> <td> <select name="d_plane1_cd" style="width:140px;" class="d_plane1"> <option value=""></option> <? if($row['d_route']=="A") { // 항공편 for($i=0; $i<count($data_airplane) ; $i++) { $arr= $data_airplane[$i]; ?> <option value="<?=$arr['airline_code']?>" <?=($arr['airline_code']==$row['d_plane1_cd']) ? "selected":""?>><?=$arr['airnm_kor']?>[<?=$arr['airline_code']?>]</option> <? } }else{ // 기타 ?> <? for($i=0; $i<count($data_trans) ; $i++) { $arr= $data_trans[$i]; ?> <option value="<?=$arr['code']?>" <?=($arr['code']==$row['d_plane1_cd']) ? "selected":""?>><?=$arr['cd_nm']?></option> <?}?> <?}?> </select> 출발편명 <input name="d_plane1" type="text" size="8" value="<?=$row['d_plane1']?>" class="input_text d_plane1" style="text-align:center;text-transform:uppercase;ime-mode:inactive;ime-mode:disabled" onChange="javascript:this.value=this.value.toUpperCase();" /> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_endtime"></th> <th>도착일정</th> <td> <?=$row['d_end']?>(<?=$row['d_end_yo']?>) 출발시간 <input name="d_endtime_1" type="text" size="3" class="input_text" value="<?=$row['d_endtime_1']?>" maxlength="2" onKeyDown="ChkNum(this,event);" />: <input name="d_endtime_2" type="text" size="3" class="input_text" value="<?=$row['d_endtime_2']?>" maxlength="2" onKeyDown="ChkNum(this,event);" /> <select name="d_endtime_see" style="width:75px;" class="abroad_disp_item"> <option value="A" <?=($row['d_endtime_see']=="A")?"selected":""?>>한국기준</option> <option value="B" <?=($row['d_endtime_see']=="B")?"selected":""?>>현지기준</option> </select> → 도착시간 <input type="checkbox" name="d_endtime2_nx" value="Y" <?=($row['d_endtime2_nx']=="Y")?"checked":""?> style='position:relative;top:3px;'>익일 <input name="d_endtime2_1" type="text" size="3" class="input_text" value="<?=$row['d_endtime2_1']?>" maxlength="2" onKeyDown="ChkNum(this,event);" />: <input name="d_endtime2_2" type="text" size="3" class="input_text" value="<?=$row['d_endtime2_2']?>" maxlength="2" onKeyDown="ChkNum(this,event);" /> <select name="d_endtime2_see" style="width:75px;" class="abroad_disp_item"> <option value="A" <?=($row['d_endtime2_see']=="A")?"selected":""?>>한국기준</option> <option value="B" <?=($row['d_endtime2_see']=="B")?"selected":""?>>현지기준</option> </select> </td> <th>도착편</th> <td> <select name="d_plane2_cd" style="width:140px;" class="d_plane1"> <option value=""></option> <? if($row['d_route']=="A") { // 항공편 for($i=0; $i<count($data_airplane) ; $i++) { $arr= $data_airplane[$i]; ?> <option value="<?=$arr['airline_code']?>" <?=($arr['airline_code']==$row['d_plane2_cd']) ? "selected":""?>><?=$arr['airnm_kor']?>[<?=$arr['airline_code']?>]</option> <? } }else{ // 기타 ?> <? for($i=0; $i<count($data_trans) ; $i++) { $arr= $data_trans[$i]; ?> <option value="<?=$arr['code']?>" <?=($arr['code']==$row['etc']['d_plane2_cd']) ? "selected":""?>><?=$arr['cd_nm']?></option> <?}?> <?}?> </select> 도착편명 <input name="d_plane2" type="text" size="8" value="<?=$row['d_plane2']?>" class="input_text d_plane1" style="text-align:center;text-transform:uppercase;ime-mode:inactive;ime-mode:disabled" onChange="javascript:this.value=this.value.toUpperCase();" /> </td> </tr> <?php }else{?> <tr> <th></th> <th>여행일(사용일)</th> <td colspan="3"><b><?=$row['d_start']?>(<?=$row['d_start_yo']?>)</b> </td> </tr> <?php }?> <? // if(devCookie()){ // p($row_good); // exit; // } ## 데이투어 if($row_good['tab']=="D") { if($row_good['gdt']=="gr") { // 단체투어 ?> <tr> <th class="item_disp_checkbox"></th> <th>기준인원</th> <td colspan="3">1인</td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_people"></th> <th 333>인원</th> <td colspan="3"> <input name="d_people1" type="hidden" size="5" value="<?=$row['d_people1']?>"> 모객정원 <input name="d_people2" type="text" size="5" value="<?=$row['d_people2']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" hname="모객정원" required /> 명 / 최소출발 <input name="d_gr_people_min" type="text" size="5" value="<?=$row['d_gr_people_min']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" hname="최소행사인원" required /> 명 / 상태 : <?=$row['d_ok_str']?> </td> </tr> <? }else{ // 단독투어 ?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_pe_people_inwon"></th> <th>기준인원</th> <td colspan="3">탑승정원 <input name="d_pe_people_inwon" type="text" size="5" value="<?=$row['d_pe_people_inwon']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" hname="기준인원" required /> 인</td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_people"></th> <th>모객정원</th> <td colspan="3"> <input name="d_people1" type="hidden" size="5" value="<?=$row['d_people1']?>"> 최대 <input name="d_people2" type="text" size="5" value="<?=$row['d_people2']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" hname="대수(팀수)" required /> <input type="radio" name="d_pe_people_unit" id="d_pe_people_unit_1" value="대" <?=($row['d_pe_people_unit']=="대" or !$data_recent['d_pe_people_unit'])?"checked":""?>><label for="d_pe_people_unit_1"> 대</label> <input type="radio" name="d_pe_people_unit" id="d_pe_people_unit_2" value="팀" <?=($row['d_pe_people_unit']=="팀")?"checked":""?>><label for="d_pe_people_unit_2"> 팀</label> | <?=$row['d_ok_str']?> </td> </tr> <? } } ## 패키지 투어 else{ ?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_people" checked></th> <th>인원</th> <td> 현재모객 <input name="d_people1" type="text" size="5" value="<?=$row['d_people1']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" readonly /> 명 / 최대모객 <input name="d_people2" type="text" size="5" value="<?=$row['d_people2']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" hname="정원" required /> 명 / <span style="color:red;">최소출발</span> <input name="d_people3" type="text" size="5" value="<?=$row['d_people3']?>" class="input_text" maxlength="4" style="text-align:right" onKeyDown="ChkNum(this,event);" /> 명 </td> <th>상태</th> <td><?=$row['d_ok_str']?></td> </tr> <?}?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_money" checked></th> <th>판매가격<br><span style="color:red;font-weight: 500;">(*필수) </th> <td colspan="3"><span id="ajax_price_list"></span></td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_money_normal" checked></th> <th>정상가격<br><span style="color:red;font-weight: 500;">(*할인금액 표기) </th> <td colspan="3"><div id="ajax_normalprice_list"></div></td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="agent" checked></th> <th> 거래처<br> <span style="color:red;font-weight: 500;"> <br>*성인공급가<br> -공급처정산액<br><br>*성인판매가<br> -거래처입금액 </span> </th> <td colspan="3"> <span id="ajax_agent_list"></span> </td> </tr> <?php if($shop_point['use_yn']=="Y"){?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="point"></th> <th>적립금</th> <td colspan="3"> <input type="radio" name="point_yn" id="point_yn_1" value="Y" <?=($row['point_yn']=="Y") ? "checked":""?>> <label for="point_yn_1">적립함</label> <input type="radio" name="point_yn" id="point_yn_2" value="N" <?=($row['point_yn']!="Y") ? "checked":""?>> <label for="point_yn_2">적립안함</label> 구매액(상품가격)<input name="point_buy1" id="point_buy1" type="text" size="10" value="<?=number_format($row['point_buy1'])?>" class="input_text d_money" <?=$require_num_comma?> />원당 <input name="point_buy2" id="point_buy2" type="text" size="10" value="<?=number_format($row['point_buy2'])?>" class="input_text d_money" <?=$require_num_comma?> />원 적립 </td> </tr> <?php }?> <?php if($row_good['tab']!="T") {?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_content" checked></th> <th>일정표</th> <td colspan="3"> <select name="" id="comm_dateform_list" style="width:310px" onchange="common_base_dateform(this.value)"> <option value="">==기본일정선택==</option> <? for( $i=0 ; $i<count($base_sch_data) ; $i++){ $base_sch_arr = $base_sch_data[$i]; ?> <option value="<?=$base_sch_arr['SiDX']?>"><?=$base_sch_arr['ScheduleTitle']?></option> <?}?> </select> <HR style="border-top:1px solid #fff;width:100%;text-align:left;" /> <textarea name="d_content" id="d_content" class="" ><?=$row['d_content']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_special" checked> </th> <th>상품설명<br><span style="color:red;">(PC)</span></th> <td colspan="3"> <textarea name="d_g_special" id="d_g_special" class="ckeditor" ><?=$row['d_g_special']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_special_mo" checked></th> <th>상품설명<br><span style="color:red;">(MOBILE)</span></th> <td colspan="3"> <textarea name="d_g_special_mo" id="d_g_special_mo" class="ckeditor" ><?=$row['d_g_special_mo']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_inclusion" checked></th> <th>포함내역<br><span style="color:red; font-size:11px;">(미기입시 기본정보 노출)</span></th> <td colspan="3"> <textarea name="d_g_inclusion" id="d_g_inclusion" class="ckeditor" ><?=$row['d_g_inclusion']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_noinclusion" checked></th> <th>불포함내역<br><span style="color:red; font-size:11px;">(미기입시 기본정보 노출)</span></th> <td colspan="3"> <textarea name="d_g_noinclusion" id="d_g_noinclusion" class="ckeditor" ><?=$row['d_g_noinclusion']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_rule" checked></th> <th>취소 및 환불규정<br><span style="color:red;">(PC)</span></th> <td colspan="3"> <textarea name="d_g_rule" id="d_g_rule" class="ckeditor" ><?=$row['d_g_rule']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_g_rule_mo" checked></th> <th>취소 및 환불규정<br><span style="color:red;">(MOBILE)</span></th> <td colspan="3"> <textarea name="d_g_rule_mo" id="d_g_rule_mo" class="ckeditor" ><?=$row['d_g_rule_mo']?></textarea> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="hotel"></th> <th>숙박정보</th> <td colspan="3"> <span id="ajax_hotel_list"></span> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="place"></th> <th>관광지정보</th> <td colspan="3"> <span id="ajax_place_list"></span> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="d_good_map"></th> <th>위치정보</th> <td colspan="3"> <input name="d_good_map_x" id="d_good_map_x" type="text" size="20" class="input_text" value="<?=$row['d_good_map_x']?>" readonly /> / <input name="d_good_map_y" id="d_good_map_y" type="text" size="20" class="input_text" value="<?=$row['d_good_map_y']?>" readonly /> <input type="button" value="위치검색" class="Table_btn gray" onclick="to_dialog.iframe('../good/pop_map.html?g_uid=<?=$g_uid?>&d_uid=<?=$row['d_uid']?>&mode=goood_date_view','지도위치','800','600',true,true,'yes');" /> </td> </tr> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="option"></th> <th>옵션상품</th> <td colspan="3"> <span id="ajax_option_list"></span> </td> </tr> <?php }?> <tr> <th class="item_disp_checkbox"><input type="checkbox" name="chg_item_arr[]" class="item_checkbox_chg" value="admin_id" checked></th> <th>행사담당자</th> <td colspan="3"> <select name="admin_id"> <? for($i=0 ; $i < count($admin_arr) ; $i++){ $arr = $admin_arr[$i]; ?> <option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$row['admin_id'])?"selected":""?>><?=$arr['mb_nm']?></option> <?}?> </select> </td> </tr> </table> </form> <!-- /폼 --> <div class="btn_wrap_C mt30"> <a class="Bbtn red" onclick="chk_form();" href="javascript:;">저장</a> <br><br> </div> <!-- /본문 --> </div> <script type="text/javascript"> function chk_form() { var f = document.frmdate; if($("#frmdate input[name='ins_cond']:checked").val()=='private' && $(".d_start_item").length==0) { alert('적어도 1개이상 행사일자를 지정해주세요.'); return; } var result = to_validation(f); if ( result == false ) return false; if($("#frmdate input[name='chg_item_arr[]']:checked").length==0){ alert('좌측 수정하실항목을 체크해 주세요.'); return; } if (!confirm('저장하시겠습니까?')) return false; <?php if($row_good['tab']!="T"){?> $("#d_content").val(CKEDITOR.instances.d_content.getData()); $("#d_g_special").val(CKEDITOR.instances.d_g_special.getData()); $("#d_g_special_mo").val(CKEDITOR.instances.d_g_special_mo.getData()); //[son] $("#d_g_inclusion").val(CKEDITOR.instances.d_g_inclusion.getData()); $("#d_g_noinclusion").val(CKEDITOR.instances.d_g_noinclusion.getData()); $("#d_g_rule").val(CKEDITOR.instances.d_g_rule.getData()); $("#d_g_rule_mo").val(CKEDITOR.instances.d_g_rule_mo.getData()); //[son] <?php }?> ajax_post("ajax_proc","good_date_proc.html","frmdate"); } // 일정표 불러오기 function common_base_dateform(sidx) { ajax_post('','good_date_proc.html?SqlType=date_recv&SiDX='+sidx,'','fn_create_date_ckeditor'); // 기본일정표 } // 공통일정표 or 기본일정표 or 생성일정표 or 복사일정표를 data로 받음 function fn_create_date_ckeditor(data,status) { if ( status == "success" ) { // 에디터 instance 생성 var editor = eval('CKEDITOR.instances.d_content'); // 에디터로 data세팅 editor.setData(data); }else return; } // 총판매가 계산 function cal_d_money() { $("#price_set_item > tbody > tr").each(function(){ var d_cost = $(this).find("input:eq(1)").val().replace(/,/g,''); var oil_money = $(this).children("td").first().next().next().find("input").val().replace(/,/g,''); var d_money=0; d_money = parseFloat(d_cost) + parseFloat(oil_money); $(this).find("input").last().val(number_format(d_money.toString())); // 환율계산(2016-12-09.허종) if(exchange_fg=="Y") { ex_money = cal_exchange_money(d_money); $(this).children("td").last().find("span").html(number_format(ex_money.toString())); } }); } // //환율계산(2016-12-09.허종) // var exchange_fg = '<?=$row_good['exchange_fg']?>'; // 환율사용유무 Y/N var ext_to_krw = parseFloat('<?=$row_good['ext_to_krw']?>'); // 화폐교환 원(KRW) var ext_unit = parseInt('<?=$row_good['ext_unit']?>'); // 1000원단위,100원단위 var ext_round = '<?=$row_good['ext_round']?>'; // 올림(A)반올림(R)버림(L) function cal_exchange_money(d_money) { var ex_money=0; var h_money = Math.round(parseFloat(d_money) * parseFloat(ext_to_krw)); switch(ext_round){ case "A":// 올림 ex_money = Math.ceil(h_money/ext_unit)*ext_unit; break; case "R":// 반올림 ex_money = Math.round(h_money/ext_unit)*ext_unit; break case "L":// 버림 ex_money = Math.floor(h_money/ext_unit)*ext_unit; break; } return ex_money; } $(function(){ $(".equal").css("cursor","pointer") .bind("click",function(){ var price = $(this).siblings("input").val(); var _m_fill = $(this).attr("fill"); $("#price_set_item ."+_m_fill).val(price); // 총판매가수정일 경우는 총판매가 계산 안함 if(_m_fill != 'd_money') cal_d_money(); }); // 총판매가 계산 $("#price_set_item > tbody input[type='text']").bind("blur",function(){ if($(this).attr("name").indexOf('d_money')<0) cal_d_money(); }); // 대(팀) 선택 $("#frmdate input[name='d_pe_people_unit']").change(function(){ $("#item_disp_pe_unit").html($(this).val()); }); // 가격목록 ajax_post('ajax_price_list','ajaxGoodDatePrice.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 대리점목록 //ajax_post('ajax_agent_list','ajaxGoodDateAgent.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 숙박정보 ajax_post('ajax_hotel_list','ajaxGoodDateHotel.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 관광지 정보 ajax_post('ajax_place_list','ajaxGoodDatePlace.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 옵션상품 ajax_post('ajax_option_list','ajaxGoodDateOption.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 정상가격목록 ajax_post('ajax_normalprice_list','ajaxGoodDateNormalPrice.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 대리점목록 ajax_post('ajax_agent_list','ajaxGoodDateAgent.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>'); // 에디터 <?php if($row_good['tab']!="T"){?> CKEDITOR.replace('d_content', {width:'100%',height:'350px'}); CKEDITOR.replace('d_g_special', {width:'100%',height:'350px'}); CKEDITOR.replace('d_g_special_mo', {width:'100%',height:'350px'}); //[son] CKEDITOR.replace('d_g_inclusion', {width:'100%',height:'350px'}); CKEDITOR.replace('d_g_noinclusion', {width:'100%',height:'350px'}); CKEDITOR.replace('d_g_rule', {width:'100%',height:'350px'}); CKEDITOR.replace('d_g_rule_mo', {width:'100%',height:'350px'}); //[son] <?php }?> $(".item_disp_checkbox").css({'padding':'0px 0px 0px 0px','text-align':'center'}); $("#ck_item_chg").css("cursor","pointer").on("click",function(){ var ck = $(this).attr("ck"); if(ck=="true") { $(".item_checkbox_chg").prop("checked",true); $(this).attr("ck","false"); }else{ $(".item_checkbox_chg").prop("checked",false); $(this).attr("ck","true"); } }); }) </script>