diff --git a/adm/shop_admin/bannerform.php b/adm/shop_admin/bannerform.php index 8dc3592e3..291bdbb2c 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 f444c713e..081270f48 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[path]/data/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 14fce8f92..34ce1b61c 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; @@ -42,7 +42,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 '$ca_id' "; $row = sql_fetch($sql); @@ -133,7 +133,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)) @@ -156,7 +156,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 e149fbeec..3f446c9d7 100644 --- a/adm/shop_admin/categorylist.php +++ b/adm/shop_admin/categorylist.php @@ -10,24 +10,24 @@ if ($ca_id && ($move == 'up' || $move == 'down')) { $level = $length / 2; // 클릭한 분류의 분류아이디와 출력순서 - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id = '$ca_id' "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id = '$ca_id' "; $org = sql_fetch($sql); // 옮겨갈 분류의 분류아이디와 출력순서 if ($move == 'up') { - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort < '$org[ca_sort]' order by ca_sort desc limit 1 "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort < '$org[ca_sort]' order by ca_sort desc limit 1 "; $dst = sql_fetch($sql); } else { - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort > '$org[ca_sort]' order by ca_sort asc limit 1 "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort > '$org[ca_sort]' order by ca_sort asc limit 1 "; $dst = sql_fetch($sql); } // 옮겨갈 분류가 있다면 if ($dst) { - $sql = " update $g4[yc4_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' "; + $sql = " update $g4[shop_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' "; sql_query($sql); - $sql = " update $g4[yc4_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' "; + $sql = " update $g4[shop_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' "; sql_query($sql); } } @@ -47,7 +47,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; @@ -148,7 +148,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) // 해당 분류에 속한 상품의 갯수 - $sql1 = " select COUNT(*) as cnt from $g4[yc4_item_table] where ca_id = '$row[ca_id]' or ca_id2 = '$row[ca_id]' or ca_id3 = '$row[ca_id]' "; + $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]' "; $row1 = sql_fetch($sql1); $list = $i%2; diff --git a/adm/shop_admin/categorylistupdate.php b/adm/shop_admin/categorylistupdate.php index d57f51630..5c2a5f5da 100644 --- a/adm/shop_admin/categorylistupdate.php +++ b/adm/shop_admin/categorylistupdate.php @@ -7,7 +7,7 @@ check_demo(); auth_check($auth[$sub_menu], "w"); for ($i=0; $i 10) die('{"error":"마지막 레벨은 하위레벨이 없습니다."}'); -$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len "; +$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len "; $result = sql_query($sql); while ($row = sql_fetch_array($result)) { $id = $row['ca_id']; diff --git a/adm/shop_admin/categoryorderupdate.ajax.php b/adm/shop_admin/categoryorderupdate.ajax.php index 9a43ee7cd..b03d8d3d0 100644 --- a/adm/shop_admin/categoryorderupdate.ajax.php +++ b/adm/shop_admin/categoryorderupdate.ajax.php @@ -15,9 +15,9 @@ $pos = strlen($ca_id) * 2 - 3; $piece_order = make_order($order); if ($pos == 1) { - $sql = " update {$g4['yc4_category_table']} set ca_order = concat(left('$piece_order',4),mid(ca_order,$pos+4,20-($pos+4))) where ca_id like '$ca_id%' "; + $sql = " update {$g4['shop_category_table']} set ca_order = concat(left('$piece_order',4),mid(ca_order,$pos+4,20-($pos+4))) where ca_id like '$ca_id%' "; } else { - $sql = " update {$g4['yc4_category_table']} set ca_order = concat(mid(ca_order,1,$pos-1),'$piece_order',mid(ca_order,$pos+4,20-($pos+4-1))) where ca_id like '$ca_id%' "; + $sql = " update {$g4['shop_category_table']} set ca_order = concat(mid(ca_order,1,$pos-1),'$piece_order',mid(ca_order,$pos+4,20-($pos+4-1))) where ca_id like '$ca_id%' "; } sql_query($sql, true); ?> \ No newline at end of file diff --git a/adm/shop_admin/codedupcheck.php b/adm/shop_admin/codedupcheck.php index f7e7b7042..27e551ae0 100644 --- a/adm/shop_admin/codedupcheck.php +++ b/adm/shop_admin/codedupcheck.php @@ -4,14 +4,14 @@ include_once("./_common.php"); $name = ""; if ($it_id) { - $sql = " select it_name from {$g4['yc4_item_table']} where it_id = '$it_id' "; + $sql = " select it_name from {$g4['shop_item_table']} where it_id = '$it_id' "; $row = sql_fetch($sql); $code = $it_id; $name = $row['it_name']; } else if ($ca_id) { - $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id' "; $row = sql_fetch($sql); $code = $ca_id; $name = $row['ca_name']; diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index f35c4a73c..d9cdbd7a4 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 c354e6b9b..e95a83a1f 100644 --- a/adm/shop_admin/contentform.php +++ b/adm/shop_admin/contentform.php @@ -6,7 +6,7 @@ include_once("./_common.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("등록된 자료가 없습니다."); diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php index 6d06d5139..41caca3dd 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[path]/data/content/{$co_id}_h"); @unlink("$g4[path]/data/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 70d1b02b5..d525c9587 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/coupon_category.php b/adm/shop_admin/coupon_category.php index d8c180640..810c0d377 100644 --- a/adm/shop_admin/coupon_category.php +++ b/adm/shop_admin/coupon_category.php @@ -3,7 +3,7 @@ include_once('./_common.php'); $stx = trim($stx); if($stx) { - $sql_common = " from {$g4['yc4_category_table']} "; + $sql_common = " from {$g4['shop_category_table']} "; $sql_search = " where ca_use = '1' and ca_nocoupon = '0' and ca_name like '%$stx%' "; $sql_order = " order by ca_id asc "; diff --git a/adm/shop_admin/coupon_item.php b/adm/shop_admin/coupon_item.php index 151cff73a..d00511e4d 100644 --- a/adm/shop_admin/coupon_item.php +++ b/adm/shop_admin/coupon_item.php @@ -3,7 +3,7 @@ include_once('./_common.php'); $stx = trim($stx); if($stx) { - $sql_common = " from {$g4['yc4_item_table']} "; + $sql_common = " from {$g4['shop_item_table']} "; $sql_search = " where it_use = '1' and it_nocoupon = '0' and it_name like '%$stx%' "; $sql_order = " order by it_id asc "; diff --git a/adm/shop_admin/coupondelete.php b/adm/shop_admin/coupondelete.php index e466ca299..4a9ef277f 100644 --- a/adm/shop_admin/coupondelete.php +++ b/adm/shop_admin/coupondelete.php @@ -14,7 +14,7 @@ if(!$count) { for($i=0; $i<$count; $i++) { $cp_no = $_POST['list_chk'][$i]; - $sql = " delete from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " delete from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; @sql_query($sql); } diff --git a/adm/shop_admin/couponform.php b/adm/shop_admin/couponform.php index f62a327e0..83eeba039 100644 --- a/adm/shop_admin/couponform.php +++ b/adm/shop_admin/couponform.php @@ -9,7 +9,7 @@ $html_title = "쿠폰"; if($w == 'u') { $html_title .= "수정"; - $sql = " select * from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select * from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $write = sql_fetch($sql); if(!$write['cp_id']) { diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 9e20222a1..568a66c7e 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -160,7 +160,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -208,7 +208,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -245,7 +245,7 @@ if($w == '') { for($i=0; $i<$ca_id_count; $i++) { // 카테고리체크 if($ca_id != '전체카테고리') { - $sql = " select ca_id from {$g4['yc4_category_table']} + $sql = " select ca_id from {$g4['shop_category_table']} where ca_id = '{$arr_ca_id[$i]}' and ca_use = '1' and ca_nocoupon = '0' "; $ca = sql_fetch($sql); if(!$ca['ca_id']) { @@ -268,7 +268,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -306,7 +306,7 @@ if($w == '') { for($i=0; $i<$it_id_count; $i++) { // 상품체크 if($it_id != '') { - $sql = " select it_id from {$g4['yc4_item_table']} + $sql = " select it_id from {$g4['shop_item_table']} where it_id = '{$arr_it_id[$i]}' and it_use = '1' and it_nocoupon = '0' "; $it = sql_fetch($sql); if(!$it['it_id']) { @@ -329,7 +329,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -361,7 +361,7 @@ if($w == '') { } } } else if($w == 'u') { - $sql = " select cp_id from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select cp_id from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $row = sql_fetch($sql); if(!$row['cp_id']) { @@ -387,7 +387,7 @@ if($w == '') { // 상품체크 if($cp_type == 0 && $cp_target == 0) { if($it_id != '전체상품') { - $sql = " select it_id from {$g4['yc4_item_table']} where it_id = '$it_id' and it_nocoupon = '0' "; + $sql = " select it_id from {$g4['shop_item_table']} where it_id = '$it_id' and it_nocoupon = '0' "; $row = sql_fetch($sql); if(!$row['it_id']) { alert('존재하지 않거나 쿠폰제외 상품입니다.'); @@ -398,7 +398,7 @@ if($w == '') { // 카테고리체크 if($cp_type == 0 && $cp_target == 1) { if($ca_id != '전체카테고리') { - $sql = " select ca_id from {$g4['yc4_category_table']} where ca_id = '$ca_id' and ca_nocoupon = '0' "; + $sql = " select ca_id from {$g4['shop_category_table']} where ca_id = '$ca_id' and ca_nocoupon = '0' "; $row = sql_fetch($sql); if(!$row['ca_id']) { alert('존재하지 않거나 쿠폰제외 카테고리입니다.'); @@ -416,7 +416,7 @@ if($w == '') { } } - $sql = " update {$g4['yc4_coupon_table']} + $sql = " update {$g4['shop_coupon_table']} set cp_subject = '$cp_subject', cp_type = '$cp_type', cp_target = '$cp_target', @@ -435,14 +435,14 @@ if($w == '') { where cp_no = '$cp_no' "; sql_query($sql); } else if($w == 'd') { - $sql = " select cp_id from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select cp_id from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $row = sql_fetch($sql); if(!$row['cp_id']) { alert('쿠폰 정보가 존재하지 않습니다.'); } - $sql = " delete from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " delete from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; sql_query($sql); } diff --git a/adm/shop_admin/couponlist.php b/adm/shop_admin/couponlist.php index 0c6d77786..ffdf53401 100644 --- a/adm/shop_admin/couponlist.php +++ b/adm/shop_admin/couponlist.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_coupon_table']} a left join {$g4['yc4_item_table']} b on ( a.it_id = b.it_id ) "; +$sql_common = " from {$g4['shop_coupon_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id ) "; $sql_search = " where (1) "; @@ -106,7 +106,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) { } } else if($row['cp_target'] == 1) { // 카테고리 if($row['ca_id'] != '전체카테고리') { - $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' "; $temp = sql_fetch($sql); $target = $temp['ca_name']; } else { @@ -119,7 +119,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) { $limit = explode('-', $row['cp_end']); $cp_end = substr($limit[0], 2, 2).'년 '.(int)$limit[1].'월 '.(int)$limit[2].'일'; // 쿠폰사용수 - $sql1 = " select count(*) as cnt from {$g4['yc4_coupon_history_table']} where cp_id = '{$row['cp_id']}' "; + $sql1 = " select count(*) as cnt from {$g4['shop_coupon_history_table']} where cp_id = '{$row['cp_id']}' "; $row1 = sql_fetch($sql1); $use_count = number_format($row1['cnt']); diff --git a/adm/shop_admin/deliverycodeform.php b/adm/shop_admin/deliverycodeform.php index cf6142dbb..92a59fcba 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 ab8d58b20..d069b1e2b 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 63bfc8209..db3992da3 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 e132e9e67..208023ea2 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 .= "