ÿØÿà 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/admin/place/ |
Upload File : |
<? include "../include/top_proc.html";//공통파일 인클루드 include "_common.php"; $class_PlaceTour = new PlaceTour(); //언어 테이블 선택 $table="TB_PLACE_ENG"; if($lang=="cn") $table = "TB_PLACE_CN"; //중국어.영어 관광(지)정보 수정 if($SqlType=="tourplace_edit"){ if(!$seq or !$lang or !$place_nm) exit; $data = $class_PlaceTour->tourplace_fetch(" and seq = '{$seq}' "); if(count($data)>0){//수정 $sql = "update {$table} set "; $sql .= " place_nm='{$place_nm}'"; $sql .= " ,address='{$address}'"; $sql .= " ,tel='{$tel}'"; $sql .= " ,fax='{$fax}'"; $sql .= " ,place_intro='{$place_intro}'"; $sql .= " ,sisul_intro='{$sisul_intro}'"; $sql .= " ,user_intro='{$user_intro}'"; $sql .= " where seq = '{$seq}' "; db_query($sql); }else{//입력 $sql = "insert into {$table} set "; $sql .= " seq='{$seq}'"; $sql .= " ,place_nm='{$place_nm}'"; $sql .= " ,address='{$address}'"; $sql .= " ,tel='{$tel}'"; $sql .= " ,fax='{$fax}'"; $sql .= " ,place_intro='{$place_intro}'"; $sql .= " ,sisul_intro='{$sisul_intro}'"; $sql .= " ,user_intro='{$user_intro}'"; db_query($sql); } error_msg("document.location.href('sights_edit_lang.html?seq={$seq}&lang={$lang}&{$_href}');","script"); } ?>