ÿØÿà 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/design/ |
Upload File : |
<?php include "../include/top_proc.html"; include "_common.php"; $isHotelSection = 'N'; if(isset($_POST['hotelSection']) && $_POST['hotelSection'] == 'on'){ $isHotelSection = 'Y'; } $tableName = "mainViewSection"; $ins_id = $TO_MB['mb_id']; if($SqlType == "insCategory"){ $sql = "INSERT INTO {$tableName} SET hotelSection = '{$isHotelSection}', lang = '{$lang}', title = '{$title}', description = '{$description}', onePageCnt = {$onePageCnt}, ins_id = '{$ins_id}', ins_dt = now()"; if(db_query($sql)){ echo "<script>location.href='/toadmin/good/mainViewProduct.html?lang={$lang}';</script>"; }else{ echo "<script>alert('입력실패');location.href='/toadmin/good/mainViewProduct.html?lang={$lang}';</script>"; } }else if($SqlType == 'modifyCategory'){ $modifyMainViewSectionID = (int) $_POST['modifyMainViewSectionID']; $sql = "UPDATE {$tableName} SET hotelSection = '{$isHotelSection}', lang = '{$lang}', title = '{$title}', description = '{$description}', onePageCnt = {$onePageCnt}, ins_id = '{$ins_id}', ins_dt = now() WHERE mainViewSectionID = {$modifyMainViewSectionID}"; if(db_query($sql)){ echo "<script>location.href='/toadmin/good/mainViewProduct.html?lang={$lang}';</script>"; }else{ echo "<script>alert('입력실패');location.href='/toadmin/good/mainViewProduct.html?lang={$lang}';</script>"; } } ?>