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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/res_hotel/hotelResPerson.php
<?php
if(!is_array($cf)) exit;

$person_data=array();

// 예약수정
if($SqlType!="hote_res_ins") $person_data = $row['hotel_res_person'];
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td valign="top" colspan="3">
			<div id="ajax_person">
			<?php if($SqlType=="hotel_res_addon" or $SqlType=="hotel_res_updt") {?>
			<div style="width:150px;float:right;margin:0 0 10px 0;"><input type="checkbox" name="" id="chk_write_hotel_person" ><label for="chk_write_hotel_person">숙박자정보 자동기입</label></div>
			<?php }?>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write2" id="itemTablePersonBox">
			<colgroup>
				<col width="50" />
				<col width="70" />
				<col width="120" />
				<col width="170" />
				<col width="120" />
				<col width="120" />
				<col width="120" />
				<col width="120" />
				<col />
			</colgroup>		
			<thead>
				<tr>
					<th>구분</th><th>성별</th><th>한글이름</th><th>영문(이름/성)</th><th>전화번호</th><th>국적(생년월일)</th><th>여권번호</th><th>여권만료일</th><th width="">비고</th>
				</tr>
				</thead>
				<tbody>
				<?
					for($i=0 ; $i < count($person_data) ; $i++) {
						$arr = $person_data[$i];
				?>
								
				<tr class="itemAddonPerson">
					<td>	<input name="generation_arr[]" type="hidden" value="<?=$arr['generation']?>"><?=$arr['generation_str']?> </td>
					<td>
						<select name="gend_arr[]" style="width:30px;"> 
							<option value=""></option>
							<option value="M" <?=($arr['gend']=="M")?"selected":""?>>남</option>
							<option value="F" <?=($arr['gend']=="F")?"selected":""?>>여</option>
						</select>					
					</td>
					<td><input type="text" class="input_text" name="name_kor_arr[]" value="<?=$arr['name_kor']?>" style="width:80px;"></td>
					<td><input type="text" class="input_text" name="name_eng1_arr[]" value="<?=$arr['name_eng1']?>" style="width:55px;"> <input type="text" class="input_text" name="name_eng2_arr[]" value="<?=$arr['name_eng2']?>" style="width:55px;"></td>
					<td><input type="text" class="input_text" name="tel_arr[]" value="<?=$arr['tel']?>" style="width:80px;"></td>
					<td><input type="text" class="input_text" name="birth_dt_arr[]" style="width:80px;" value="<?=$arr['birth_dt']?>" ></td>
					<td><input type="text" class="input_text" name="passenger_num_arr[]" value="<?=$arr['passenger_num']?>" style="width:80px;"></td>
					<td><input type="text" class="cal_input" name="passenger_expire_arr[]" value="<?=$arr['passenger_expire']?>" style="width:80px;" readonly="" onclick="AjaxCal(this,event)"></td>
					<td class="txt_l pl10"><input type="text" class="input_text" name="remarks_arr[]" value="<?=$arr['remarks']?>" style="width:90%;"></td>
				</tr>				
				<?}?>
				</tbody>
			</table>
			</div>
		</td>
	</tr>
	<tr>
		<td valign="top" colspan="3" height="15"></td>
	</tr>
</table>
<script type="text/javascript">

//기존예약정보의 숙박자정보 json type
var data_hotel_res_person=<?=json_encode($row_res['hotel_res_person'])?>; 

$(function(){
	$("#chk_write_hotel_person").on("click",function(){
		if($(this).prop("checked")==true) {
			$.each(data_hotel_res_person,function(i,v){
				var generation=v.generation;
				var gend=v.gend;
				var name_kor=v.name_kor;
				var name_eng1=v.name_eng1;
				var name_eng2=v.name_eng2;
				var tel=v.tel;
				var birth=v.birth;
				var passenger_num=v.passenger_num;
				var passenger_expire=v.passenger_expire;
				var remarks=v.remarks;

				var sw=true;
				$("#itemTablePersonBox .itemAddonPerson").each(function(){
					if(!$(this).hasClass("complete") && sw==true) {
						if($(this).find("input[name='generation_arr[]']").val()==generation) {
							$(this).find("select[name='gend_arr[]']").val(gend).prop("selected",true);
							$(this).find("input[name='name_kor_arr[]']").val(name_kor);
							$(this).find("input[name='name_eng1_arr[]']").val(name_eng1);
							$(this).find("input[name='name_eng2_arr[]']").val(name_eng2);
							$(this).find("input[name='tel_arr[]']").val(tel);
							$(this).find("input[name='birth_dt_arr[]']").val(birth);
							$(this).find("input[name='passenger_num_arr[]']").val(passenger_num);
							$(this).find("input[name='passenger_expire_arr[]']").val(passenger_expire);
							$(this).find("input[name='remarks_arr[]']").val(remarks);
							
							$(this).addClass("complete");
							sw=false;
						}
					}
				});
				
			});					
		}

		$(this).prop("checked",false);
	});
	
});
</script>

Anon7 - 2021