경로 및 전체테이블명 변경

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_option_table']}` where it_id = '$it_id' ";
$sql = " delete from `{$g4['shop_option_table']}` where it_id = '$it_id' ";
sql_query($sql);
}
@ -11,7 +11,7 @@ if($makemode == 'create') {
$count = count($_POST['opt_id']);
if(!$count) {
$sql = " update {$g4['yc4_item_table']}
$sql = " update {$g4['shop_item_table']}
set it_option_use = '0',
it_opt1_subject = '',
it_opt2_subject = '',
@ -32,12 +32,12 @@ for($i = 0; $i < $count; $i++) {
opt_notice = '{$_POST['opt_notice'][$i]}',
opt_use = '{$_POST['opt_use'][$i]}' ";
$row = sql_fetch(" select opt_id from `{$g4['yc4_option_table']}` where it_id = '$it_id' and opt_id = '{$_POST['opt_id'][$i]}' ");
$row = sql_fetch(" select opt_id from `{$g4['shop_option_table']}` where it_id = '$it_id' and opt_id = '{$_POST['opt_id'][$i]}' ");
if($row['opt_id']) {
$sql = " update `{$g4['yc4_option_table']}` set $sql_common where it_id = '$it_id' and opt_id = '{$_POST['opt_id'][$i]}' ";
$sql = " update `{$g4['shop_option_table']}` set $sql_common where it_id = '$it_id' and opt_id = '{$_POST['opt_id'][$i]}' ";
} else {
$sql = " insert into `{$g4['yc4_option_table']}` set it_id = '$it_id', opt_id = '{$_POST['opt_id'][$i]}', $sql_common ";
$sql = " insert into `{$g4['shop_option_table']}` set it_id = '$it_id', opt_id = '{$_POST['opt_id'][$i]}', $sql_common ";
}
sql_query($sql);