diff --git a/adm/shop_admin/bannerform.php b/adm/shop_admin/bannerform.php index 0ff1e944e..d3862eee4 100644 --- a/adm/shop_admin/bannerform.php +++ b/adm/shop_admin/bannerform.php @@ -8,7 +8,7 @@ $html_title = '배너'; if ($w=="u") { $html_title .= ' 수정'; - $sql = " select * from {$g4['yc4_banner_table']} where bn_id = '$bn_id' "; + $sql = " select * from {$g4['shop_banner_table']} where bn_id = '$bn_id' "; $bn = sql_fetch($sql); } else diff --git a/adm/shop_admin/bannerformupdate.php b/adm/shop_admin/bannerformupdate.php index 5419c27a2..ff46428ac 100644 --- a/adm/shop_admin/bannerformupdate.php +++ b/adm/shop_admin/bannerformupdate.php @@ -21,9 +21,9 @@ if ($w=="") { if (!$bn_bimg_name) alert('배너 이미지를 업로드 하세요.'); - sql_query(" alter table {$g4['yc4_banner_table']} auto_increment=1 "); + sql_query(" alter table {$g4['shop_banner_table']} auto_increment=1 "); - $sql = " insert into {$g4['yc4_banner_table']} + $sql = " insert into {$g4['shop_banner_table']} set bn_alt = '$bn_alt', bn_url = '$bn_url', bn_position = '$bn_position', @@ -40,7 +40,7 @@ if ($w=="") } else if ($w=="u") { - $sql = " update {$g4['yc4_banner_table']} + $sql = " update {$g4['shop_banner_table']} set bn_alt = '$bn_alt', bn_url = '$bn_url', bn_position = '$bn_position', @@ -56,7 +56,7 @@ else if ($w=="d") { @unlink(G4_DATA_PATH."/banner/$bn_id"); - $sql = " delete from {$g4['yc4_banner_table']} where bn_id = $bn_id "; + $sql = " delete from {$g4['shop_banner_table']} where bn_id = $bn_id "; $result = sql_query($sql); } diff --git a/adm/shop_admin/bannerlist.php b/adm/shop_admin/bannerlist.php index 8b124da08..5296186f1 100644 --- a/adm/shop_admin/bannerlist.php +++ b/adm/shop_admin/bannerlist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배너관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_banner_table']} "; +$sql_common = " from {$g4['shop_banner_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; @@ -54,7 +54,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 - + diff --git a/adm/shop_admin/categoryformupdate.php b/adm/shop_admin/categoryformupdate.php index 807438ca8..1b718431f 100644 --- a/adm/shop_admin/categoryformupdate.php +++ b/adm/shop_admin/categoryformupdate.php @@ -85,7 +85,7 @@ if ($w == "") // 소문자로 변환 $ca_id = strtolower($ca_id); - $sql = " insert {$g4['yc4_category_table']} + $sql = " insert {$g4['shop_category_table']} set ca_id = '$ca_id', ca_name = '$ca_name', $sql_common "; @@ -93,7 +93,7 @@ if ($w == "") } else if ($w == "u") { - $sql = " update {$g4['yc4_category_table']} + $sql = " update {$g4['shop_category_table']} set ca_name = '$ca_name', $sql_common where ca_id = '$ca_id' "; @@ -102,7 +102,7 @@ else if ($w == "u") // 하위분류를 똑같은 설정으로 반영 if ($sub_category) { $len = strlen($ca_id); - $sql = " update {$g4['yc4_category_table']} + $sql = " update {$g4['shop_category_table']} set $sql_common where SUBSTRING(ca_id,1,$len) = '$ca_id' "; if ($is_admin != 'super') @@ -115,7 +115,7 @@ else if ($w == "d") // 분류의 길이 $len = strlen($ca_id); - $sql = " select COUNT(*) as cnt from {$g4['yc4_category_table']} + $sql = " select COUNT(*) as cnt from {$g4['shop_category_table']} where SUBSTRING(ca_id,1,$len) = '$ca_id' and ca_id <> '$ca_id' "; $row = sql_fetch($sql); @@ -123,7 +123,7 @@ else if ($w == "d") alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오."); $str = $comma = ""; - $sql = " select it_id from {$g4['yc4_item_table']} where ca_id = '$ca_id' "; + $sql = " select it_id from {$g4['shop_item_table']} where ca_id = '$ca_id' "; $result = sql_query($sql); $i=0; while ($row = mysql_fetch_array($result)) @@ -146,7 +146,7 @@ else if ($w == "d") @unlink("{$g4['category_path']}/$ca_id"."_t"); // 분류 삭제 - $sql = " delete from {$g4['yc4_category_table']} where ca_id = '$ca_id' "; + $sql = " delete from {$g4['shop_category_table']} where ca_id = '$ca_id' "; sql_query($sql); } diff --git a/adm/shop_admin/categorylist.php b/adm/shop_admin/categorylist.php index ed0bb4f5e..7e7716010 100644 --- a/adm/shop_admin/categorylist.php +++ b/adm/shop_admin/categorylist.php @@ -18,7 +18,7 @@ if ($stx != "") { $page = 1; } -$sql_common = " from {$g4['yc4_category_table']} "; +$sql_common = " from {$g4['shop_category_table']} "; if ($is_admin != 'super') $sql_common .= " $where ca_mb_id = '{$member['mb_id']}' "; $sql_common .= $sql_search; @@ -111,7 +111,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$stx; $class = 'class="cate_list_lbl"'; // 2단 이상 분류의 label 에 스타일 부여 - 지운아빠 2013-04-02 // 상위단계의 분류명 $p_ca_id = substr($row['ca_id'], 0, $level*2); - $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$p_ca_id' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$p_ca_id' "; $temp = sql_fetch($sql); $p_ca_name = $temp['ca_name'].'의하위'; } else @@ -129,7 +129,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$stx; $s_del = '삭제'; // 해당 분류에 속한 상품의 갯수 - $sql1 = " select COUNT(*) as cnt from {$g4['yc4_item_table']} + $sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']} where ca_id = '{$row['ca_id']}' or ca_id2 = '{$row['ca_id']}' or ca_id3 = '{$row['ca_id']}' "; diff --git a/adm/shop_admin/categorylistupdate.php b/adm/shop_admin/categorylistupdate.php index 7b846b39e..c973f6fb4 100644 --- a/adm/shop_admin/categorylistupdate.php +++ b/adm/shop_admin/categorylistupdate.php @@ -16,7 +16,7 @@ for ($i=0; $i /settle_kcp_common.php - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3자리 - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index d408c202c..a73a02ab0 100644 --- a/adm/shop_admin/configformupdate.php +++ b/adm/shop_admin/configformupdate.php @@ -20,7 +20,7 @@ $de_kcp_mid = substr($_POST['de_kcp_mid'],0,3); // // 영카트 default // -$sql = " update {$g4['yc4_default_table']} +$sql = " update {$g4['shop_default_table']} set de_admin_company_owner = '$de_admin_company_owner', de_admin_company_name = '$de_admin_company_name', de_admin_company_saupja_no = '$de_admin_company_saupja_no', diff --git a/adm/shop_admin/contentform.php b/adm/shop_admin/contentform.php index 8642706ea..ea1f51c3c 100644 --- a/adm/shop_admin/contentform.php +++ b/adm/shop_admin/contentform.php @@ -6,7 +6,7 @@ include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php'); auth_check($auth[$sub_menu], "w"); // 상단, 하단 파일경로 필드 추가 -$sql = " ALTER TABLE `{$g4['yc4_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , +$sql = " ALTER TABLE `{$g4['shop_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , ADD `co_include_tail` VARCHAR( 255 ) NOT NULL "; sql_query($sql, false); @@ -17,7 +17,7 @@ if ($w == "u") $html_title .= " 수정"; $readonly = " readonly"; - $sql = " select * from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' "; $co = sql_fetch($sql); if (!$co['co_id']) alert('등록된 자료가 없습니다.'); @@ -75,7 +75,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php'); - + diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php index 2df351634..70f366334 100644 --- a/adm/shop_admin/contentformupdate.php +++ b/adm/shop_admin/contentformupdate.php @@ -27,19 +27,19 @@ if ($w == "") //if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다."); if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다."); - $sql = " select co_id from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " select co_id from {$g4['shop_content_table']} where co_id = '$co_id' "; $row = sql_fetch($sql); if ($row['co_id']) alert("이미 같은 ID로 등록된 내용이 있습니다."); - $sql = " insert {$g4['yc4_content_table']} + $sql = " insert {$g4['shop_content_table']} set co_id = '$co_id', $sql_common "; sql_query($sql); } else if ($w == "u") { - $sql = " update {$g4['yc4_content_table']} + $sql = " update {$g4['shop_content_table']} set $sql_common where co_id = '$co_id' "; sql_query($sql); @@ -49,7 +49,7 @@ else if ($w == "d") @unlink(G4_DATA_PATH."/content/{$co_id}_h"); @unlink(G4_DATA_PATH."/content/{$co_id}_t"); - $sql = " delete from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " delete from {$g4['shop_content_table']} where co_id = '$co_id' "; sql_query($sql); } diff --git a/adm/shop_admin/contentlist.php b/adm/shop_admin/contentlist.php index f60c8b3da..be5ed9874 100644 --- a/adm/shop_admin/contentlist.php +++ b/adm/shop_admin/contentlist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '내용관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_content_table']} "; +$sql_common = " from {$g4['shop_content_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; diff --git a/adm/shop_admin/deliverycodeform.php b/adm/shop_admin/deliverycodeform.php index ed181c74c..752fc3211 100644 --- a/adm/shop_admin/deliverycodeform.php +++ b/adm/shop_admin/deliverycodeform.php @@ -9,7 +9,7 @@ if ($w == "u") { $html_title .= ' 수정'; $readonly = ' readonly'; - $sql = " select * from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' "; + $sql = " select * from {$g4['shop_delivery_table']} where dl_id = '$dl_id' "; $dl = sql_fetch($sql); if (!$dl['dl_id']) alert('등록된 자료가 없습니다.'); } diff --git a/adm/shop_admin/deliverycodeformupdate.php b/adm/shop_admin/deliverycodeformupdate.php index 607db4362..9d9eddec7 100644 --- a/adm/shop_admin/deliverycodeformupdate.php +++ b/adm/shop_admin/deliverycodeformupdate.php @@ -16,19 +16,19 @@ $sql_common .= "set dl_company = '$dl_company', dl_order = '$dl_order' "; if ($w == "") { - $sql = " alter table {$g4['yc4_delivery_table']} auto_increment=1 "; + $sql = " alter table {$g4['shop_delivery_table']} auto_increment=1 "; sql_query($sql); - $sql = " insert {$g4['yc4_delivery_table']} $sql_common "; + $sql = " insert {$g4['shop_delivery_table']} $sql_common "; sql_query($sql); $dl_id = mysql_insert_id(); } else if ($w == "u") { - $sql = " update {$g4['yc4_delivery_table']} $sql_common where dl_id = '$dl_id' "; + $sql = " update {$g4['shop_delivery_table']} $sql_common where dl_id = '$dl_id' "; sql_query($sql); } else if ($w == "d") { // Master 삭제 - $sql = " delete from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' "; + $sql = " delete from {$g4['shop_delivery_table']} where dl_id = '$dl_id' "; sql_query($sql); } diff --git a/adm/shop_admin/deliverycodelist.php b/adm/shop_admin/deliverycodelist.php index e8fe951de..569ef329e 100644 --- a/adm/shop_admin/deliverycodelist.php +++ b/adm/shop_admin/deliverycodelist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배송회사관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_delivery_table']} "; +$sql_common = " from {$g4['shop_delivery_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php index 6a27f135b..23e9ded2e 100644 --- a/adm/shop_admin/deliverylist.php +++ b/adm/shop_admin/deliverylist.php @@ -7,11 +7,11 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배송일괄처리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -//sql_query(" update $g4[yc4_cart_table] set ct_status = '완료' where ct_status = '배송' "); +//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' "); // 배송회사리스트 --------------------------------------------- $delivery_options = ""; -$sql = " select * from {$g4['yc4_delivery_table']} order by dl_order "; +$sql = " select * from {$g4['shop_delivery_table']} order by dl_order "; $result = sql_query($sql); for($i=0; $row=sql_fetch_array($result); $i++) { $delivery_options .= "