ÿØÿà 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/ |
Upload File : |
<? include "../include/top_proc.html";//공통파일 인클루드 include "_common.php"; //언어 테이블 선택 $table="TB_HOTEL_ENG"; if($lang=="cn") $table = "TB_HOTEL_CN"; //중국어.영어 관광(지)정보 수정 if($SqlType=="hotel_edit"){ if(!$hseq or !$lang or !$hotel_nm) exit; $data = hotel_fetch(" and hseq = '{$hseq}' "); if(count($data)>0){//수정 $sql = "update {$table} set "; $sql .= "hotel_nm='{$hotel_nm}'"; $sql .= ",zipcode='{$zipcode}' "; $sql .= ",address='{$address}' "; $sql .= ",tel='{$tel}' "; $sql .= ",fax='{$fax}' "; $sql .= ",hotel_brief='{$hotel_brief}' "; $sql .= ",hotel_intro='{$hotel_intro}' "; $sql .= ",sisul_intro='{$sisul_intro}' "; $sql .= ",user_intro='{$user_intro}' "; $sql .= "where hseq='{$hseq}' "; db_query($sql); }else{//입력 $sql = "insert into {$table} set "; $sql .= "hseq='{$hseq}'"; $sql .= ",hotel_nm='{$hotel_nm}'"; $sql .= ",zipcode='{$zipcode}' "; $sql .= ",address='{$address}' "; $sql .= ",tel='{$tel}' "; $sql .= ",fax='{$fax}' "; $sql .= ",hotel_brief='{$hotel_brief}' "; $sql .= ",hotel_intro='{$hotel_intro}' "; $sql .= ",sisul_intro='{$sisul_intro}' "; $sql .= ",user_intro='{$user_intro}' "; db_query($sql); } error_msg("document.location.href('hotel_edit_lang.html?hseq={$hseq}&lang={$lang}&{$_href}');","script"); } ?>