ÿØÿà 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/ajaxGoodDateNormalPrice.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{
	$row['d_money4p'] = 0;
	$row['d_money5p'] = 0;
	$row['d_money6p'] = 0;
	$row['d_money8p'] = 0;
	$row['d_money4'] = 0;
	$row['d_money5'] = 0;
	$row['d_money6'] = 0;
	$row['d_money8'] = 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+스크립트

?>
<table border="0" cellspacing="0" cellpadding="0" class="setting_write" id="item_normal_price">
	<thead>
	<tr>
		<th width="75px">구분</th>
		<th>퍼센트(%)</th>
		<th>정상 판매가</th>
		<?if($row_good['exchange_fg']=="Y"){?><th>정상 판매가(원.KRW)</th><?php }?>
	</tr>
	</thead>
	<tbody>
	<tr>
		<td class="txt_c"><?if($row_good['tab']=="D" and $row_good['gdt']=="pe"){?>1대<?}else{?>성인<?}?></td>
		<td class="txt_l">
			<input name="d_money4p" type="text" size="5" value="<?=$row['d_money4p']?>" class="input_text normal_price_p" maxlength="5" <?=$require_num_comma?> />%
			<span class="equal" fill="normal_price_p">▼</span>
		</td>
		<td>
			<input name="d_money4" type="text" size="16" value="<?=number_format($row['d_money4'])?>" class="input_text normal_price"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?>
			<span class="equal" fill="normal_price">▼</span>
		</td>
		<?if($row_good['exchange_fg']=="Y"){?><td><span id="item_ex_money4"><?=number_format($row['adult_price_normal'])?></span></td><?php }?>
	</tr>
	<tr style="display:<?=($row_good['tab']=="D" and $row_good['gdt']=="pe") ?"none":""?>;">
		<td class="txt_c">소인</td>
		<td><input name="d_money5p" type="text" size="5" value="<?=$row['d_money5p']?>" class="input_text normal_price_p" maxlength="5" <?=$require_num_comma?> />%</td>
		<td><input name="d_money5" type="text" size="16" value="<?=number_format($row['d_money5'])?>" class="input_text normal_price"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>		
		<?if($row_good['exchange_fg']=="Y"){?><td><span id="item_ex_money5"><?=number_format($row['child_price_normal'])?></span></td><?php }?>
	</tr>
	<tr style="display:<?=($row_good['tab']=="D" and $row_good['gdt']=="pe") ?"none":""?>;">
		<td class="txt_c">유아</td>
		<td><input name="d_money6p" type="text" size="5" value="<?=$row['d_money6p']?>" class="input_text normal_price_p" maxlength="5"  <?=$require_num_comma?> />%</td>
		<td><input name="d_money6" type="text" size="16" value="<?=number_format($row['d_money6'])?>" class="input_text normal_price"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
		<?if($row_good['exchange_fg']=="Y"){?><td><span id="item_ex_money6"><?=number_format($row['baby_price_normal'])?></span></td><?php }?>
	</tr>
	<!--
	<tr style="display:<?=($row_good['tab']=="D" and $row_good['gdt']=="pe") ?"none":""?>;">
		<td class="txt_c">영아</td>
		<td><input name="d_money8p" type="text" size="5" value="<?=$row['d_money8p']?>" class="input_text normal_price_p" maxlength="5" <?=$require_num_comma?> />%</td>
		<td><input name="d_money8" type="text" size="16" value="<?=number_format($row['d_money8'])?>" class="input_text normal_price"  <?=$require_num_comma?> /><?=$row_good['ext_nm']?></td>
		<?if($row_good['exchange_fg']=="Y"){?><td><span id="item_ex_money8"><?=number_format($row['infant_price_normal'])?></span></td><?php }?>
	</tr>
	-->
	</tbody>
</table>
<script type="text/javascript">
function cal_normal_price()
{
	var dc_money4=0 , dc_money5=0 , dc_money6=0 , dc_money8=0;
	var ex_money4=0 , ex_money5=0 , ex_money6=0 , ex_money8=0;
	var d_money1 = parseInt($("#price_set_item input[name='d_money1']").val().replace(/,/g,''));
	try{var d_money2 = parseInt($("#price_set_item input[name='d_money2']").val().replace(/,/g,''))}catch(e){var d_money2=0;};
	try{var d_money3 = parseInt($("#price_set_item input[name='d_money3']").val().replace(/,/g,''))}catch(e){var d_money3=0;};
	try{var d_money7 = parseInt($("#price_set_item input[name='d_money7']").val().replace(/,/g,''))}catch(e){var d_money7=0;};

	var d_money4p = $("#item_normal_price input[name='d_money4p']").val();
	var d_money5p = $("#item_normal_price input[name='d_money5p']").val();
	var d_money6p = $("#item_normal_price input[name='d_money6p']").val();
	var d_money8p = $("#item_normal_price input[name='d_money8p']").val();

	// 할증(정상가)계산
	dc_money4 = number_format(Math.ceil(d_money1 / (1 - d_money4p / 100)));
	dc_money5 = number_format(Math.ceil(d_money2 / (1 - d_money5p / 100)));
	dc_money6 = number_format(Math.ceil(d_money3 / (1 - d_money6p / 100)));
	dc_money8 = number_format(Math.ceil(d_money7 / (1 - d_money8p / 100)));

	// 환율계산
	ex_money4 = Math.round(cal_exchange_money(dc_money4));
	ex_money5 = Math.round(cal_exchange_money(dc_money5));
	ex_money6 = Math.round(cal_exchange_money(dc_money6));
	ex_money8 = Math.round(cal_exchange_money(dc_money8));

	// 할증(할증가)가격 
	$("#item_normal_price input[name='d_money4']").val(dc_money4);
	$("#item_normal_price input[name='d_money5']").val(dc_money5);
	$("#item_normal_price input[name='d_money6']").val(dc_money6);
	$("#item_normal_price input[name='d_money8']").val(dc_money8);

	// 환율
	$("#item_ex_money4").html(number_format(ex_money4.toString()));
	$("#item_ex_money5").html(number_format(ex_money5.toString()));
	$("#item_ex_money6").html(number_format(ex_money6.toString()));
	$("#item_ex_money8").html(number_format(ex_money8.toString()));
}


$(function(){
	$(".normal_price_p").on("blur",function(){
		cal_normal_price();
	});

	$(".normal_price").on("blur",function(){
		// 정상판매가 수정후 환율계산
		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()));			
		}
	});
	
	$("#item_normal_price .equal").css("cursor","pointer")
		.bind("click",function(){
			var price = $(this).siblings("input").val();
			var _m_fill = $(this).attr("fill");

			$("#item_normal_price ."+_m_fill).val(price);

			cal_normal_price();
	});
	
	<?php if(!$d_uid){?>
	cal_normal_price();
	<?php }?>
})
</script>




Anon7 - 2021