ÿØÿà 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/good_en/ |
Upload File : |
<? include "../include/top_proc.html"; include "_common.php"; $table = "TB_SelHotel"; // 선택호텔 등록 if ($SqlType == "selhotel_ins") { if(!$g_uid or !$hseq) exit; // 선택된 호텔 정보 $arr = TO_get_hotel($g_uid,$hseq); $tot = count($arr); // 같은 선택호텔이 있는지 체크 if ( $tot==0 ) { $row = hotel_list(" and hseq='{$hseq}' "); // 호텔정보 $arr = $row[0]; $sql = "insert into {$table} set "; $sql .= " g_uid='{$g_uid}', "; $sql .= " Bidx='{$Bidx}', "; $sql .= " Cidx='{$Cidx}', "; $sql .= " hseq='{$arr[hseq]}', "; $sql .= " HotelName='{$arr[hotel_nm]}', "; $sql .= " HGoods_Code='{$arr[hotel_code]}', "; $sql .= " SortType='A', "; $sql .= " RegDate=now() "; db_query($sql); error_msg("ajax_loader('good_hotel_selhotel_ajax.html?g_uid={$g_uid}','ajax_selhotel');","script"); }else{ error_msg("alert('이미선택된 호텔이 있습니다.');","script"); } // 선택호텔 삭제 }elseif($SqlType=="selhotel_delete"){ if ( !$g_uid ) exit; for($i=0 ; $i<count($chkSel) ; $i++){ if ($chkSel[$i]) { $Sidx = $chkSel[$i]; $sql = "delete from {$table} where g_uid='{$g_uid}' and Sidx='{$Sidx}' "; db_query($sql); } } error_msg("ajax_loader('good_hotel_selhotel_ajax.html?g_uid={$g_uid}','ajax_selhotel');","script"); // 선택호텔 순서변경 }elseif($SqlType=="selhotel_order"){ if ( !$g_uid ) exit; for($i=0 ; $i<count($Sidx_arr) ; $i++){ $OrderNum = $OrderNum_arr[$i]; $Sidx = $Sidx_arr[$i]; $sql = "update {$table} set OrderNum='{$OrderNum}' where g_uid='{$g_uid}' and Sidx='{$Sidx}' "; db_query($sql); } error_msg("ajax_loader('good_hotel_selhotel_ajax.html?g_uid={$g_uid}','ajax_selhotel');","script"); } ?>