경로 및 전체테이블명 변경

This commit is contained in:
gnuboard
2013-02-07 16:56:29 +09:00
parent d7b9aab47a
commit f7855b165c
184 changed files with 711 additions and 708 deletions

View File

@ -3,7 +3,7 @@ include_once('./_common.php');
// 새로 테이블을 만든 경우 기존 옵션정보 삭제
if($makemode == 'create') {
$sql = " delete from `{$g4['yc4_supplement_table']}` where it_id = '$it_id' ";
$sql = " delete from `{$g4['shop_supplement_table']}` where it_id = '$it_id' ";
sql_query($sql);
}
@ -11,7 +11,7 @@ if($makemode == 'create') {
$count = count($_POST['sp_id']);
if(!$count) {
$sql = " update {$g4['yc4_item_table']} set it_supplement_use = '0' where it_id = '$it_id' ";
$sql = " update {$g4['shop_item_table']} set it_supplement_use = '0' where it_id = '$it_id' ";
sql_query($sql);
echo '<script>self.close();</script>';
exit;
@ -23,12 +23,12 @@ for($i = 0; $i < $count; $i++) {
sp_notice = '{$_POST['sp_notice'][$i]}',
sp_use = '{$_POST['sp_use'][$i]}' ";
$row = sql_fetch(" select sp_id from `{$g4['yc4_supplement_table']}` where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ");
$row = sql_fetch(" select sp_id from `{$g4['shop_supplement_table']}` where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ");
if($row['sp_id']) {
$sql = " update `{$g4['yc4_supplement_table']}` set $sql_common where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ";
$sql = " update `{$g4['shop_supplement_table']}` set $sql_common where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ";
} else {
$sql = " insert into `{$g4['yc4_supplement_table']}` set it_id = '$it_id', sp_id = '{$_POST['sp_id'][$i]}', $sql_common ";
$sql = " insert into `{$g4['shop_supplement_table']}` set it_id = '$it_id', sp_id = '{$_POST['sp_id'][$i]}', $sql_common ";
}
sql_query($sql);