ÿØÿà 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/ |
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']; $b_uid_s = (int) $b_uid_s; // p($_POST); // exit; /*if(devCookie()){ p($b_uid_s); exit; `is_vacation_benepia_show` }*/ $isVacationBenepiaShow = 'N'; if($_POST['is_vacation_benepia_show'] == 'on'){ $isVacationBenepiaShow = 'Y'; } $isBenepiaShow = 'N'; if($_POST['is_benepia_show'] == 'on'){ $isBenepiaShow = 'Y'; } if($SqlType == "insCategory"){ $sql = "INSERT INTO {$tableName} SET b_uid_s = {$b_uid_s}, hotelSection = '{$isHotelSection}', lang = '{$lang}', title = '{$title}', description = '{$description}', onePageCnt = {$onePageCnt}, ins_id = '{$ins_id}', is_vacation_benepia_show = '{$isVacationBenepiaShow}', is_benepia_show = '{$isBenepiaShow}', 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 b_uid_s = {$b_uid_s}, hotelSection = '{$isHotelSection}', lang = '{$lang}', title = '{$title}', description = '{$description}', onePageCnt = {$onePageCnt}, ins_id = '{$ins_id}', is_vacation_benepia_show = '{$isVacationBenepiaShow}', is_benepia_show = '{$isBenepiaShow}', 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>"; } } ?>