ÿØÿà JFIF ` ` ÿþ
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 : |
<? include "../include/top.html"; include "_common.php"; $bc_arr = TO_get_bc("","N"," and tab = 'L' "); $data = hotel_list(" and hseq='{$hseq}' "); $rows = $data[0]; //지역코드 if ($rows['areaa_cd']) $data_areab = to_area_b($rows['areaa_cd'],""," and DelFlagH='N' "); // 국가 if ($rows['areab_cd']) $data_areac = to_area_c("",$rows['areab_cd'],"","N"," and DelFlagH='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">></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_detail" /> <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" summary="호텔의 기본정보를 수정합니다."> <caption>호텔 기본정보 수정</caption> <colgroup> <col width="170px" /> <col /> </colgroup> <tbody> <tr> <th scope="row"><label for="hotel_code">호텔코드</label></th> <td><input name="hotel_code" id="hotel_code" type="text" value="<?=$rows['hotel_code']?>" style="width:135px;" class="input_text" maxlength="20" hname="숙소코드" required /> </td> </tr> <tr style="height:45px;"> <th scope="row">상품특징아이콘</th> <td> <? $g_type_arr = explode(",",$rows['g_type']); for( $i=0 ; $i<count($special_arr) ; $i++) { $arr = $special_arr[$i]; $checked = ""; for( $j=0 ; $j<count($g_type_arr) ; $j++){ if ($g_type_arr[$j]==$arr['code']) $checked="checked"; } ?> <label for="g_type_<?=$i?>"><input type="checkbox" name="g_type_arr[]" id="g_type_<?=$i?>" value="<?=$arr['code']?>" <?=$checked?>> <img src="<?=$arr['cd_img']?>"></label> <? } ?> </td> </tr> <? $equip_arr = $rows['equipment']; ?> <tr> <th scope="row">객실설비 및 비품</th> <td> <? $equipment_arr = explode(",",$rows['equipment']); $sw_cnt = 1; $equipment_total = count($code_equipment); $checked_str = ""; for( $s=0 ; $s < $equipment_total ; $s++) { $eq_arr = $code_equipment[$s]; if($s == 0 or (($s % 5) == 0) ){ $sw_cnt = 1; ?> <dl class="facility"> <?} foreach( $equipment_arr as $id => $val) if($val==$eq_arr['code']) $checked_str = "checked"; ?> <dd><input name="room_equipment[]" id="room_equipment<?=$s?>" type="checkbox" value="<?=$eq_arr['code']?>" <?=$checked_str?> /><label for="room_equipment<?=$s?>"> <?=$eq_arr['cd_nm']?></label></dd> <? $checked_str = ""; if( $sw_cnt == 5 ){?> </dl> <? } $sw_cnt++; } if($sw_cnt < 5) echo "</dl>"; ?> </td> </tr> <tr> <th scope="row">위치설명</th> <td><textarea name="position_intro" id="position_intro" style="width:750px; height:100px;" class="" ><?=$rows['position_intro']?></textarea></td> </tr> <tr> <th scope="row">호텔소개</th> <td><div style="width:750px;"><textarea name="hotel_intro" id="hotel_intro" class="ckeditor" ><?=$rows['hotel_intro']?></textarea></div></td> </tr> <tr> <th scope="row">시설소개</th> <td><div style="width:750px;"><textarea name="sisul_intro" id="sisul_intro" class="ckeditor" ><?=$rows['sisul_intro']?></textarea></div></td> </tr> <tr> <th scope="row">체크인/체크아웃</th> <td><div style="width:750px;"><textarea name="checkin_intro" id="checkin_intro" class="ckeditor" ><?=$rows['checkin_intro']?></textarea></div></td> </tr> <tr> <th scope="row">이용안내</th> <td><div style="width:750px;"><textarea name="user_intro" id="user_intro" class="ckeditor" ><?=$rows['user_intro']?></textarea></div></td> </tr> <tr> <th scope="row">취소/환불안내<br />(예약규정)</th> <td><div style="width:750px;"><textarea name="rule_intro" id="rule_intro" class="ckeditor" ><?=$rows['rule_intro']?></textarea></div></td> </tr> <tr> <th scope="row">담당자</th> <td> <select name="admin_id" id="admin_id" style="width:200px;" hname="담당자" required> <option value="">==선택==</option> <? $admin_id=($rows['admin_id']) ? $rows['admin_id']:$TO_MB['mb_id']; for($i=0 ; $i < count($admin_arr) ; $i++){ $arr = $admin_arr[$i]; ?> <option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$admin_id)?"selected":""?>><?=$arr['mb_nm']?></option> <?}?> </select> </td> </tr> </tbody> </table> </form> <!-- /폼 --> <div class="btn_wrap_C mt30"> <a class="Bbtn red" onClick="edit_frm();" href="javascript:;">수정</a> <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'); <?}?> $(".ckeditor").each(function(){ var c=$(this).attr("id"); // /js/ckeditor_v4.9/plugins/upimgs,admin.lib.js 참고 CKEDITOR.replace(c).ui.addButton( 'Heart', { label: '이미지멀티업로드', command: 'insertHeart', toolbar: 'heart' }); }); }); </script> <? include "../include/footer.html"; ?>