분류코드
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
사업자정보
-초기화면
-결제정보
-배송정보
-기타정보
-SMS정보
+쇼핑몰 초기화면
+결제설정
+배송설정
+기타설정
+SMS설정
";
?>
@@ -184,9 +149,9 @@ $pg_anchor ="
- 쇼핑몰 첫 화면
+ 쇼핑몰 초기화면
=$pg_anchor?>
- =help("상품관리에서 히트상품으로 선택한 상품들을 설정값대로 초기화면에 출력합니다.\n히트상품으로 체크한 상품이 없다면 초기화면에 출력하지 않습니다.\n추천상품과 신상품도 같은 방법으로 사용합니다.", -150)?>
+ =help("상품관리에서 선택한 상품의 타입대로 쇼핑몰 초기화면에 출력합니다. (상품 타입 히트/추천/최신/인기/할인)\n각 타입별로 선택된 상품이 없으면 쇼핑몰 초기화면에 출력하지 않습니다.")?>
@@ -198,14 +163,18 @@ $pg_anchor ="
출력 >
스킨
- =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?>
- 1라인이미지수
-
- 라인
+
+
+ =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type1_list_skin']);?>
+
+ 출력할 줄 수
+
- 폭
+ 1줄당 이미지 수
+
+ 이미지 폭
- 높이
+ 이미지 높이
@@ -215,15 +184,16 @@ $pg_anchor ="
출력
>
스킨
- =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?>
-
- 1라인이미지수
-
- 라인
+
+ =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type2_list_skin']);?>
+
+ 출력할 줄 수
- 폭
+ 1줄당 이미지 수
+
+ 이미지 폭
- 높이
+ 이미지 높이
@@ -233,15 +203,16 @@ $pg_anchor ="
출력
>
스킨
- =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?>
-
- 1라인이미지수
-
- 라인
+
+ =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type3_list_skin']);?>
+
+ 출력할 줄 수
- 폭
+ 1줄당 이미지 수
+
+ 이미지 폭
- 높이
+ 이미지 높이
@@ -251,15 +222,16 @@ $pg_anchor ="
출력
>
스킨
- =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?>
-
- 1라인이미지수
-
- 라인
+
+ =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type4_list_skin']);?>
+
+ 출력할 줄 수
- 폭
+ 1줄당 이미지 수
+
+ 이미지 폭
- 높이
+ 이미지 높이
@@ -269,15 +241,16 @@ $pg_anchor ="
출력
>
스킨
- =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?>
-
- 1라인이미지수
-
- 라인
+
+ =get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type5_list_skin']);?>
+
+ 출력할 줄 수
- 폭
+ 1줄당 이미지 수
+
+ 이미지 폭
- 높이
+ 이미지 높이
@@ -292,57 +265,53 @@ $pg_anchor ="
-
-
-
+
-
- 은행계좌번호
-
-
-
-
무통장입금사용
=help("주문시 무통장으로 입금을 가능하게 할것인지를 설정합니다.\n사용할 경우 은행계좌번호를 반드시 입력하여 주십시오.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
- 계좌이체 결제사용
+
+
+ 은행계좌번호
+
+
+
+
+ 계좌이체 결제사용
+
=help("주문시 실시간 계좌이체를 가능하게 할것인지를 설정합니다.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
가상계좌 결제사용
-
+
=help("주문자가 현금거래를 원할 경우, 해당 거래건에 대해 주문자에게 고유로 발행되는 일회용 계좌번호입니다.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
휴대폰결제사용
-
- =help("주문시 신용카드 결제를 가능하게 할것인지를 설정합니다.", 50)?>
+
+ =help("주문시 휴대폰 결제를 가능하게 할것인지를 설정합니다.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
@@ -350,51 +319,49 @@ $pg_anchor ="
=help("주문시 신용카드 결제를 가능하게 할것인지를 설정합니다.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
+
+
카드결제최소금액
- =help("신용카드의 경우 1000원 미만은 결제가 가능하지 않습니다.\n1000원 이상으로 설정하십시오.")?>
+ =help("신용카드는 경우 1000원 미만은 결제가 불가능합니다.\n카드결제최소금액을 1000원 이상으로 설정하십시오.")?>
원
- 현금영수증발급사용
-
- =help("현금 입금후 주문자가 주문상세내역에서 현금영수증 발급을 가능하게 할것인지를 설정합니다.\n\n관리자는 설정에 관계없이 주문관리 > 수정에서 발급이 가능합니다.\n\n현금영수증의 취소 기능은 없으므로 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50)?>
- 현금영수증의 취소 기능은 없으므로 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.
+ 현금영수증 발급사용
+
+ =help("관리자는 설정에 관계없이 주문내역 > 수정에서 발급이 가능합니다.\n현금영수증 발급 취소는 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50)?>
- 아니오
- 예
+ >사용안함
+ >사용
-
포인트 사용
-
- =help("환경설정 > 기본환경설정과 동일한 설정입니다.")?>
- class="frm_input"> 사용
+
+ =help("환경설정 > 기본환경설정 과 동일한 설정입니다.")?>
+ > 사용
- 포인트 결제사용
+ 포인트결제 비율
- =help("회원의 포인트가 설정값 이상일 경우만 주문시 결제에 사용할 수 있습니다.\n\n포인트 사용을 하지 않는 경우에는 의미가 없습니다.")?>
+ =help("회원의 포인트가 설정값 이상일 경우만 주문시 결제에 사용할 수 있습니다.\n포인트 사용을 하지 않는 경우에는 의미가 없습니다.")?>
점
+
+
포인트결제 %
- =help("회원의 포인트가 포인트 결제사용 포인트 보다 클 경우 주문금액의 몇% 까지 사용 가능하게 할지를 설정합니다.")?>
+ =help("회원 보유 포인트가 결제액보다 많을 경우, 결제액에서 포인트로 결제 가능한 비율을 설정합니다.")?>
- for ($i=100; $i>0; $i=$i-5) echo "{$i}\n"; ?>
+ for ($i=100; $i>0; $i=$i-5) echo ' '.$i.' '.PHP_EOL; ?>
%
-
@@ -402,34 +369,37 @@ $pg_anchor ="
=help("신용카드, 계좌이체 결제시 포인트를 부여할지를 설정합니다. (기본값은 '아니오')", 50)?>
- 아니오
- 예
+ >아니오
+ >예
-
+
+
주문완료 포인트
- =help("설정값 이후에 포인트를 부여합니다.(주문자가 회원일 경우에만 해당)\n\n주문취소, 반품 등을 고려하여 적당한 기간을 입력하십시오. (기본값은 7)\n\n0 으로 설정하는 경우 주문과 동시에 포인트를 부여합니다.", -150)?>
- 주문 완료 일 이후에 포인트를 부여
+ =help("주문자가 회원일 경우에만 주문완료 포인트를 지급합니다. 주문취소, 반품 등을 고려하여 적당한 기간을 입력하십시오. (기본값은 7)\n0 으로 설정하는 경우 주문완료와 동시에 포인트를 부여합니다.", -150)?>
+ 주문 완료 일 이후에 포인트를 부여
KCP SITE CODE
- =help("KCP 에서 부여받는 SITE CODE 를 입력하세요. SR 로 시작하는 영대문자, 숫자 혼용 총 5자리 코드를 입력하시면 됩니다. 만약, 사이트코드가 SR로 시작하지 않는다면 KCP에 사이트코드를 변경 요청해 주십시오. 예) SRZ89");?>
+ =help("KCP 에서 받은 SR 로 시작하는 영대문자, 숫자 혼용 총 5자리 SITE CODE 를 입력하세요.\n만약, 사이트코드가 SR로 시작하지 않는다면 KCP에 사이트코드 변경 요청을 하십시오. 예) SRZ89");?>
SR 영대문자, 숫자 혼용 3자리
+
+
KCP SITE KEY
- =help("25자리 영대문자와 숫자 - 그리고 _ 로 이루어 집니다. SITE KEY 발급은 KCP로 문의하세요. 1544-8660 예) 1Q9YRV83gz6TukH8PjH0xFf__");?>
+ =help("25자리 영대문자와 숫자 - 그리고 _ 로 이루어 집니다. SITE KEY 발급 KCP 전화: 1544-8660\n예) 1Q9YRV83gz6TukH8PjH0xFf__");?>
에스크로 사용
-
- =help("일반결제와 에스크로 결제를 선택하실 수 있습니다. 반드시 KCP 관리자 > 고객센터 > 서비스변경 및 추가 > 에스크로 신청 메뉴에서 에스크로를 사용 선택하고, 결제수단별로 적용 신청한 후 사용하셔야 합니다. 에스크로 사용시 배송과의 연동은 되지 않으며 에스크로 결제만 지원됩니다.")?>
+
+ =help("에스크로 결제를 사용하시려면, 반드시 KCP 관리자 > 고객센터 > 서비스변경 및 추가 > 에스크로 신청 메뉴에서 에스크로를 사용 선택하고, 결제수단별로 적용 신청한 후 사용 하셔야 합니다.\n에스크로 사용시 배송과의 연동은 되지 않으며 에스크로 결제만 지원됩니다.")?>
id="de_escrow_use1">
일반결제 사용
id="de_escrow_use2">
@@ -438,42 +408,46 @@ $pg_anchor ="
신용카드 결제테스트
-
+
=help("신용카드를 테스트 하실 경우에 체크하세요. 결제단위 최소 1,000원")?>
- id="de_card_test1">
실결제
- id="de_card_test2">
+ id="de_card_test1">
테스트결제
-
- [ 실결제 관리자 |
- 테스트 관리자 ]
- 테스트결제 팁 더보기
-
-
-
-
- 일반결제 사용시 테스트 결제
- · 신용카드 : 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)
- · 계좌이체 : 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.
- · 가상계좌 : 1원 이상, 모든 은행이 테스트 되는 것은 아니며 "VB10 : 해당 은행 계좌 없음" 자주 발생함. (광주은행, 하나은행)
- · 휴대폰 : 1004원, 실결제가 되며 다음날 새벽에 일괄 취소됨.
-
- 에스크로 사용시 테스트 결제
- · 신용카드 : 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)
- · 계좌이체 : 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.
- · 가상계좌 : 1원 이상, 입금통보는 제대로 되지 않음.
- · 휴대폰 : 테스트 지원되지 않음.
-
-
- * 테스트결제의 경우 상점관리자(
http://testadmin8.kcp.co.kr/assist/login.LoginAction.do )의 로그인 정보가 사용하시는 것과 다르므로 아이디/패스워드를 KCP로 문의하시기 바랍니다. (기술지원 1544-8661)
- * 참고로 일반결제의 테스트 사이트코드는 T0000 이며, 에스크로 결제의 테스트 사이트코드는 T0007 입니다.
+
id="de_card_test2">
+
+
+
일반결제 사용시 테스트 결제
+
+ 신용카드 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)
+ 계좌이체 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.
+ 가상계좌 1원 이상, 모든 은행이 테스트 되는 것은 아니며 "VB10 : 해당 은행 계좌 없음" 자주 발생함. (광주은행, 하나은행)
+ 휴대폰 1004원, 실결제가 되며 다음날 새벽에 일괄 취소됨
+
+
에스크로 사용시 테스트 결제
+
+ 신용카드 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)
+ 계좌이체 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.
+ 가상계좌 1원 이상, 입금통보는 제대로 되지 않음.
+ 휴대폰 테스트 지원되지 않음.
+
+
+ 테스트결제는 상점관리자 의 로그인 정보를 KCP로 문의하시기 바랍니다. (기술지원 1544-8661)
+ 일반결제 의 테스트 사이트코드는 T0000 이며, 에스크로 결제 의 테스트 사이트코드는 T0007 입니다.
+
+
+
공통 URL
-
- =help("가상계좌 사용시 이 주소를 \"KCP 관리자 > 상점정보관리 > 정보변경 > 공통URL 정보 > 공통URL 변경후\"에 넣으셔야 상점에 자동으로 입금 통보됩니다.")?>
+
+ =help("가상계좌 사용시 다음 주소를 KCP 관리자 > 상점정보관리 > 정보변경 > 공통URL 정보 > 공통URL 변경후 에 넣으셔야 상점에 자동으로 입금 통보됩니다.")?>
=G4_SHOP_URL?>/settle_kcp_common.php
@@ -515,7 +489,7 @@ $pg_anchor ="
올더게이트 몰ID
-
+
@@ -551,7 +525,7 @@ $pg_anchor ="
KSPAY 상점아이디
-
+
@@ -565,62 +539,56 @@ $pg_anchor ="
-
-
-
+
배송비유형
-
- =help("'상한'으로 설정한 경우는 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n\n'없음'으로 설정한 경우에는 배송비상한가, 배송비를 무시하며 착불의 경우도 없음으로 설정하여 사용합니다.", 50);?>
-
- 상한
- 없음
+
+ =help("상한 으로 설정한 경우, 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n없음 으로 설정한 경우, 배송비상한가 및 배송비를 무시하며 착불의 경우도 없음으로 설정됩니다.", 50);?>
+
+ >상한
+ >없음
-
배송비상한가
-
+
=help("배송비유형이 '상한'일 경우에만 해당되며 배송비상한가를 여러개 두고자 하는 경우는 ; 로 구분합니다.\n\n예를 들어 20000원 미만일 경우 4000원, 30000원 미만일 경우 3000원 으로 사용할 경우에는 배송비상한가를 20000;30000 으로 입력하고 배송비를 4000;3000 으로 입력합니다.", 50);?>
원
배송비
-
+
원
희망배송일사용
- =help("'예'로 설정한 경우 주문서에서 희망배송일을 입력 받습니다.", 50);?>
-
- 아니오
- 예
+ =help("'예'로 설정한 경우 주문서에서 희망배송일을 입력 받습니다.");?>
+
+ >사용안함
+ >사용
-
- 희망배송일날짜
+
+
+ 희망배송일지정
- =help("설정한날 이후의 날짜부터 일주일까지 선택박스 형식으로 출력합니다.", 50);?>
+ =help("설정한 날로부터 일주일까지 선택박스 형식으로 출력합니다.");?>
일
배송정보
-
- =editor_html('de_baesong_content', $default['de_baesong_content']);?>
-
+ =editor_html('de_baesong_content', $default['de_baesong_content']);?>
교환/반품
-
- =editor_html('de_change_content', $default['de_change_content']);?>
-
+ =editor_html('de_change_content', $default['de_change_content']);?>
@@ -632,49 +600,47 @@ $pg_anchor ="
-
-
-
+
관련상품출력
-
+
=help("$cart_dir/item.sub.adding.php 에서 $cart_dir/maintype1.inc.php 를 include 하여 출력합니다.");?>
- 1라인이미지수
+ 1줄당 이미지 수
- , 이미지폭
+ 이미지폭
- , 이미지높이
+ 이미지높이
- 이미지(소) 폭
+ 이미지(소)
- =help("상품관리의 상품입력에서 이미지(대) 입력으로 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값으로 생성하여 줍니다.");?>
+ =help("상품관리의 상품입력에서 이미지(대) 를 기준 자동생성해 줄때 이미지(소)의 폭과 높이를 설정한 값(단위:픽셀)로 생성합니다.");?>
+ 이미지(소) 폭
픽셀
-
- 이미지(소) 높이
-
+ /
+ 이미지(소) 높이
픽셀
- 이미지(중) 폭
+ 이미지(중)
- =help("상품관리의 상품입력에서 이미지(대) 입력으로 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값으로 생성하여 줍니다.");?>
+ =help("상품관리의 상품입력에서 이미지(대) 를 기준 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값(단위:픽셀)로 생성합니다.");?>
+ 이미지(중) 폭
픽셀
-
- 이미지(중) 높이
-
+ /
+ 이미지(중) 높이
픽셀
로고이미지
-
- =help("쇼핑몰에 사용하는 로고이미지 입니다.\n이미지 파일만 업로드 가능합니다.");?>
+
+ =help("쇼핑몰 로고를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다.");?>
$logo_img = G4_DATA_PATH."/common/logo_img";
@@ -689,8 +655,8 @@ $pg_anchor ="
메인이미지
-
- =help("쇼핑몰에 사용하는 메인이미지 입니다.\n이미지 파일만 업로드 가능합니다.");?>
+
+ =help("쇼핑몰 메인이미지를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다.");?>
$main_img = G4_DATA_PATH."/common/main_img";
@@ -705,68 +671,68 @@ $pg_anchor ="
사용후기
-
- =help("고객이 특정 상품에 사용후기를 작성하였을 경우 바로 출력할것인지 관리자 승인 후 출력할것인지를 설정합니다.", 50);?>
-
- 관리자 승인없이 출력
- 관리자 승인 후 출력
+
+ =help("사용후기가 올라오면, 즉시 출력 혹은 관리자 승인 후 출력 여부를 설정합니다.", 50);?>
+
+ >즉시 출력
+ >관리자 승인 후 출력
-
/*?>
스크롤배너 사용
-
+
=help("'예'로 설정한 경우 쇼핑몰 우측에 스크롤배너가 출력됩니다.", 50);?>
-
- 아니오
- 예
+
+ >사용안함
+ >사용
-
*/?>
상품구입 권한
-
- =help("설정을 1로 하게되면 모든 방문자에게 판매를 할 수 있지만 설정을 변경하여 특정회원을 대상으로 판매를 할 수 있습니다.");?>
+
+ =help("권한을 1로 설정하면 누구나 구입할 수 있습니다. 특정회원만 구입할 수 있도록 하려면 해당 권한으로 설정하십시오.");?>
=get_member_level_select('de_level_sell', 1, 10, $default['de_level_sell']) ?>
코드 중복검사
-
- =help("분류, 상품을 입력(추가) 할 때 코드 중복검사를 사용할 경우 체크하시면 됩니다.");?>
+
+ =help("분류, 상품 등을 추가할 때 자동으로 코드 중복검사를 하려면 체크하십시오.");?>
> 사용
장바구니 메세지
-
- =help("상품을 장바구니에 담은 후에는 가격 수정이 불가하므로 비회원가격과 회원가격이 다른 경우에는 장바구니에 담기 전에 미리 메세지를 출력하여 로그인 한 후 구입을 하도록 유도합니다.", -150);?>
+
+ =help("장바구니에 담긴 상품의 가격 수정은 불가능합니다. 따라서 비회원가격과 회원가격이 다른 경우, 장바구니에 담기 전에 미리 메세지를 출력하여 로그인하도록 안내합니다.", -150);?>
>
- 비회원가격과 회원가격이 다른 상품을 장바구니에 담는 경우 "가격이 다릅니다"라는 메세지를 출력합니다.
+ 안내메세지 출력 사용
비회원에 대한 개인정보수집 내용
-
- =editor_html('de_guest_privacy', $default['de_guest_privacy']);?>
-
+ =editor_html('de_guest_privacy', $default['de_guest_privacy']);?>
MYSQL USER
=G4_MYSQL_USER?>
+
+
MYSQL DB
=G4_MYSQL_DB?>
서버 IP
=($_SERVER['SERVER_ADDR']?$_SERVER['SERVER_ADDR']:$_SERVER['LOCAL_ADDR']);?>
+
+
프로그램 등록번호
- =help("정식구입자께만 발급해 드리고 있습니다.\n등록번호가 틀린 경우 주문서를 확인 하실 수 없습니다.\n등록번호는 서버 IP, MYSQL USER, DB 를 알려주셔야 발급이 가능합니다.", -180, -160);?>
+ =help("정품에 한해 발급해 드립니다. 등록번호가 없거나 틀리면, 주문서를 확인할 수 없습니다.\n등록번호는 서버 IP, MYSQL USER, DB 를 알려주셔야 발급이 가능합니다.", -180, -160);?>
@@ -825,82 +791,85 @@ function byte_check(el_cont, el_byte)
}
-
-
- SMS정보
+ SMS설정
=$pg_anchor?>
-
- $sms_title = array (1=>"회원가입시", "주문서작성시", "입금확인시", "상품배송시");
- $sms_daesang = array (1=>"고객님께 발송", "관리자께 발송", "고객님께 발송", "고객님께 발송");
- ?>
- for ($i=1; $i<=4; $i++) { ?>
-
-
-
-
+
SMS 사용
-
- =help("서비스 회사를 선택하신 경우에만 SMS 를 사용합니다.\n위의 개별적인 기능별 사용(회원가입시, 주문서작성시 ...)보다 우선합니다.\n아이코드의 경우 무료테스트 환경을 지원합니다.");?>
+
+ =help("SMS 를 사용하려면 서비스 회사를 선택해야 합니다. 개별 기능 (회원가입시, 주문서작성시 발송 등)보다 우선합니다.\n아이코드는 무료 문자메세지 발송 테스트 환경을 지원합니다.");?>
- 사용안함
- 아이코드
+ >사용안함
+ >아이코드
-
관리자 핸드폰번호
-
- =help("쇼핑몰관리자 또는 보내시는분의 핸드폰번호를 입력하세요.\n\n주문서작성시 쇼핑몰관리자가 문자메세지를 받으시려면 반드시 입력하셔야 합니다.\n\n숫자만 입력하세요.\n예) 0101234567");?>
+
+ =help("주문서작성시 쇼핑몰관리자가 문자메세지를 받아볼 번호를 숫자만으로 입력하세요. 예) 0101234567");?>
아이코드 회원아이디
-
+
=help("아이코드에서 사용하시는 회원아이디를 입력합니다.");?>
아이코드 패스워드
-
+
=help("아이코드에서 사용하시는 패스워드를 입력합니다.");?>
@@ -910,24 +879,24 @@ function byte_check(el_cont, el_byte)
- if ($userinfo['payment'] == "A") {
- echo "충전제";
- echo " ";
- }
- else if ($userinfo['payment'] == "C") {
- echo "정액제";
- echo " ";
- }
- else {
- echo "가입해주세요.";
- echo " ";
+ if ($userinfo['payment'] == 'A') {
+ echo '충전제';
+ echo ' ';
+ } else if ($userinfo['payment'] == 'C') {
+ echo '정액제';
+ echo ' ';
+ } else {
+ echo '가입해주세요.';
+ echo ' ';
}
?>
- 아이코드 서비스 신청(회원가입)
+
+
+ 아이코드 SMS 신청 회원가입
- =help("이 페이지에서 회원가입 하시면 문자 건당 16원에 제공 받을 수 있습니다.");?>
- http://www.icodekorea.com
+ =help("아래 링크에서 회원가입 하시면 문자 건당 16원에 제공 받을 수 있습니다.");?>
+ 아이코드 회원가입
if ($userinfo['payment'] == 'A') { ?>
@@ -966,11 +935,7 @@ function byte_check(el_cont, el_byte)
-->
- 회원가입시 : {이름} {회원아이디} {회사명}
- 주문서작성 : {이름} {보낸분} {받는분} {주문번호} {주문금액} {회사명}
- 입금확인시 : {이름} {입금액} {주문번호} {회사명}
- 상품배송시 : {이름} {택배회사} {운송장번호} {주문번호} {회사명}
- 주의) 80 bytes 까지만 전송됩니다. (영문 한글자 : 1byte , 한글 한글자 : 2bytes , 특수문자의 경우 1 또는 2 bytes 임)
+
@@ -993,14 +958,10 @@ function fconfig_check(f)
return true;
}
-// document.fconfig.de_admin_company_name.focus();
-
$(function() {
- $("#test_tip").bind("click", function() {
- $("#test_tip_help").toggle();
+ $("#scf_cardtest_btn").bind("click", function() {
+ $("#scf_cardtest_tip").toggle();
})
- .css("cursor", "pointer")
- .css("text-decoration", "underline");
});
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');
하단 파일 경로
=help("내용별로 하단+우측의 내용이 다를 경우 하단+우측 디자인 파일의 경로를 입력합니다.\n입력이 없으면 기본 하단 파일을 사용합니다.\n하단 내용과 달리 PHP 코드를 사용할 수 있습니다.\n");?>
-
+
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 .= "{$row['dl_company']}";
@@ -33,8 +33,8 @@ if ($sel_ca_id != "") {
if ($sel_field == "") $sel_field = "od_id";
-$sql_common = " from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
+$sql_common = " from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@@ -44,7 +44,7 @@ if ($chk_misu) {
$total_count = mysql_num_rows($result);
}
else {
- $row = sql_fetch("select count(od_id) as cnt from {$g4['yc4_order_table']} $sql_search ");
+ $row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
$total_count = $row['cnt'];
}
diff --git a/adm/shop_admin/deliverylistupdate.php b/adm/shop_admin/deliverylistupdate.php
index 3b23a43b8..e4214fa56 100644
--- a/adm/shop_admin/deliverylistupdate.php
+++ b/adm/shop_admin/deliverylistupdate.php
@@ -23,7 +23,7 @@ for ($m=0; $m 0
@@ -171,7 +171,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
- $sql = " select * from {$g4[yc4_item_ps_table]}
+ $sql = " select * from {$g4[shop_item_ps_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
@@ -216,7 +216,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
- $sql = " select * from {$g4['yc4_item_qa_table']}
+ $sql = " select * from {$g4['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
diff --git a/adm/shop_admin/invoicebundle.php b/adm/shop_admin/invoicebundle.php
index fe1846d05..c078b4ffe 100644
--- a/adm/shop_admin/invoicebundle.php
+++ b/adm/shop_admin/invoicebundle.php
@@ -33,7 +33,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
배송회사를 선택하세요.
- $sql = "select * from {$g4['yc4_delivery_table']} order by dl_order desc, dl_id desc ";
+ $sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
echo " {$row['dl_company']}\n";
diff --git a/adm/shop_admin/invoicebundleupdate.php b/adm/shop_admin/invoicebundleupdate.php
index 980317c75..745a970b2 100644
--- a/adm/shop_admin/invoicebundleupdate.php
+++ b/adm/shop_admin/invoicebundleupdate.php
@@ -23,7 +23,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
if ($od_id && $od_invoice)
{
- $sql = " select od_id, uq_id, dl_id, od_invoice from {$g4['yc4_order_table']} where od_id = '$od_id' ";
+ $sql = " select od_id, uq_id, dl_id, od_invoice from {$g4['shop_order_table']} where od_id = '$od_id' ";
$row = sql_fetch($sql);
//echo $sql; echo " ";
//print_r2($row);
@@ -33,7 +33,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
if ($row['dl_id'] && $row['od_invoice'] && !$re)
continue;
- $sql = " update {$g4['yc4_order_table']}
+ $sql = " update {$g4['shop_order_table']}
set od_invoice = '$od_invoice',
od_invoice_time = '$od_invoice_time',
dl_id = '{$_POST['dl_id']}'
@@ -42,7 +42,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
if ($ct_status)
{
- $sql = " update {$g4['yc4_cart_table']}
+ $sql = " update {$g4['shop_cart_table']}
set ct_status = '$ct_status'
where uq_id = '{$row['uq_id']}'
and ct_status in ('주문', '준비', '배송', '완료') ";
diff --git a/adm/shop_admin/item_copy_update.php b/adm/shop_admin/item_copy_update.php
index 8356a3176..3d943877f 100644
--- a/adm/shop_admin/item_copy_update.php
+++ b/adm/shop_admin/item_copy_update.php
@@ -10,17 +10,17 @@ if ($is_admin != "super")
if (!trim($it_id))
alert("복사할 상품코드가 없습니다.");
-$row = sql_fetch(" select count(*) as cnt from {$g4['yc4_item_table']} where it_id = '$new_it_id' ");
+$row = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$new_it_id' ");
if ($row['cnt'])
alert('이미 존재하는 상품코드 입니다.');
-$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' limit 1 ";
+$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' limit 1 ";
$cp = sql_fetch($sql);
// 상품테이블의 필드가 추가되어도 수정하지 않도록 필드명을 추출하여 insert 퀴리를 생성한다. (상품코드만 새로운것으로 대체)
$sql_common = "";
-$fields = mysql_list_fields(G4_MYSQL_DB, $g4['yc4_item_table']);
+$fields = mysql_list_fields(G4_MYSQL_DB, $g4['shop_item_table']);
$columns = mysql_num_fields($fields);
for ($i = 0; $i < $columns; $i++) {
$fld = mysql_field_name($fields, $i);
@@ -29,7 +29,7 @@ for ($i = 0; $i < $columns; $i++) {
}
}
-$sql = " insert {$g4['yc4_item_table']}
+$sql = " insert {$g4['shop_item_table']}
set it_id = '$new_it_id'
$sql_common ";
sql_query($sql);
@@ -52,10 +52,10 @@ if(is_file($img_path.$mimg))
copy($img_path.$mimg,$img_path.$new_it_id."_m");
// 상품요약정보 복사
-$sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
+$sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
- $sql = " INSERT INTO `{$g4['yc4_item_info_table']}` (`ii_id`, `it_id`, `ii_gubun`, `ii_article`, `ii_title`, `ii_value`)
+ $sql = " INSERT INTO `{$g4['shop_item_info_table']}` (`ii_id`, `it_id`, `ii_gubun`, `ii_article`, `ii_title`, `ii_value`)
VALUES (NULL, '$new_it_id', '{$row['ii_gubun']}', '{$row['ii_article']}', '".addslashes($row['ii_title'])."', '".addslashes($row['ii_value'])."') ";
sql_query($sql);
}
diff --git a/adm/shop_admin/itemevent.php b/adm/shop_admin/itemevent.php
index 72bef0b0f..2c7317261 100644
--- a/adm/shop_admin/itemevent.php
+++ b/adm/shop_admin/itemevent.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_event_table']} ";
+$sql_common = " from {$g4['shop_event_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@@ -53,7 +53,7 @@ $result = sql_query($sql);
$s_vie = icon("보기", G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}");
$href = "";
- $sql = " select count(ev_id) as cnt from {$g4['yc4_event_item_table']} where ev_id = '{$row['ev_id']}' ";
+ $sql = " select count(ev_id) as cnt from {$g4['shop_event_item_table']} where ev_id = '{$row['ev_id']}' ";
$ev = sql_fetch($sql);
if ($ev[cnt]) {
$href = "";
diff --git a/adm/shop_admin/itemeventform.php b/adm/shop_admin/itemeventform.php
index 1e4585518..2289fd789 100644
--- a/adm/shop_admin/itemeventform.php
+++ b/adm/shop_admin/itemeventform.php
@@ -12,7 +12,7 @@ if ($w == "u")
$html_title .= " 수정";
$readonly = " readonly";
- $sql = " select * from {$g4['yc4_event_table']} where ev_id = '$ev_id' ";
+ $sql = " select * from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
if (!$ev['ev_id'])
alert("등록된 자료가 없습니다.");
diff --git a/adm/shop_admin/itemeventformupdate.php b/adm/shop_admin/itemeventformupdate.php
index 3e7a55ec6..5d3b1f181 100644
--- a/adm/shop_admin/itemeventformupdate.php
+++ b/adm/shop_admin/itemeventformupdate.php
@@ -32,14 +32,14 @@ if ($w == "")
{
$ev_id = G4_SERVER_TIME;
- $sql = " insert {$g4['yc4_event_table']}
+ $sql = " insert {$g4['shop_event_table']}
$sql_common
, ev_id = '$ev_id' ";
sql_query($sql);
}
else if ($w == "u")
{
- $sql = " update {$g4['yc4_event_table']}
+ $sql = " update {$g4['shop_event_table']}
$sql_common
where ev_id = '$ev_id' ";
sql_query($sql);
@@ -50,7 +50,7 @@ else if ($w == "d")
@unlink(G4_DATA_PATH."/event/{$ev_id}_h");
@unlink(G4_DATA_PATH."/event/{$ev_id}_t");
- $sql = " delete from {$g4['yc4_event_table']} where ev_id = '$ev_id' ";
+ $sql = " delete from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
sql_query($sql);
}
diff --git a/adm/shop_admin/itemeventlist.php b/adm/shop_admin/itemeventlist.php
index 490a95014..fc81f8a1b 100644
--- a/adm/shop_admin/itemeventlist.php
+++ b/adm/shop_admin/itemeventlist.php
@@ -24,8 +24,8 @@ if ($sel_field == "") {
$sel_field = "it_name";
}
-$sql_common = " from {$g4['yc4_item_table']} a
- left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
+$sql_common = " from {$g4['shop_item_table']} a
+ left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@@ -66,7 +66,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
// 이벤트 옵션처리
$event_option = "이벤트를 선택하세요";
- $sql1 = " select ev_id, ev_subject from {$g4['yc4_event_table']} order by ev_id desc ";
+ $sql1 = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
$result1 = sql_query($sql1);
while ($row1=mysql_fetch_array($result1))
$event_option .= " ".conv_subject($row1['ev_subject'], 20,"…");
@@ -80,7 +80,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++)
{
@@ -133,7 +133,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
- $sql = " select ev_id from {$g4['yc4_event_item_table']}
+ $sql = " select ev_id from {$g4['shop_event_item_table']}
where it_id = '{$row['it_id']}'
and ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
diff --git a/adm/shop_admin/itemeventlistupdate.php b/adm/shop_admin/itemeventlistupdate.php
index ef095ffad..4ed4cfd0e 100644
--- a/adm/shop_admin/itemeventlistupdate.php
+++ b/adm/shop_admin/itemeventlistupdate.php
@@ -8,14 +8,14 @@ auth_check($auth[$sub_menu], "w");
for ($i=0; $i
-$sql = " select b.it_id, b.it_name, b.it_use from {$g4['yc4_event_item_table']} a
- left join {$g4['yc4_item_table']} b on (a.it_id=b.it_id)
+$sql = " select b.it_id, b.it_name, b.it_use from {$g4['shop_event_item_table']} a
+ left join {$g4['shop_item_table']} b on (a.it_id=b.it_id)
where a.ev_id = '$ev_id'
order by b.it_id desc ";
$result = sql_query($sql);
diff --git a/adm/shop_admin/itemeventwindel.php b/adm/shop_admin/itemeventwindel.php
index 38cb35a76..99edfde96 100644
--- a/adm/shop_admin/itemeventwindel.php
+++ b/adm/shop_admin/itemeventwindel.php
@@ -6,7 +6,7 @@ check_demo();
auth_check($auth[$sub_menu], "d");
-$sql = " delete from {$g4['yc4_event_item_table']} where ev_id = '$ev_id' and it_id = '$it_id' ";
+$sql = " delete from {$g4['shop_event_item_table']} where ev_id = '$ev_id' and it_id = '$it_id' ";
sql_query($sql);
goto_url("./itemeventwin.php?ev_id=$ev_id");
diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php
index f2d3d7480..7c27f760e 100644
--- a/adm/shop_admin/itemform.php
+++ b/adm/shop_admin/itemform.php
@@ -6,23 +6,23 @@ include_once(G4_LIB_PATH.'/iteminfo.lib.php');
/*
// 상품테이블에 분류 필드 추가
-sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `ca_id2` VARCHAR( 255 ) NOT NULL AFTER `ca_id` ", FALSE);
-sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `ca_id3` VARCHAR( 255 ) NOT NULL AFTER `ca_id2` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id2` VARCHAR( 255 ) NOT NULL AFTER `ca_id` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id3` VARCHAR( 255 ) NOT NULL AFTER `ca_id2` ", FALSE);
// 사용후기 테이블에 이름, 패스워드 필드 추가
-sql_query(" ALTER TABLE `$g4[yc4_item_ps_table]` ADD `is_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
-sql_query(" ALTER TABLE `$g4[yc4_item_ps_table]` ADD `is_password` VARCHAR( 255 ) NOT NULL AFTER `is_name` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_password` VARCHAR( 255 ) NOT NULL AFTER `is_name` ", FALSE);
// 상품문의 테이블에 이름, 패스워드 필드 추가
-sql_query(" ALTER TABLE `$g4[yc4_item_qa_table]` ADD `iq_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
-sql_query(" ALTER TABLE `$g4[yc4_item_qa_table]` ADD `iq_password` VARCHAR( 255 ) NOT NULL AFTER `iq_name` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_password` VARCHAR( 255 ) NOT NULL AFTER `iq_name` ", FALSE);
// 회원권한별 상품가격 틀리게 적용하는 필드 추가
// it_amount : 비회원가격
// it_amount2 : 회원가격
// it_amount3 : 특별회원가격
-sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `it_amount2` INT NOT NULL AFTER `it_amount` ", FALSE);
-sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `it_amount3` INT NOT NULL AFTER `it_amount2` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount2` INT NOT NULL AFTER `it_amount` ", FALSE);
+sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount3` INT NOT NULL AFTER `it_amount2` ", FALSE);
*/
auth_check($auth[$sub_menu], "w");
@@ -40,7 +40,7 @@ if ($w == "")
$it['ca_id3'] = get_cookie("ck_ca_id3");
if (!$it['ca_id'])
{
- $sql = " select ca_id from {$g4['yc4_category_table']} order by ca_id limit 1 ";
+ $sql = " select ca_id from {$g4['shop_category_table']} order by ca_id limit 1 ";
$row = sql_fetch($sql);
if (!$row['ca_id'])
alert("등록된 분류가 없습니다. 우선 분류를 등록하여 주십시오.");
@@ -57,7 +57,7 @@ else if ($w == "u")
if ($is_admin != 'super')
{
- $sql = " select it_id from {$g4['yc4_item_table']} a, {$g4['yc4_category_table']} b
+ $sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '{$member['mb_id']}' ";
@@ -66,13 +66,13 @@ else if ($w == "u")
alert("\'{$member['mb_id']}\' 님께서 수정 할 권한이 없는 상품입니다.");
}
- $sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
+ $sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
if (!$ca_id)
$ca_id = $it['ca_id'];
- $sql = " select * from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
+ $sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
$ca = sql_fetch($sql);
}
else
@@ -135,7 +135,7 @@ $pg_anchor ="
= 기본분류 =
$script = "";
- $sql = " select * from {$g4['yc4_category_table']} ";
+ $sql = " select * from {$g4['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@@ -325,7 +325,7 @@ $pg_anchor ="
if ($it['it_id']) { ?>
- $sql = " select distinct ii_gubun from {$g4['yc4_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
+ $sql = " select distinct ii_gubun from {$g4['shop_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
$ii = sql_fetch($sql, false);
if ($ii) {
$item_info_gubun = item_info_gubun($ii['ii_gubun']);
@@ -490,14 +490,14 @@ $pg_anchor ="
$str = array();
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_amount
- from {$g4['yc4_item_relation_table']} a
- left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
+ from {$g4['shop_item_relation_table']} a
+ left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
where a.it_id = '$it_id'
order by b.ca_id, b.it_name ";
$result = sql_query($sql);
while($row=sql_fetch_array($result))
{
- $sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
+ $sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' ";
$row2 = sql_fetch($sql2);
// 김선용 2006.10
@@ -537,7 +537,7 @@ $pg_anchor ="
분류별 관련상품
----------------------
- $sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where length(ca_id) = 2 order by ca_id ";
+ $sql = " select ca_id, ca_name from {$g4['shop_category_table']} where length(ca_id) = 2 order by ca_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
echo "{$row['ca_name']}\n";
@@ -548,13 +548,13 @@ $pg_anchor ="
/*
$sql = " select ca_id, it_id, it_name, it_amount
- from $g4[yc4_item_table]
+ from $g4[shop_item_table]
where it_id <> '$it_id'
order by ca_id, it_name ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
- $sql2 = " select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ";
+ $sql2 = " select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ";
$row2 = sql_fetch($sql2);
// 김선용 2006.10
@@ -667,8 +667,8 @@ $pg_anchor ="
$str = "";
$comma = "";
$sql = " select b.ev_id, b.ev_subject
- from {$g4['yc4_event_item_table']} a
- left join {$g4['yc4_event_table']} b on (a.ev_id=b.ev_id)
+ from {$g4['shop_event_item_table']} a
+ left join {$g4['shop_event_table']} b on (a.ev_id=b.ev_id)
where a.it_id = '$it_id'
order by b.ev_id desc ";
$result = sql_query($sql);
@@ -686,7 +686,7 @@ $pg_anchor ="
이벤트 선택후 더블클릭하면 왼쪽에 추가됨
- $sql = " select ev_id, ev_subject from {$g4['yc4_event_table']} order by ev_id desc ";
+ $sql = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
echo "".get_text($row['ev_subject']);
diff --git a/adm/shop_admin/itemformrelation.php b/adm/shop_admin/itemformrelation.php
index fe33a33c3..ba99d0cc2 100644
--- a/adm/shop_admin/itemformrelation.php
+++ b/adm/shop_admin/itemformrelation.php
@@ -3,20 +3,20 @@ $sub_menu = '400300';
include_once('./_common.php');
$sql = " select ca_id, it_id, it_name, it_amount
- from {$g4['yc4_item_table']}
+ from {$g4['shop_item_table']}
where ca_id like '$ca_id%'
and it_id <> '$it_id'
order by ca_id, it_name ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
- //$sql2 = " select count(*) as cnt from $g4[yc4_item_relation_table] where it_id = '$row[it_id]' ";
- $sql2 = " select count(*) as cnt from {$g4['yc4_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
+ //$sql2 = " select count(*) as cnt from $g4[shop_item_relation_table] where it_id = '$row[it_id]' ";
+ $sql2 = " select count(*) as cnt from {$g4['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
$row2 = sql_fetch($sql2);
if ($row2['cnt'])
continue;
- $sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
+ $sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' ";
$row2 = sql_fetch($sql2);
$ca_name = addslashes($row2['ca_name']);
diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php
index a9643e59a..ba8786333 100644
--- a/adm/shop_admin/itemformupdate.php
+++ b/adm/shop_admin/itemformupdate.php
@@ -18,8 +18,8 @@ function itemdelete($it_id)
$str = $comma = $od_id = "";
$sql = " select b.od_id
- from {$g4['yc4_cart_table']} a,
- {$g4['yc4_order_table']} b
+ from {$g4['shop_cart_table']} a,
+ {$g4['shop_order_table']} b
where a.uq_id = b.uq_id
and a.it_id = '$it_id'
and a.ct_status != '쇼핑' ";
@@ -55,34 +55,34 @@ function itemdelete($it_id)
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
// 장바구니 삭제
- $sql = " delete from {$g4['yc4_cart_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
sql_query($sql);
// 이벤트삭제
- $sql = " delete from {$g4['yc4_event_item_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
sql_query($sql);
// 사용후기삭제
- $sql = " delete from {$g4['yc4_item_ps_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
sql_query($sql);
// 상품문의삭제
- $sql = " delete from {$g4['yc4_item_qa_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
sql_query($sql);
// 관련상품삭제
- $sql = " delete from {$g4['yc4_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
+ $sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
sql_query($sql);
// 상품요약정보삭제
- $sql = " delete from {$g4['yc4_item_info_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_item_info_table']} where it_id = '$it_id' ";
sql_query($sql);
//------------------------------------------------------------------------
// HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함
//------------------------------------------------------------------------
- $sql = " select it_explan from {$g4['yc4_item_table']} where it_id = '$it_id' ";
+ $sql = " select it_explan from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
$imgs = get_editor_image($it['it_explan']);
@@ -103,7 +103,7 @@ function itemdelete($it_id)
// 상품 삭제
- $sql = " delete from {$g4['yc4_item_table']} where it_id = '$it_id' ";
+ $sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
sql_query($sql);
}
@@ -226,13 +226,13 @@ if ($w == "" || $w == "u")
// 관련상품을 우선 삭제함
-sql_query(" delete from {$g4['yc4_item_relation_table']} where it_id = '$it_id' ");
+sql_query(" delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' ");
// 관련상품의 반대도 삭제
-sql_query(" delete from {$g4['yc4_item_relation_table']} where it_id2 = '$it_id' ");
+sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id' ");
// 이벤트상품을 우선 삭제함
-sql_query(" delete from {$g4['yc4_event_item_table']} where it_id = '$it_id' ");
+sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
$sql_common = " ca_id = '$ca_id',
@@ -284,14 +284,14 @@ if ($w == "")
alert("상품 코드가 없으므로 상품을 추가하실 수 없습니다.");
}
- $sql = " insert {$g4['yc4_item_table']}
+ $sql = " insert {$g4['shop_item_table']}
set it_id = '$it_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
- $sql = " update {$g4['yc4_item_table']}
+ $sql = " update {$g4['shop_item_table']}
set $sql_common
where it_id = '$it_id' ";
sql_query($sql);
@@ -300,7 +300,7 @@ else if ($w == "d")
{
if ($is_admin != 'super')
{
- $sql = " select it_id from {$g4['yc4_item_table']} a, {$g4['yc4_category_table']} b
+ $sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '{$member['mb_id']}' ";
@@ -320,13 +320,13 @@ if ($w == "" || $w == "u")
{
if (trim($it_id2[$i]))
{
- $sql = " insert into {$g4['yc4_item_relation_table']}
+ $sql = " insert into {$g4['shop_item_relation_table']}
set it_id = '$it_id',
it_id2 = '$it_id2[$i]' ";
sql_query($sql, false);
// 관련상품의 반대로도 등록
- $sql = " insert into {$g4['yc4_item_relation_table']}
+ $sql = " insert into {$g4['shop_item_relation_table']}
set it_id = '$it_id2[$i]',
it_id2 = '$it_id' ";
sql_query($sql, false);
@@ -339,7 +339,7 @@ if ($w == "" || $w == "u")
{
if (trim($ev_id[$i]))
{
- $sql = " insert into {$g4['yc4_event_item_table']}
+ $sql = " insert into {$g4['shop_event_item_table']}
set ev_id = '$ev_id[$i]',
it_id = '$it_id' ";
sql_query($sql, false);
diff --git a/adm/shop_admin/iteminfo.php b/adm/shop_admin/iteminfo.php
index 0ee428aed..3dbc6a5c6 100644
--- a/adm/shop_admin/iteminfo.php
+++ b/adm/shop_admin/iteminfo.php
@@ -7,7 +7,7 @@ $it_id = trim($_GET['it_id']);
if ($_GET['gubun']) {
$gubun = $_GET['gubun'];
} else {
- $sql = " select ii_gubun from {$g4['yc4_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
+ $sql = " select ii_gubun from {$g4['shop_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
$row = sql_fetch($sql);
$gubun = $row['ii_gubun'] ? $row['ii_gubun'] : "wear";
}
@@ -57,7 +57,7 @@ if ($article) {
$el_title = $value[0];
$el_example = $value[1];
- $sql = " select ii_value from {$g4['yc4_item_info_table']} where it_id = '$it_id' and ii_gubun = '$gubun' and ii_article = '$key' ";
+ $sql = " select ii_value from {$g4['shop_item_info_table']} where it_id = '$it_id' and ii_gubun = '$gubun' and ii_article = '$key' ";
$row = sql_fetch($sql);
if ($row['ii_value']) $el_value = $row['ii_value'];
diff --git a/adm/shop_admin/iteminfoupdate.php b/adm/shop_admin/iteminfoupdate.php
index 3868069c2..9c4a6f885 100644
--- a/adm/shop_admin/iteminfoupdate.php
+++ b/adm/shop_admin/iteminfoupdate.php
@@ -3,7 +3,7 @@ include_once('./_common.php');
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
// 기존의 상품요약정보를 삭제하고 다시 만든다.
-sql_query(" delete from {$g4['yc4_item_info_table']} where it_id = '{$_POST['it_id']}' ");
+sql_query(" delete from {$g4['shop_item_info_table']} where it_id = '{$_POST['it_id']}' ");
$gubun = "";
foreach ($_POST as $key=>$value) {
@@ -13,7 +13,7 @@ foreach ($_POST as $key=>$value) {
continue;
}
- $sql = " insert {$g4['yc4_item_info_table']}
+ $sql = " insert {$g4['shop_item_info_table']}
set it_id = '{$_POST['it_id']}',
ii_gubun = '$gubun',
ii_article = '$key',
diff --git a/adm/shop_admin/itemlist.php b/adm/shop_admin/itemlist.php
index 974cbe025..2050ee12d 100644
--- a/adm/shop_admin/itemlist.php
+++ b/adm/shop_admin/itemlist.php
@@ -9,7 +9,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
// 분류
$ca_list = "";
-$sql = " select * from {$g4['yc4_category_table']} ";
+$sql = " select * from {$g4['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@@ -43,8 +43,8 @@ if ($sca != "") {
if ($sfl == "") $sfl = "it_name";
-$sql_common = " from {$g4['yc4_item_table']} a ,
- {$g4['yc4_category_table']} b
+$sql_common = " from {$g4['shop_item_table']} a ,
+ {$g4['shop_category_table']} b
where (a.ca_id = b.ca_id";
if ($is_admin != 'super')
$sql_common .= " and b.ca_mb_id = '{$member['mb_id']}'";
@@ -87,7 +87,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=sql_fetch_array($result1); $i++)
{
diff --git a/adm/shop_admin/itemlistupdate.php b/adm/shop_admin/itemlistupdate.php
index d1ed416af..3057fe175 100644
--- a/adm/shop_admin/itemlistupdate.php
+++ b/adm/shop_admin/itemlistupdate.php
@@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
// 판매가격 일괄수정
for ($i=0; $i
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
diff --git a/adm/shop_admin/itemqaform.php b/adm/shop_admin/itemqaform.php
index 3ee4717aa..c7f4f62dd 100644
--- a/adm/shop_admin/itemqaform.php
+++ b/adm/shop_admin/itemqaform.php
@@ -5,7 +5,7 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$sql = " select *
- from {$g4['yc4_item_qa_table']} a
+ from {$g4['shop_item_qa_table']} a
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
where iq_id = '$iq_id' ";
$iq = sql_fetch($sql);
diff --git a/adm/shop_admin/itemqaformupdate.php b/adm/shop_admin/itemqaformupdate.php
index 4eaca7274..02030faf1 100644
--- a/adm/shop_admin/itemqaformupdate.php
+++ b/adm/shop_admin/itemqaformupdate.php
@@ -9,7 +9,7 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
-$iq = sql_fetch(" select * from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ");
+$iq = sql_fetch(" select * from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ");
if (!$iq['iq_id']) {
alert('등록된 자료가 없습니다.');
}
@@ -17,7 +17,7 @@ if (!$iq['iq_id']) {
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
if ($w == "u") {
- $sql = "update {$g4['yc4_item_qa_table']}
+ $sql = "update {$g4['shop_item_qa_table']}
set iq_subject = '$iq_subject',
iq_question = '$iq_question',
iq_answer = '$iq_answer'
@@ -26,7 +26,7 @@ if ($w == "u") {
goto_url("./itemqaform.php?w=$w&iq_id=$iq_id&$qstr");
} else if ($w == "d") {
- $sql = "delete from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
+ $sql = "delete from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
sql_query($sql);
goto_url("./itemqalist.php?$qstr");
diff --git a/adm/shop_admin/itemqalist.php b/adm/shop_admin/itemqalist.php
index 34d2d4a67..d0956f15a 100644
--- a/adm/shop_admin/itemqalist.php
+++ b/adm/shop_admin/itemqalist.php
@@ -28,8 +28,8 @@ if (!$sst) {
$sod = "desc";
}
-$sql_common = " from {$g4['yc4_item_qa_table']} a
- left join {$g4['yc4_item_table']} b on (a.it_id = b.it_id)
+$sql_common = " from {$g4['shop_item_qa_table']} a
+ left join {$g4['shop_item_table']} b on (a.it_id = b.it_id)
left join {$g4['member_table']} c on (a.mb_id = c.mb_id) ";
$sql_common .= $sql_search;
@@ -62,7 +62,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
diff --git a/adm/shop_admin/itemsellrank.php b/adm/shop_admin/itemsellrank.php
index 2c68ff922..eda7a243b 100644
--- a/adm/shop_admin/itemsellrank.php
+++ b/adm/shop_admin/itemsellrank.php
@@ -23,7 +23,7 @@ $sql = " select a.it_id,
SUM(IF(ct_status = '반품',ct_qty, 0)) as ct_status_7,
SUM(IF(ct_status = '품절',ct_qty, 0)) as ct_status_8,
SUM(ct_qty) as ct_status_sum
- from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b ";
+ from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b ";
$sql .= " where a.it_id = b.it_id ";
if ($fr_date && $to_date)
{
@@ -66,7 +66,7 @@ $qstr1 = "$qstr&sort1=$sort1&sort2=$sort2&fr_date=$fr_date&to_date=$to_date&sel_
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
diff --git a/adm/shop_admin/itemstocklist.php b/adm/shop_admin/itemstocklist.php
index 00caf036a..50cf6e0b8 100644
--- a/adm/shop_admin/itemstocklist.php
+++ b/adm/shop_admin/itemstocklist.php
@@ -22,7 +22,7 @@ if ($sel_field == "") $sel_field = "it_name";
if ($sort1 == "") $sort1 = "it_id";
if ($sort2 == "") $sort2 = "desc";
-$sql_common = " from $g4[yc4_item_table] ";
+$sql_common = " from $g4[shop_item_table] ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@@ -60,7 +60,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
@@ -122,7 +122,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$sql1 = " select SUM(ct_qty) as sum_qty
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}'
and ct_stock_use = '0'
and ct_status in ('주문', '준비') ";
diff --git a/adm/shop_admin/itemstocklistupdate.php b/adm/shop_admin/itemstocklistupdate.php
index 79c5400ef..d7abbf102 100644
--- a/adm/shop_admin/itemstocklistupdate.php
+++ b/adm/shop_admin/itemstocklistupdate.php
@@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
// 재고 일괄수정
for ($i=0; $i
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=sql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
diff --git a/adm/shop_admin/itemtypelistupdate.php b/adm/shop_admin/itemtypelistupdate.php
index a7e70fc73..9de180f16 100644
--- a/adm/shop_admin/itemtypelistupdate.php
+++ b/adm/shop_admin/itemtypelistupdate.php
@@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], "w");
for ($i=0; $i 포인트관리에서 수작업으로 포인트를 맞추어 주셔야 합니다.\\n\\n만약, 미수금이 발생하는 경우에는 DC에 금액을 음수로 입력하시면 해결됩니다.", $url);
else
diff --git a/adm/shop_admin/orderdelete.php b/adm/shop_admin/orderdelete.php
index cb09918b6..a681f6c2a 100644
--- a/adm/shop_admin/orderdelete.php
+++ b/adm/shop_admin/orderdelete.php
@@ -9,13 +9,13 @@ auth_check($auth[$sub_menu], "d");
if ($od_id && $uq_id)
{
// 장바구니 삭제
- sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ");
+ sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$uq_id' ");
// 카드결제내역 삭제
- sql_query(" delete from {$g4['yc4_card_history_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
+ sql_query(" delete from {$g4['shop_card_history_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
// 주문서 삭제
- sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
+ sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
}
if ($return_url)
diff --git a/adm/shop_admin/orderform.php b/adm/shop_admin/orderform.php
index 307c6a622..b278ab9cc 100644
--- a/adm/shop_admin/orderform.php
+++ b/adm/shop_admin/orderform.php
@@ -24,7 +24,7 @@ include_once(G4_ADMIN_PATH.'/admin.head.php');
if (!isset($cart_not_delete)) {
if (!$hours) $hours = 6;
$beforehours = date("Y-m-d H:i:s", ( G4_SERVER_TIME - (60 * 60 * $hours) ) );
- $sql = " delete from {$g4['yc4_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
+ $sql = " delete from {$g4['shop_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
sql_query($sql);
}
//------------------------------------------------------------------------------
@@ -37,7 +37,7 @@ if (!isset($cart_not_delete)) {
//------------------------------------------------------------------------------
if (!isset($order_not_point)) {
$beforedays = date("Y-m-d H:i:s", ( time() - (60 * 60 * 24 * (int)$default['de_point_days']) ) );
- $sql = " select * from {$g4['yc4_cart_table']}
+ $sql = " select * from {$g4['shop_cart_table']}
where ct_status = '$cart_title2'
and ct_point_use = '0'
and ct_time <= '$beforedays' ";
@@ -45,7 +45,7 @@ if (!isset($order_not_point)) {
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 회원 ID 를 얻는다.
- $tmp_row = sql_fetch("select od_id, mb_id from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ");
+ $tmp_row = sql_fetch("select od_id, mb_id from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ");
// 회원이면서 포인트가 0보다 크다면
if ($tmp_row['mb_id'] && $row['ct_point'] > 0)
@@ -55,7 +55,7 @@ if (!isset($order_not_point)) {
insert_point($tmp_row['mb_id'], $po_point, $po_content, "@delivery", $tmp_row['mb_id'], "{$tmp_row['od_id']},{$row['uq_id']},{$row['ct_id']}");
}
- sql_query("update {$g4['yc4_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
+ sql_query("update {$g4['shop_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
}
}
//------------------------------------------------------------------------------
@@ -64,7 +64,7 @@ if (!isset($order_not_point)) {
//------------------------------------------------------------------------------
// 주문서 정보
//------------------------------------------------------------------------------
-$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
+$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
if (!$od['od_id']) {
alert($alt_msg1);
@@ -83,7 +83,7 @@ if ($default['de_card_test']) {
// 로그인 아이디 / 비번
// 일반 : test1234 / test12345
// 에스크로 : escrow / escrow913
- $g4['yc4_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
+ $g4['shop_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
}
$sql = " select a.ct_id,
@@ -102,7 +102,7 @@ $sql = " select a.ct_id,
a.it_opt5,
a.it_opt6,
b.it_name
- from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '{$od['uq_id']}'
and a.it_id = b.it_id
order by a.ct_id ";
@@ -388,7 +388,7 @@ if ($od['od_receipt_point'] > 0)
- $sql = " select dl_company, dl_url, dl_tel from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ";
+ $sql = " select dl_company, dl_url, dl_tel from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$dl = sql_fetch($sql);
?>
@@ -444,7 +444,7 @@ if ($od['od_receipt_point'] > 0)
if ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') { ?>
// 주문서
- $sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
+ $sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$result = sql_query($sql);
$od = sql_fetch_array($result);
@@ -486,7 +486,7 @@ if ($od['od_receipt_point'] > 0)
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')
{
- $pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
+ $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
echo " 결제대행사 ";
}
?>
@@ -524,7 +524,7 @@ if ($od['od_receipt_point'] > 0)
'>원
- $pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
+ $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
echo " 결제대행사 ";
?>
@@ -549,7 +549,7 @@ if ($od['od_receipt_point'] > 0)
value=' echo $od['od_receipt_card'] ?>'>원
- $card_url = $g4['yc4_cardpg'][$default['de_card_pg']];
+ $card_url = $g4['shop_cardpg'][$default['de_card_pg']];
?>
결제대행사
@@ -599,7 +599,7 @@ if ($od['od_receipt_point'] > 0)
배송시 선택하세요.
- $sql = "select * from {$g4['yc4_delivery_table']} order by dl_order desc, dl_id desc ";
+ $sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
echo " {$row['dl_company']}\n";
diff --git a/adm/shop_admin/orderformupdate.php b/adm/shop_admin/orderformupdate.php
index 0bc0ba8f3..9557f93e0 100644
--- a/adm/shop_admin/orderformupdate.php
+++ b/adm/shop_admin/orderformupdate.php
@@ -2,7 +2,7 @@
$sub_menu = '400400';
include_once('./_common.php');
-$sql = " update {$g4['yc4_order_table']}
+$sql = " update {$g4['shop_order_table']}
set od_shop_memo = '$od_shop_memo',
od_name = '$od_name',
od_tel = '$od_tel',
diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php
index bc1d5b868..069ab76fb 100644
--- a/adm/shop_admin/orderlist.php
+++ b/adm/shop_admin/orderlist.php
@@ -11,9 +11,9 @@ $where = " where ";
$sql_search = "";
if ($search != "")
{
- if ($sel_field != "")
+ if ($sel_field != "")
{
- $sql_search .= " $where $sel_field like '%$search%' ";
+ $sql_search .= " $where $sel_field like '%$search%' ";
$where = " and ";
}
@@ -25,8 +25,8 @@ if ($sel_field == "") $sel_field = "od_id";
if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
-$sql_common = " from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
+$sql_common = " from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 김선용 200805 : 조인 사용으로 전체카운트가 일정레코드 이상일 때 지연시간 문제가 심각하므로 변경
@@ -49,12 +49,27 @@ $sql = " select a.*, "._MISU_QUERY_."
order by $sort1 $sort2
limit $from_record, $rows ";
$result = sql_query($sql, false);
-if (!$result) {
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_temp_hp` INT NOT NULL AFTER `od_temp_card` ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_receipt_hp` INT NOT NULL AFTER `od_receipt_card` ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_hp_time` DATETIME NOT NULL AFTER `od_card_time` ", false);
+
+$lines = array();
+$tot_itemcnt = 0;
+$tot_orderamount = 0;
+$tot_ordercancel = 0;
+$tot_dc_amount = 0;
+$tot_receiptamount = 0;
+$tot_receiptcancel = 0;
+$tot_misuamount = 0;
+for ($i=0; $row=mysql_fetch_array($result); $i++)
+{
+ $lines[$i] = $row;
+
+ $tot_itemcount += $row['itemcount'];
+ $tot_orderamount += $row['orderamount'];
+ $tot_ordercancel += $row['ordercancel'];
+ $tot_dc_amount += $row['od_dc_amount'];
+ $tot_receiptamount += $row['receiptamount'];
+ $tot_receiptcancel += $row['receiptcancel'];
+ $tot_misu += $row['misu'];
}
-//echo $sql;
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
// 김선용 200805 : sel_ca_id - 쓰레기 코드
@@ -129,96 +144,6 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
관리
-
-
- $tot_itemcnt = 0;
- $tot_orderamount = 0;
- $tot_ordercancel = 0;
- $tot_dc_amount = 0;
- $tot_receiptamount = 0;
- $tot_receiptcancel = 0;
- $tot_misuamount = 0;
- for ($i=0; $row=mysql_fetch_array($result); $i++)
- {
- // 결제 수단
- $s_receipt_way = $s_br = "";
- if ($row[od_settle_case])
- {
- $s_receipt_way = $row['od_settle_case'];
- $s_br = ' ';
- }
- else
- {
- if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
- {
- //$s_receipt_way = "무통장입금";
- $s_receipt_way = cut_str($row['od_bank_account'],8,"");
- $s_br = " ";
- }
-
- if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
- {
- // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
- if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
- ; // 화면 출력하지 않음
- else
- {
- $s_receipt_way .= $s_br."카드";
- if ($row['od_receipt_card'] == 0)
- $s_receipt_way .= "(미승인) ";
- $s_br = " ";
- }
- }
- }
-
- if ($row['od_receipt_point'] > 0)
- $s_receipt_way .= $s_br."포인트";
-
- $s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr");
- $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr');");
-
- $mb_nick = get_sideview($row['mb_id'], $row['od_name'], $row['od_email'], '');
-
- $tot_cnt = "";
- if ($row['mb_id'])
- {
- $sql2 = " select count(*) as cnt from {$g4['yc4_order_table']} where mb_id = '{$row['mb_id']}' ";
- $row2 = sql_fetch($sql2);
- $tot_cnt = '('.$row2['cnt'].')';
- }
-
- $list = $i%2;
- ?>
-
- =$row['od_id']?>
-
- =$mb_nick?>
- =$row['mb_id']?>
- =$row['itemcount']?>건 =$tot_cnt?>
- =number_format($row['orderamount'])?>
- =number_format($row['ordercancel'])?>
- =number_format($row['od_dc_amount'])?>
- =number_format($row['receiptamount'])?>
- =number_format($row['receiptcancel'])?>
- =number_format($row['misu'])?>
- =$s_receipt_way?>
- 수정 삭제
-
-
-
- $tot_itemcount += $row['itemcount'];
- $tot_orderamount += $row['orderamount'];
- $tot_ordercancel += $row['ordercancel'];
- $tot_dc_amount += $row['od_dc_amount'];
- $tot_receiptamount += $row['receiptamount'];
- $tot_receiptcancel += $row['receiptcancel'];
- $tot_misu += $row['misu'];
- }
- mysql_free_result($result);
- if ($i == 0)
- echo '자료가 한건도 없습니다. ';
- ?>
-
합 계
@@ -232,10 +157,85 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
+
+
+ for ($i=0; $i ';
+ }
+ else
+ {
+ if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
+ {
+ //$s_receipt_way = "무통장입금";
+ $s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
+ $s_br = " ";
+ }
+
+ if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
+ {
+ // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
+ if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
+ ; // 화면 출력하지 않음
+ else
+ {
+ $s_receipt_way .= $s_br."카드";
+ if ($lines[$i]['od_receipt_card'] == 0)
+ $s_receipt_way .= "(미승인) ";
+ $s_br = " ";
+ }
+ }
+ }
+
+ if ($lines[$i]['od_receipt_point'] > 0)
+ $s_receipt_way .= $s_br."포인트";
+
+ $s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$qstr");
+ $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}&mb_id={$lines[$i]['mb_id']}&$qstr');");
+
+ $mb_nick = get_sideview($lines[$i]['mb_id'], $lines[$i]['od_name'], $lines[$i]['od_email'], '');
+
+ $tot_cnt = "";
+ if ($lines[$i]['mb_id'])
+ {
+ $sql2 = " select count(*) as cnt from {$g4['shop_order_table']} where mb_id = '{$lines[$i]['mb_id']}' ";
+ $row2 = sql_fetch($sql2);
+ $tot_cnt = '('.$row2['cnt'].')';
+ }
+
+ $list = $i%2;
+ ?>
+
+ =$lines[$i]['od_id']?>
+
+ =$mb_nick?>
+ =$lines[$i]['mb_id']?>
+ =$lines[$i]['itemcount']?>건 =$tot_cnt?>
+ =number_format($lines[$i]['orderamount'])?>
+ =number_format($lines[$i]['ordercancel'])?>
+ =number_format($lines[$i]['od_dc_amount'])?>
+ =number_format($lines[$i]['receiptamount'])?>
+ =number_format($lines[$i]['receiptcancel'])?>
+ =number_format($lines[$i]['misu'])?>
+ =$s_receipt_way?>
+ 수정 삭제
+
+
+ }
+ mysql_free_result($result);
+ if ($i == 0)
+ echo '자료가 한건도 없습니다. ';
+ ?>
+
-=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
+=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
주의) 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.
diff --git a/adm/shop_admin/orderlist2.php b/adm/shop_admin/orderlist2.php
index 2cb7b4208..b94fe33f9 100644
--- a/adm/shop_admin/orderlist2.php
+++ b/adm/shop_admin/orderlist2.php
@@ -25,12 +25,12 @@ if ($sel_field == "") $sel_field = "od_id";
if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
-$sql_common = " from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
+$sql_common = " from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
-$row = sql_fetch("select count(od_id) as cnt from {$g4['yc4_order_table']} $sql_search ");
+$row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
$total_count = $row['cnt'];
$rows = $config['cf_page_rows'];
@@ -46,6 +46,27 @@ $sql = " select a.od_id,
limit $from_record, $rows ";
$result = sql_query($sql);
+$lines = array();
+$tot_itemcnt = 0;
+$tot_orderamount = 0;
+$tot_ordercancel = 0;
+$tot_dc_amount = 0;
+$tot_receiptamount = 0;
+$tot_receiptcancel = 0;
+$tot_misuamount = 0;
+for ($i=0; $row=mysql_fetch_array($result); $i++)
+{
+ $lines[$i] = $row;
+
+ $tot_itemcount += $row['itemcount'];
+ $tot_orderamount += $row['orderamount'];
+ $tot_ordercancel += $row['ordercancel'];
+ $tot_dc_amount += $row['od_dc_amount'];
+ $tot_receiptamount += $row['receiptamount'];
+ $tot_receiptcancel += $row['receiptcancel'];
+ $tot_misu += $row['misu'];
+}
+
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
@@ -91,6 +112,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
+
주문번호
주문자
@@ -117,89 +139,88 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
-
+
+
+
+ 합 계
+ =(int)$tot_itemcount?>건
+ =number_format($tot_orderamount)?>
+ =number_format($tot_ordercancel)?>
+ =number_format($tot_dc_amount)?>
+ =number_format($tot_receiptamount)?>
+ =number_format($tot_receiptcancel)?>
+ =number_format($tot_misu)?>
+
+
+
+
-$tot_itemcnt = 0;
-$tot_orderamount = 0;
-$tot_ordercancel = 0;
-$tot_dc_amount = 0;
-$tot_receiptamount = 0;
-$tot_receiptcancel = 0;
-$tot_misuamount = 0;
-for ($i=0; $row=mysql_fetch_array($result); $i++)
+for ($i=0; $i ';
}
else
{
- if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
+ if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
{
//$s_receipt_way = "무통장입금";
- $s_receipt_way = cut_str($row['od_bank_account'],8,"");
+ $s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
$s_br = " ";
}
- if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
+ if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
{
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
- if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
+ if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
; // 화면 출력하지 않음
else
{
$s_receipt_way .= $s_br."카드";
- if ($row['od_receipt_card'] == 0)
- $s_receipt_way .= "(미승인) ";
- $s_br = " ";
+ if ($lines[$i]['od_receipt_card'] == 0)
+ $s_receipt_way .= '(미승인) ';
+ $s_br = ' ';
}
}
}
- if ($row['od_receipt_point'] > 0)
- $s_receipt_way .= $s_br."포인트";
+ if ($lines[$i]['od_receipt_point'] > 0)
+ $s_receipt_way .= $s_br.'포인트';
- $s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}&$qstr");
- $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr&list=2');");
+ $s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$qstr");
+ $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}&mb_id={$lines[$i]['mb_id']}&$qstr&list=2');");
if ($i>0)
- echo " ";
+ echo ' ';
$list = $i%2;
echo "
-
- {$row['od_id']}
- ".cut_str($row['od_name'],30,"")."
- {$row['mb_id']}
- {$row['itemcount']}건
- ".number_format($row['orderamount'])."
- ".number_format($row['ordercancel'])."
- ".number_format($row['od_dc_amount'])."
- ".number_format($row['receiptamount'])."
- ".number_format($row['receiptcancel'])."
- ".number_format($row['misu'])."
+
+ {$lines[$i]['od_id']}
+ ".cut_str($lines[$i]['od_name'],30,"")."
+ {$lines[$i]['mb_id']}
+ {$lines[$i]['itemcount']}건
+ ".number_format($lines[$i]['orderamount'])."
+ ".number_format($lines[$i]['ordercancel'])."
+ ".number_format($lines[$i]['od_dc_amount'])."
+ ".number_format($lines[$i]['receiptamount'])."
+ ".number_format($lines[$i]['receiptcancel'])."
+ ".number_format($lines[$i]['misu'])."
$s_receipt_way
$s_mod $s_del
";
- $tot_itemcount += $row['itemcount'];
- $tot_orderamount += $row['orderamount'];
- $tot_ordercancel += $row['ordercancel'];
- $tot_dc_amount += $row['od_dc_amount'];
- $tot_receiptamount += $row['receiptamount'];
- $tot_receiptcancel += $row['receiptcancel'];
- $tot_misu += $row['misu'];
-
// 상품개별출력
$sql2 = " select c.it_name,
b.*
- from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (a.uq_id = b.uq_id)
- left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
- where od_id = '{$row['od_id']}' ";
+ from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
+ left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
+ where od_id = '{$lines[$i]['od_id']}' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++)
{
@@ -236,18 +257,8 @@ if ($i == 0)
?>
-
- 합 계
- =(int)$tot_itemcount?>건
- =number_format($tot_orderamount)?>
- =number_format($tot_ordercancel)?>
- =number_format($tot_dc_amount)?>
- =number_format($tot_receiptamount)?>
- =number_format($tot_receiptcancel)?>
- =number_format($tot_misu)?>
-
-
+
diff --git a/adm/shop_admin/ordermail.inc.php b/adm/shop_admin/ordermail.inc.php
index 540ed1605..cfa14b6c3 100644
--- a/adm/shop_admin/ordermail.inc.php
+++ b/adm/shop_admin/ordermail.inc.php
@@ -7,7 +7,7 @@ if (!defined("_ORDERMAIL_")) exit;
// 주문자님께 메일발송 체크를 했다면
if ($od_send_mail)
{
- $od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' ");
+ $od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' ");
$addmemo = nl2br(stripslashes($addmemo));
@@ -25,7 +25,7 @@ if ($od_send_mail)
b.it_opt4_subject,
b.it_opt5_subject,
b.it_opt6_subject
- from {$g4['yc4_cart_table']} a inner join {$g4['yc4_item_table']} b on (b.it_id=a.it_id)
+ from {$g4['shop_cart_table']} a inner join {$g4['shop_item_table']} b on (b.it_id=a.it_id)
where a.uq_id = '{$od['uq_id']}'
order by a.ct_id ";
$result = sql_query($sql);
@@ -100,7 +100,7 @@ if ($od_send_mail)
// 배송정보
$is_delivery = false;
if ((int)$od[dl_id] > 0) {
- $dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ");
+ $dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
$delivery_list['dl_url'] = $dl['dl_url'];
if (strpos($delivery_list['dl_url'], "=")) $delivery_list['dl_url'] .= $od['od_invoice'];
@@ -133,7 +133,7 @@ if ($od_send_mail)
$od_shop_memo .= ", 송장번호";
*/
- sql_query(" update {$g4['yc4_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
+ sql_query(" update {$g4['shop_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
$admin = get_admin('super');
diff --git a/adm/shop_admin/orderprintresult.php b/adm/shop_admin/orderprintresult.php
index 5871213ec..f1a264ea9 100644
--- a/adm/shop_admin/orderprintresult.php
+++ b/adm/shop_admin/orderprintresult.php
@@ -40,7 +40,7 @@ if ($csv == 'csv')
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice
- FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
+ FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
if ($case == 1) // 출력기간
@@ -96,7 +96,7 @@ if ($csv == 'xls')
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.it_opt1, b.it_opt2, b.it_opt3, b.it_opt4, b.it_opt5, b.it_opt6
- FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
+ FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
if ($case == 1) // 출력기간
@@ -169,7 +169,7 @@ function get_order($uq_id)
{
global $g4;
- $sql = " select * from {$g4['yc4_order_table']} where uq_id = '$uq_id' ";
+ $sql = " select * from {$g4['shop_order_table']} where uq_id = '$uq_id' ";
return sql_fetch($sql);
}
@@ -180,13 +180,13 @@ if ($case == 1)
{
$fr_date = date_conv($fr_date);
$to_date = date_conv($to_date);
- $sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
+ $sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
where a.uq_id = b.uq_id
and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
}
else
{
- $sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
+ $sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
where a.uq_id = b.uq_id
and a.od_id between '$fr_od_id' and '$to_od_id' ";
}
@@ -241,7 +241,7 @@ if (mysql_num_rows($result) == 0)
$tot_total_amount = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
- $sql1 = " select * from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ";
+ $sql1 = " select * from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
// 1.03.02
@@ -286,7 +286,7 @@ if (mysql_num_rows($result) == 0)
b.it_opt5_subject,
b.it_opt6_subject,
b.it_name
- from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.it_id = b.it_id
and a.uq_id = '{$row['uq_id']}' ";
if ($ct_status)
diff --git a/adm/shop_admin/orderreceiptupdate.php b/adm/shop_admin/orderreceiptupdate.php
index 26d04f309..8f59209cb 100644
--- a/adm/shop_admin/orderreceiptupdate.php
+++ b/adm/shop_admin/orderreceiptupdate.php
@@ -24,7 +24,7 @@ if ($od_hp_time)
alert("휴대폰 결제일시 오류입니다.");
}
-$sql = " update {$g4['yc4_order_table']}
+$sql = " update {$g4['shop_order_table']}
set od_deposit_name = '$od_deposit_name',
od_bank_account = '$od_bank_account',
od_bank_time = '$od_bank_time',
diff --git a/adm/shop_admin/ordersms.inc.php b/adm/shop_admin/ordersms.inc.php
index 69b5f0072..827d5a6db 100644
--- a/adm/shop_admin/ordersms.inc.php
+++ b/adm/shop_admin/ordersms.inc.php
@@ -31,7 +31,7 @@ if ($od_sms_baesong_check)
{
$sms_contents = $default['de_sms_cont4'];
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
- $sql = " select dl_company from $g4[yc4_delivery_table] where dl_id = '$dl_id' ";
+ $sql = " select dl_company from $g4[shop_delivery_table] where dl_id = '$dl_id' ";
$row = sql_fetch($sql);
$sms_contents = preg_replace("/{택배회사}/", $row['dl_company'], $sms_contents);
$sms_contents = preg_replace("/{운송장번호}/", $od_invoice, $sms_contents);
diff --git a/adm/shop_admin/orderstatuslist.php b/adm/shop_admin/orderstatuslist.php
index 7ee4fb45b..c9103fb31 100644
--- a/adm/shop_admin/orderstatuslist.php
+++ b/adm/shop_admin/orderstatuslist.php
@@ -26,9 +26,9 @@ if ($sel_field == "") $sel_field = "od_id";
if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
-$sql_common = " from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (a.uq_id = b.uq_id)
- left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
+$sql_common = " from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
+ left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@@ -71,6 +71,17 @@ $sql = " select a.od_id,
limit $from_record, $rows ";
$result = sql_query($sql);
+$lines = array();
+for ($i=0; $row=sql_fetch_array($result); $i++)
+{
+ $lines[$i] = $row;
+
+ $tot_amount += $row['ct_amount'];
+ $tot_qty += $row['ct_qty'];
+ $tot_sub_amount += $row['ct_sub_amount'];
+ $tot_sub_point += $row['ct_sub_point'];
+}
+
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
?>
@@ -130,6 +141,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
+
">주문번호
">주문자
@@ -143,48 +155,8 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
">상태
수정
-
-
-
-
-for ($i=0; $row=sql_fetch_array($result); $i++) {
-
- $od_deposit_name = "";
- if ($row['od_deposit_name'] != "")
- $od_deposit_name = "title='입금자 : {$row['od_deposit_name']}'";
-
- $href = "$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=c.it_id&search=$row[it_id]";
- $it_name = "".cut_str($row['it_name'],35)." ";
- $it_name .= print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
-
- $s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}");
-
- $list = $i%2;
- echo "
-
- {$row['od_id']}
- ".cut_str($row['od_name'],10,"")."
- {$row['mb_id']}
- ".get_it_image($row['it_id'].'_s', 50, 50)."
- $it_name
- ".number_format($row['ct_amount'])."
- $row[ct_qty]
- ".number_format($row['ct_sub_amount'])."
- ".number_format($row['ct_sub_point'])."
- {$row['ct_status']}
- $s_mod
- ";
-
- $tot_amount += $row['ct_amount'];
- $tot_qty += $row['ct_qty'];
- $tot_sub_amount += $row['ct_sub_amount'];
- $tot_sub_point += $row['ct_sub_point'];
-}
-
-if ($i == 0)
- echo "자료가 한건도 없습니다. \n";
-?>
-
+
+
합 계
=number_format($tot_amount)?>
@@ -194,6 +166,45 @@ if ($i == 0)
+
+
+
+
+for ($i=0; $i".cut_str($lines[$i]['it_name'],35)." ";
+ $it_name .= print_item_options($lines[$i]['it_id'], $lines[$i]['it_opt1'], $lines[$i]['it_opt2'], $lines[$i]['it_opt3'], $lines[$i]['it_opt4'], $lines[$i]['it_opt5'], $lines[$i]['it_opt6']);
+
+ $s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}");
+
+ $list = $i%2;
+ echo "
+
+ {$lines[$i]['od_id']}
+ ".cut_str($lines[$i]['od_name'],10,"")."
+ {$lines[$i]['mb_id']}
+ ".get_it_image($lines[$i]['it_id'].'_s', 50, 50)."
+ $it_name
+ ".number_format($lines[$i]['ct_amount'])."
+ {$lines[$i]['ct_qty']}
+ ".number_format($lines[$i]['ct_sub_amount'])."
+ ".number_format($lines[$i]['ct_sub_point'])."
+ {$lines[$i]['ct_status']}
+ $s_mod
+ ";
+}
+
+if ($i == 0)
+ echo "자료가 한건도 없습니다. \n";
+?>
+
+
+
diff --git a/adm/shop_admin/sale1date.php b/adm/shop_admin/sale1date.php
index efd6bd35b..30238410c 100644
--- a/adm/shop_admin/sale1date.php
+++ b/adm/shop_admin/sale1date.php
@@ -47,7 +47,7 @@ $sql = " select uq_id,
od_dc_amount,
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
(od_refund_amount + od_cancel_card) as receiptcancel
- from {$g4['yc4_order_table']}
+ from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,10) between '$fr_date' and '$to_date'
order by od_time desc ";
$result = sql_query($sql);
@@ -58,7 +58,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
diff --git a/adm/shop_admin/sale1month.php b/adm/shop_admin/sale1month.php
index b5a29b58a..ae225a311 100644
--- a/adm/shop_admin/sale1month.php
+++ b/adm/shop_admin/sale1month.php
@@ -47,7 +47,7 @@ $sql = " select uq_id,
od_dc_amount,
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
(od_refund_amount + od_cancel_card) as receiptcancel
- from {$g4['yc4_order_table']}
+ from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
order by od_time desc ";
$result = sql_query($sql);
@@ -58,7 +58,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
diff --git a/adm/shop_admin/sale1today.php b/adm/shop_admin/sale1today.php
index ada979598..97bd88735 100644
--- a/adm/shop_admin/sale1today.php
+++ b/adm/shop_admin/sale1today.php
@@ -22,7 +22,7 @@ $sql = " select od_id,
od_dc_amount,
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
(od_refund_amount + od_cancel_card) as receiptcancel
- from {$g4['yc4_order_table']}
+ from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,10) = '$date'
order by od_id desc ";
$result = sql_query($sql);
@@ -33,7 +33,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
diff --git a/adm/shop_admin/sale1year.php b/adm/shop_admin/sale1year.php
index 10c12f192..3e9ff9c0f 100644
--- a/adm/shop_admin/sale1year.php
+++ b/adm/shop_admin/sale1year.php
@@ -42,7 +42,7 @@ $sql = " select uq_id,
od_dc_amount,
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
(od_refund_amount + od_cancel_card) as receiptcancel
- from {$g4['yc4_order_table']}
+ from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,4) between '$fr_year' and '$to_year'
order by od_time desc ";
$result = sql_query($sql);
@@ -53,7 +53,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
diff --git a/adm/shop_admin/wishlist.php b/adm/shop_admin/wishlist.php
index 00d398e0d..a2628e5ed 100644
--- a/adm/shop_admin/wishlist.php
+++ b/adm/shop_admin/wishlist.php
@@ -15,7 +15,7 @@ if ($sort2 == "") $sort2 = "desc";
$sql = " select a.it_id,
b.it_name,
COUNT(a.it_id) as it_id_cnt
- from {$g4['yc4_wish_table']} a, {$g4['yc4_item_table']} b ";
+ from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b ";
$sql .= " where a.it_id = b.it_id ";
if ($fr_date && $to_date)
{
@@ -58,7 +58,7 @@ $qstr1 = "fr_date=$fr_date&to_date=$to_date&sel_ca_id=$sel_ca_id";
전체분류
- $sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
+ $sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
diff --git a/css/admin.css b/css/admin.css
index 3d220f3f8..6961f0761 100644
--- a/css/admin.css
+++ b/css/admin.css
@@ -90,6 +90,9 @@ h2 {font-size:1.2em}
.gnb_1depth_over .gnb_sub_ul {left:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_1depth_over2 .gnb_sub_ul {right:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
+.gnb_js .gnb_grp_style {background:#f7f7f7 !important}
+.gnb_js .gnb_grp_div {border-top:1px solid #eee}
+
/* 중간 레이아웃 */
#wrapper {z-index:5;margin:30px auto;width:1000px;min-height:630px;height:auto !important;height:630px;zoom:1}
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
@@ -164,11 +167,6 @@ fieldset span {display:block;margin-bottom:10px}
fieldset p {color:#4c5f67}
fieldset button, .fieldset_submit {padding:0 15px;height:23px;border:0;background:#74868b;color:#fff;font-size:1em;line-height:2.1em;vertical-align:middle;cursor:pointer}
fieldset button:focus, .fieldset_submit:focus {padding:0 15px;height:23px;border:0;background:#555;color:#fff;font-size:1em;line-height:2.1em;vertical-align:middle}
-/* 캡챠 입력상자 */
-.fs_input,
-fieldset textarea {padding:3px 3px 4px;border:1px solid #ccc;background:#f7f7f7;vertical-align:middle}
-.fs_input:focus,
-fieldset textarea:focus {padding:4px 4px 5px;border:0;background:#494949;color:#fff}
.readonly {}
@@ -290,6 +288,31 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
#session_del p span,
#cache_del p span {color:#ff3061}
+/* 쇼핑몰 설정 */
+#frm_payment textarea {height:50px}
+
+#scf_cardtest_btn {margin-left:5px;vertical-align:middle}
+#scf_cardtest_tip {margin:10px 0 0;padding:10px;border:3px solid #ddd}
+#scf_cardtest_tip strong {display:inline-block;margin:0 0 5px}
+#scf_cardtest_tip dl {margin:0 0 15px;padding:0;zoom:1}
+#scf_cardtest_tip dl:after {display:block;visibility:hidden;clear:both;content:""}
+#scf_cardtest_tip dt {float:left;width:100px}
+#scf_cardtest_tip dd {padding:0;overflow:hidden}
+.scf_cardtest_tip {display:none}
+
+#frm_sms dl {border-bottom:1px solid #ddd;zoom:1}
+#frm_sms dl:after {display:block;visibility:hidden;clear:both;content:""}
+#frm_sms dt {clear:both;float:left;padding:5px 0;width:100px}
+#frm_sms dd {padding:5px 0;overflow:hidden}
+#scf_sms {padding:0 0 10px;border-bottom:1px solid #ddd;zoom:1}
+#scf_sms:after {display:block;visibility:hidden;clear:both;content:""}
+.scf_sms_box {float:left;margin:0 31px;width:163px;text-align:center}
+.scf_sms_box h3 {margin:0 0 10px}
+.scf_sms_img {margin:0 0 10px;width:163px;height:191px;background:url('../adm/shop_admin/img/sms_back.gif') no-repeat 0 0;text-align:center}
+.scf_sms_img textarea {margin:54px 0 0;width:115px;height:85px;border:0;background:transparent;font-size:0.95em;overflow:hidden}
+.scf_sms_img span {display:block}
+.scf_sms_cnt {display:block}
+
/* 분류관리 목록 */
.cate_list_lbl {display:inline-block;padding-left:15px;background:url('../adm/shop_admin/img/icon_reply.gif') 0 2px no-repeat}
diff --git a/extend/shop.extend.php b/extend/shop.extend.php
index e8bce80b2..dbaa8e880 100644
--- a/extend/shop.extend.php
+++ b/extend/shop.extend.php
@@ -24,8 +24,8 @@ if (G4_HTTPS_DOMAIN) {
}
// 미수금에 대한 QUERY 문
-// 테이블 a 는 주문서 ($g4[yc4_order_table])
-// 테이블 b 는 장바구니 ($g4[yc4_cart_table])
+// 테이블 a 는 주문서 ($g4[shop_order_table])
+// 테이블 b 는 장바구니 ($g4[shop_cart_table])
define(_MISU_QUERY_, "
count(distinct a.od_id) as ordercount, /* 주문서건수 */
count(b.ct_id) as itemcount, /* 상품건수 */
@@ -49,42 +49,29 @@ define(_MISU_QUERY_, "
//------------------------------------------------------------------------------
// 쇼핑몰 변수 모음 시작
//------------------------------------------------------------------------------
-define('YC4_TABLE_PREFIX', 'yc4_');
+define('SHOP_TABLE_PREFIX', 'yc4_');
// 쇼핑몰 테이블명
-$g4['yc4_default_table'] = YC4_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블
-$g4['yc4_banner_table'] = YC4_TABLE_PREFIX.'banner'; // 배너 테이블
-$g4['yc4_card_history_table'] = YC4_TABLE_PREFIX.'card_history'; // 전자결제이력 테이블
-$g4['yc4_cart_table'] = YC4_TABLE_PREFIX.'cart'; // 장바구니 테이블
-$g4['yc4_category_table'] = YC4_TABLE_PREFIX.'category'; // 상품분류 테이블
-$g4['yc4_content_table'] = YC4_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블
-$g4['yc4_delivery_table'] = YC4_TABLE_PREFIX.'delivery'; // 배송정보 테이블
-$g4['yc4_event_table'] = YC4_TABLE_PREFIX.'event'; // 이벤트 테이블
-$g4['yc4_event_item_table'] = YC4_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블
-$g4['yc4_faq_table'] = YC4_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블
-$g4['yc4_faq_master_table'] = YC4_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블
-$g4['yc4_item_table'] = YC4_TABLE_PREFIX.'item'; // 상품 테이블
-$g4['yc4_item_ps_table'] = YC4_TABLE_PREFIX.'item_ps'; // 상품 사용후기 테이블
-$g4['yc4_item_qa_table'] = YC4_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블
-$g4['yc4_item_relation_table'] = YC4_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블
-$g4['yc4_new_win_table'] = YC4_TABLE_PREFIX.'new_win'; // 새창 테이블
-$g4['yc4_onlinecalc_table'] = YC4_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블
-$g4['yc4_order_table'] = YC4_TABLE_PREFIX.'order'; // 주문서 테이블
-$g4['yc4_wish_table'] = YC4_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블
-$g4['yc4_item_info_table'] = YC4_TABLE_PREFIX.'item_info'; // 상품요약정보 테이블 (상품정보고시)
-
-
-// 신용카드결제대행사 URL
-$g4[yc4_cardpg][kcp] = "http://admin.kcp.co.kr";
-$g4[yc4_cardpg][banktown] = "http://ebiz.banktown.com/index.cs";
-$g4[yc4_cardpg][telec] = "http://www.ebizpro.co.kr";
-$g4[yc4_cardpg][inicis] = "https://iniweb.inicis.com/DefaultWebApp/index.html";
-$g4[yc4_cardpg][allthegate] = "http://www.allthegate.com/login/r_login.jsp";
-$g4[yc4_cardpg][allat] = "http://www.allatbiz.net/servlet/AllatBizSrvX/bizcon/jspx/login/login.jsp?next=/servlet/AllatBizSrvX/bizable/jspx/login/login.jsp";
-$g4[yc4_cardpg][tgcorp] = "https://npg.tgcorp.com/mdbop/login.jsp";
-$g4[yc4_cardpg][kspay] = "http://nims.ksnet.co.kr:7001/pg_infoc/src/login.jsp"; // ksnet
-$g4[yc4_cardpg][dacom] = "https://pgweb.dacom.net";
-$g4[yc4_cardpg][dacom_xpay] = "https://pgweb.dacom.net";
+$g4['shop_default_table'] = SHOP_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블
+$g4['shop_banner_table'] = SHOP_TABLE_PREFIX.'banner'; // 배너 테이블
+$g4['shop_card_history_table'] = SHOP_TABLE_PREFIX.'card_history'; // 전자결제이력 테이블
+$g4['shop_cart_table'] = SHOP_TABLE_PREFIX.'cart'; // 장바구니 테이블
+$g4['shop_category_table'] = SHOP_TABLE_PREFIX.'category'; // 상품분류 테이블
+$g4['shop_content_table'] = SHOP_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블
+$g4['shop_delivery_table'] = SHOP_TABLE_PREFIX.'delivery'; // 배송정보 테이블
+$g4['shop_event_table'] = SHOP_TABLE_PREFIX.'event'; // 이벤트 테이블
+$g4['shop_event_item_table'] = SHOP_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블
+$g4['shop_faq_table'] = SHOP_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블
+$g4['shop_faq_master_table'] = SHOP_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블
+$g4['shop_item_table'] = SHOP_TABLE_PREFIX.'item'; // 상품 테이블
+$g4['shop_item_ps_table'] = SHOP_TABLE_PREFIX.'item_ps'; // 상품 사용후기 테이블
+$g4['shop_item_qa_table'] = SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블
+$g4['shop_item_relation_table'] = SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블
+$g4['shop_new_win_table'] = SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블
+$g4['shop_onlinecalc_table'] = SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블
+$g4['shop_order_table'] = SHOP_TABLE_PREFIX.'order'; // 주문서 테이블
+$g4['shop_wish_table'] = SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블
+$g4['shop_item_info_table'] = SHOP_TABLE_PREFIX.'item_info'; // 상품요약정보 테이블 (상품정보고시)
//------------------------------------------------------------------------------
// 쇼핑몰 변수 모음 끝
//------------------------------------------------------------------------------
@@ -94,7 +81,7 @@ $g4[yc4_cardpg][dacom_xpay] = "https://pgweb.dacom.net";
// 쇼핑몰 필수 실행코드 모음 시작
//==============================================================================
// 쇼핑몰 설정값 배열변수
-$default = sql_fetch(" select * from {$g4['yc4_default_table']} ");
+$default = sql_fetch(" select * from {$g4['shop_default_table']} ");
// uniqid 테이블이 없을 경우 생성
if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
@@ -105,17 +92,17 @@ if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
}
// uq_id 필드추가
-$sql = " select uq_id from {$g4['yc4_cart_table']} limit 1 ";
+$sql = " select uq_id from {$g4['shop_cart_table']} limit 1 ";
$result = sql_query($sql, false);
if(!$result) {
- sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `ct_id` ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_card_history_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_card_history_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD INDEX uq_id (uq_id) ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD UNIQUE uq_id (uq_id) ", false);
- sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` DROP INDEX index1", false);
+ sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `ct_id` ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_card_history_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_order_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_card_history_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD INDEX uq_id (uq_id) ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD UNIQUE uq_id (uq_id) ", false);
+ sql_query(" ALTER TABLE `{$g4['shop_order_table']}` DROP INDEX index1", false);
}
//==============================================================================
diff --git a/install/install_db.php b/install/install_db.php
index 48bc03931..8e0da24cc 100644
--- a/install/install_db.php
+++ b/install/install_db.php
@@ -48,7 +48,6 @@ if (!$select_db) {
// 테이블 생성 ------------------------------------
$file = implode('', file('./gnuboard4s.sql'));
-eval("\$file = \"$file\";");
$file = preg_replace('/^--.*$/m', '', $file);
$file = preg_replace('/`g4s_([^`]+`)/', '`'.$table_prefix.'$1', $file);
@@ -57,6 +56,17 @@ for ($i=0; $i
@@ -71,7 +81,7 @@ $download_point = -20;
//-------------------------------------------------------------------------------------------------
// config 테이블 설정
$sql = " insert into `{$table_prefix}config`
- set cf_title = '그누보드4s',
+ set cf_title = '쇼핑몰',
cf_admin = '$admin_id',
cf_use_point = '1',
cf_use_norobot = '1',
@@ -144,6 +154,96 @@ $sql = " insert into `{$table_prefix}member`
mb_ip = '{$_SERVER['REMOTE_ADDR']}'
";
@mysql_query($sql);
+
+// 내용관리 생성
+@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '회사소개에 대한 내용을 입력하십시오. ' ") or die(mysql_error() . "
" . $sql);
+@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 취급방침', co_content= '
개인정보 취급방침에 대한 내용을 입력하십시오.' ") or die(mysql_error() . "
" . $sql);
+@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '
서비스 이용약관에 대한 내용을 입력하십시오.' ") or die(mysql_error() . "
" . $sql);
+
+// 온라인견적
+@mysql_query(" insert into `{$shop_prefix}onlinecalc` set oc_id = '1', oc_subject = '온라인견적' ") or die(mysql_error() . "
" . $sql);
+
+// FAQ Master
+@mysql_query(" insert into `{$shop_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "
" . $sql);
+
+// default 설정 (쇼핑몰 설정)
+$sql = " insert into `{$shop_prefix}default`
+ set de_admin_company_name = '회사명',
+ de_admin_company_saupja_no = '123-45-67890',
+ de_admin_company_owner = '대표자명',
+ de_admin_company_tel = '02-123-4567',
+ de_admin_company_fax = '02-123-4568',
+ de_admin_tongsin_no = '제 OO구 - 123호',
+ de_admin_buga_no = '12345호',
+ de_admin_company_zip = '123-456',
+ de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
+ de_admin_info_name = '정보책임자명',
+ de_admin_info_email = '정보책임자 E-mail',
+ de_type1_list_use = '1',
+ de_type1_list_skin = 'maintype10.inc.php',
+ de_type1_list_mod = '3',
+ de_type1_list_row = '2',
+ de_type1_img_width = '$simg_width',
+ de_type1_img_height = '$simg_height',
+ de_type2_list_use = '1',
+ de_type2_list_skin = 'maintype20.inc.php',
+ de_type2_list_mod = '3',
+ de_type2_list_row = '2',
+ de_type2_img_width = '$simg_width',
+ de_type2_img_height = '$simg_height',
+ de_type3_list_use = '1',
+ de_type3_list_skin = 'maintype30.inc.php',
+ de_type3_list_mod = '1',
+ de_type3_list_row = '3',
+ de_type3_img_width = '$simg_width',
+ de_type3_img_height = '$simg_height',
+ de_type4_list_use = '1',
+ de_type4_list_skin = 'maintype40.inc.php',
+ de_type4_list_mod = '3',
+ de_type4_list_row = '1',
+ de_type4_img_width = '$simg_width',
+ de_type4_img_height = '$simg_height',
+ de_type5_list_use = '1',
+ de_type5_list_skin = 'maintype50.inc.php',
+ de_type5_list_mod = '3',
+ de_type5_list_row = '1',
+ de_type5_img_width = '$simg_width',
+ de_type5_img_height = '$simg_height',
+ de_bank_use = '1',
+ de_bank_account = 'OO은행 12345-67-89012 예금주명',
+ de_vbank_use = '0',
+ de_iche_use = '0',
+ de_card_use = '0',
+ de_card_max_amount = '1000',
+ de_point_settle = '10000',
+ de_point_per = '5',
+ de_card_point = '0',
+ de_point_days = '7',
+ de_card_pg = 'kcp',
+ de_kcp_mid = 'T0000',
+ de_send_cost_case = '상한',
+ de_send_cost_limit = '20000;30000;40000',
+ de_send_cost_list = '4000;3000;2000',
+ de_hope_date_use = '0',
+ de_hope_date_after = '3',
+ de_baesong_content = '배송 안내 입력전입니다. ',
+ de_change_content = '교환/반품 안내 입력전입니다. ',
+ de_rel_list_mod = '4',
+ de_rel_img_width = '$simg_width',
+ de_rel_img_height = '$simg_height',
+ de_simg_width = '$simg_width',
+ de_simg_height = '$simg_height',
+ de_mimg_width = '$mimg_width',
+ de_mimg_height = '$mimg_height',
+ de_item_ps_use = '1',
+ de_level_sell = '1',
+ de_code_dup_use = '1',
+ de_sms_cont1 = '{이름}님의 회원가입을 축하드립니다.\nID:{회원아이디}\n{회사명}',
+ de_sms_cont2 = '{이름}님께서 주문하셨습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
+ de_sms_cont3 = '{이름}님 입금 감사합니다.\n{입금액}원\n주문번호:\n{주문번호}\n{회사명}',
+ de_sms_cont4 = '{이름}님 배송합니다.\n택배:{택배회사}\n운송장번호:\n{운송장번호}\n{회사명}'
+ ";
+mysql_query($sql) or die(mysql_error() . "
" . $sql);
?>
DB설정 완료
@@ -158,7 +258,15 @@ $dir_arr = array (
$data_path.'/file',
$data_path.'/log',
$data_path.'/member',
- $data_path.'/session'
+ $data_path.'/session',
+ $data_path.'/banner',
+ $data_path.'/category',
+ $data_path.'/common',
+ $data_path.'/content',
+ $data_path.'/event',
+ $data_path.'/faq',
+ $data_path.'/item',
+ $data_path.'/onlinecalc'
);
for ($i=0; $i
-축하합니다. 그누보드4s 설치가 완료되었습니다.
+축하합니다. 쇼핑몰 설치가 완료되었습니다.
환경설정 변경은 다음의 과정을 따르십시오.
diff --git a/install/shop.sql b/install/shop.sql
new file mode 100644
index 000000000..4355c7cbd
--- /dev/null
+++ b/install/shop.sql
@@ -0,0 +1,579 @@
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_banner`
+--
+
+DROP TABLE IF EXISTS `yc4_banner`;
+CREATE TABLE IF NOT EXISTS `yc4_banner` (
+ `bn_id` int(11) NOT NULL AUTO_INCREMENT,
+ `bn_alt` varchar(255) NOT NULL DEFAULT '',
+ `bn_url` varchar(255) NOT NULL DEFAULT '',
+ `bn_position` varchar(255) NOT NULL DEFAULT '',
+ `bn_border` tinyint(4) NOT NULL DEFAULT '0',
+ `bn_new_win` tinyint(4) NOT NULL DEFAULT '0',
+ `bn_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `bn_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `bn_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `bn_hit` int(11) NOT NULL DEFAULT '0',
+ `bn_order` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`bn_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_card_history`
+--
+
+DROP TABLE IF EXISTS `yc4_card_history`;
+CREATE TABLE IF NOT EXISTS `yc4_card_history` (
+ `cd_id` int(11) NOT NULL AUTO_INCREMENT,
+ `od_id` bigint(20) unsigned NOT NULL,
+ `uq_id` bigint(20) unsigned NOT NULL,
+ `cd_mall_id` varchar(20) NOT NULL DEFAULT '',
+ `cd_amount` int(11) NOT NULL DEFAULT '0',
+ `cd_app_no` varchar(20) NOT NULL DEFAULT '',
+ `cd_app_rt` varchar(8) NOT NULL DEFAULT '',
+ `cd_trade_ymd` date NOT NULL DEFAULT '0000-00-00',
+ `cd_trade_hms` time NOT NULL DEFAULT '00:00:00',
+ `cd_quota` char(2) NOT NULL DEFAULT '',
+ `cd_opt01` varchar(255) NOT NULL DEFAULT '',
+ `cd_opt02` varchar(255) NOT NULL DEFAULT '',
+ `cd_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `cd_ip` varchar(25) NOT NULL DEFAULT '',
+ PRIMARY KEY (`cd_id`),
+ KEY `od_id` (`od_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_cart`
+--
+
+DROP TABLE IF EXISTS `yc4_cart`;
+CREATE TABLE IF NOT EXISTS `yc4_cart` (
+ `ct_id` int(11) NOT NULL AUTO_INCREMENT,
+ `uq_id` bigint(20) unsigned NOT NULL,
+ `it_id` varchar(10) NOT NULL DEFAULT '0',
+ `it_opt1` varchar(255) NOT NULL DEFAULT '',
+ `it_opt2` varchar(255) NOT NULL DEFAULT '',
+ `it_opt3` varchar(255) NOT NULL DEFAULT '',
+ `it_opt4` varchar(255) NOT NULL DEFAULT '',
+ `it_opt5` varchar(255) NOT NULL DEFAULT '',
+ `it_opt6` varchar(255) NOT NULL DEFAULT '',
+ `ct_status` enum('쇼핑','주문','준비','배송','완료','취소','반품','품절') NOT NULL DEFAULT '쇼핑',
+ `ct_history` text NOT NULL,
+ `ct_amount` int(11) NOT NULL DEFAULT '0',
+ `ct_point` int(11) NOT NULL DEFAULT '0',
+ `ct_point_use` tinyint(4) NOT NULL DEFAULT '0',
+ `ct_stock_use` tinyint(4) NOT NULL DEFAULT '0',
+ `ct_qty` int(11) NOT NULL DEFAULT '0',
+ `ct_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `ct_ip` varchar(25) NOT NULL DEFAULT '',
+ `ct_send_cost` varchar(255) NOT NULL,
+ `ct_direct` tinyint(4) NOT NULL,
+ PRIMARY KEY (`ct_id`),
+ KEY `on_uid` (`on_uid`),
+ KEY `uq_id` (`uq_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_category`
+--
+
+DROP TABLE IF EXISTS `yc4_category`;
+CREATE TABLE IF NOT EXISTS `yc4_category` (
+ `ca_id` varchar(10) NOT NULL DEFAULT '0',
+ `ca_name` varchar(255) NOT NULL DEFAULT '',
+ `ca_skin` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt1_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt2_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt3_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt4_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt5_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_opt6_subject` varchar(255) NOT NULL DEFAULT '',
+ `ca_img_width` int(11) NOT NULL DEFAULT '0',
+ `ca_img_height` int(11) NOT NULL DEFAULT '0',
+ `ca_sell_email` varchar(255) NOT NULL DEFAULT '',
+ `ca_use` tinyint(4) NOT NULL DEFAULT '0',
+ `ca_stock_qty` int(11) NOT NULL DEFAULT '0',
+ `ca_explan_html` tinyint(4) NOT NULL DEFAULT '0',
+ `ca_head_html` text NOT NULL,
+ `ca_tail_html` text NOT NULL,
+ `ca_list_mod` int(11) NOT NULL DEFAULT '0',
+ `ca_list_row` int(11) NOT NULL DEFAULT '0',
+ `ca_include_head` varchar(255) NOT NULL DEFAULT '',
+ `ca_include_tail` varchar(255) NOT NULL DEFAULT '',
+ `ca_mb_id` varchar(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`ca_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_content`
+--
+
+DROP TABLE IF EXISTS `yc4_content`;
+CREATE TABLE IF NOT EXISTS `yc4_content` (
+ `co_id` varchar(20) NOT NULL DEFAULT '',
+ `co_html` tinyint(4) NOT NULL DEFAULT '0',
+ `co_subject` varchar(255) NOT NULL DEFAULT '',
+ `co_content` longtext NOT NULL,
+ `co_hit` int(11) NOT NULL DEFAULT '0',
+ `co_include_head` varchar(255) NOT NULL,
+ `co_include_tail` varchar(255) NOT NULL,
+ PRIMARY KEY (`co_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_default`
+--
+
+DROP TABLE IF EXISTS `yc4_default`;
+CREATE TABLE IF NOT EXISTS `yc4_default` (
+ `de_admin_company_owner` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_name` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_saupja_no` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_tel` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_fax` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_tongsin_no` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_zip` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
+ `de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
+ `de_type1_list_use` int(11) NOT NULL DEFAULT '0',
+ `de_type1_list_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_type1_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_type1_list_row` int(11) NOT NULL DEFAULT '0',
+ `de_type1_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_type1_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_type2_list_use` int(11) NOT NULL DEFAULT '0',
+ `de_type2_list_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_type2_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_type2_list_row` int(11) NOT NULL DEFAULT '0',
+ `de_type2_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_type2_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_type3_list_use` int(11) NOT NULL DEFAULT '0',
+ `de_type3_list_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_type3_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_type3_list_row` int(11) NOT NULL DEFAULT '0',
+ `de_type3_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_type3_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_type4_list_use` int(11) NOT NULL DEFAULT '0',
+ `de_type4_list_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_type4_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_type4_list_row` int(11) NOT NULL DEFAULT '0',
+ `de_type4_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_type4_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_type5_list_use` int(11) NOT NULL DEFAULT '0',
+ `de_type5_list_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_type5_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_type5_list_row` int(11) NOT NULL DEFAULT '0',
+ `de_type5_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_type5_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_rel_list_mod` int(11) NOT NULL DEFAULT '0',
+ `de_rel_img_width` int(11) NOT NULL DEFAULT '0',
+ `de_rel_img_height` int(11) NOT NULL DEFAULT '0',
+ `de_bank_use` int(11) NOT NULL DEFAULT '0',
+ `de_bank_account` text NOT NULL,
+ `de_card_test` int(11) NOT NULL DEFAULT '0',
+ `de_card_use` int(11) NOT NULL DEFAULT '0',
+ `de_card_point` int(11) NOT NULL DEFAULT '0',
+ `de_card_pg` varchar(255) NOT NULL DEFAULT '',
+ `de_card_max_amount` int(11) NOT NULL DEFAULT '0',
+ `de_banktown_mid` varchar(255) NOT NULL DEFAULT '',
+ `de_banktown_auth_key` varchar(255) NOT NULL DEFAULT '',
+ `de_telec_mid` varchar(255) NOT NULL DEFAULT '',
+ `de_point_settle` int(11) NOT NULL DEFAULT '0',
+ `de_level_sell` int(11) NOT NULL DEFAULT '0',
+ `de_send_cost_case` varchar(255) NOT NULL DEFAULT '',
+ `de_send_cost_limit` varchar(255) NOT NULL DEFAULT '',
+ `de_send_cost_list` varchar(255) NOT NULL DEFAULT '',
+ `de_hope_date_use` int(11) NOT NULL DEFAULT '0',
+ `de_hope_date_after` int(11) NOT NULL DEFAULT '0',
+ `de_baesong_content` text NOT NULL,
+ `de_change_content` text NOT NULL,
+ `de_point_days` int(11) NOT NULL DEFAULT '0',
+ `de_simg_width` int(11) NOT NULL DEFAULT '0',
+ `de_simg_height` int(11) NOT NULL DEFAULT '0',
+ `de_mimg_width` int(11) NOT NULL DEFAULT '0',
+ `de_mimg_height` int(11) NOT NULL DEFAULT '0',
+ `de_scroll_banner_use` tinyint(4) NOT NULL DEFAULT '0',
+ `de_cart_skin` varchar(255) NOT NULL DEFAULT '',
+ `de_register` varchar(255) NOT NULL DEFAULT '',
+ `de_sms_cont1` varchar(255) NOT NULL DEFAULT '',
+ `de_sms_cont2` varchar(255) NOT NULL DEFAULT '',
+ `de_sms_cont3` varchar(255) NOT NULL DEFAULT '',
+ `de_sms_cont4` varchar(255) NOT NULL DEFAULT '',
+ `de_sms_use1` tinyint(4) NOT NULL DEFAULT '0',
+ `de_sms_use2` tinyint(4) NOT NULL DEFAULT '0',
+ `de_sms_use3` tinyint(4) NOT NULL DEFAULT '0',
+ `de_sms_use4` tinyint(4) NOT NULL DEFAULT '0',
+ `de_sms_hp` varchar(255) NOT NULL DEFAULT '',
+ `de_kcp_mid` varchar(255) NOT NULL DEFAULT '',
+ `de_iche_use` tinyint(4) NOT NULL DEFAULT '0',
+ `de_item_ps_use` tinyint(4) NOT NULL DEFAULT '0',
+ `de_code_dup_use` tinyint(4) NOT NULL DEFAULT '0',
+ `de_point_per` tinyint(4) NOT NULL DEFAULT '0',
+ `de_admin_buga_no` varchar(255) NOT NULL DEFAULT '',
+ `de_different_msg` tinyint(4) NOT NULL DEFAULT '0',
+ `de_sms_use` varchar(255) NOT NULL DEFAULT '',
+ `de_icode_id` varchar(255) NOT NULL DEFAULT '',
+ `de_icode_pw` varchar(255) NOT NULL DEFAULT '',
+ `de_icode_server_ip` varchar(255) NOT NULL DEFAULT '',
+ `de_icode_server_port` varchar(255) NOT NULL DEFAULT '',
+ `de_kcp_site_key` varchar(255) NOT NULL DEFAULT '',
+ `de_vbank_use` varchar(255) NOT NULL DEFAULT '',
+ `de_taxsave_use` tinyint(4) NOT NULL,
+ `de_guest_privacy` text NOT NULL,
+ `de_hp_use` tinyint(4) NOT NULL DEFAULT '0',
+ `de_escrow_use` tinyint(4) NOT NULL DEFAULT '0'
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_delivery`
+--
+
+DROP TABLE IF EXISTS `yc4_delivery`;
+CREATE TABLE IF NOT EXISTS `yc4_delivery` (
+ `dl_id` int(11) NOT NULL AUTO_INCREMENT,
+ `dl_company` varchar(255) NOT NULL DEFAULT '',
+ `dl_url` varchar(255) NOT NULL DEFAULT '',
+ `dl_tel` varchar(255) NOT NULL DEFAULT '',
+ `dl_order` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`dl_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_event`
+--
+
+DROP TABLE IF EXISTS `yc4_event`;
+CREATE TABLE IF NOT EXISTS `yc4_event` (
+ `ev_id` int(11) NOT NULL AUTO_INCREMENT,
+ `it_group` int(11) NOT NULL DEFAULT '0',
+ `ev_skin` varchar(255) NOT NULL DEFAULT '',
+ `ev_img_width` int(11) NOT NULL DEFAULT '0',
+ `ev_img_height` int(11) NOT NULL DEFAULT '0',
+ `ev_list_mod` int(11) NOT NULL DEFAULT '0',
+ `ev_list_row` int(11) NOT NULL DEFAULT '0',
+ `ev_subject` varchar(255) NOT NULL DEFAULT '',
+ `ev_head_html` text NOT NULL,
+ `ev_tail_html` text NOT NULL,
+ `ev_use` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`ev_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_event_item`
+--
+
+DROP TABLE IF EXISTS `yc4_event_item`;
+CREATE TABLE IF NOT EXISTS `yc4_event_item` (
+ `ev_id` int(11) NOT NULL DEFAULT '0',
+ `it_id` varchar(10) NOT NULL DEFAULT '',
+ PRIMARY KEY (`ev_id`,`it_id`),
+ KEY `it_id` (`it_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_faq`
+--
+
+DROP TABLE IF EXISTS `yc4_faq`;
+CREATE TABLE IF NOT EXISTS `yc4_faq` (
+ `fa_id` int(11) NOT NULL AUTO_INCREMENT,
+ `fm_id` int(11) NOT NULL DEFAULT '0',
+ `fa_subject` text NOT NULL,
+ `fa_content` text NOT NULL,
+ `fa_order` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`fa_id`),
+ KEY `fm_id` (`fm_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_faq_master`
+--
+
+DROP TABLE IF EXISTS `yc4_faq_master`;
+CREATE TABLE IF NOT EXISTS `yc4_faq_master` (
+ `fm_id` int(11) NOT NULL AUTO_INCREMENT,
+ `fm_subject` varchar(255) NOT NULL DEFAULT '',
+ `fm_head_html` text NOT NULL,
+ `fm_tail_html` text NOT NULL,
+ `fm_order` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`fm_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_item`
+--
+
+DROP TABLE IF EXISTS `yc4_item`;
+CREATE TABLE IF NOT EXISTS `yc4_item` (
+ `it_id` varchar(10) NOT NULL DEFAULT '',
+ `ca_id` varchar(10) NOT NULL DEFAULT '0',
+ `ca_id2` varchar(255) NOT NULL DEFAULT '',
+ `ca_id3` varchar(255) NOT NULL DEFAULT '',
+ `it_name` varchar(255) NOT NULL DEFAULT '',
+ `it_gallery` tinyint(4) NOT NULL DEFAULT '0',
+ `it_maker` varchar(255) NOT NULL DEFAULT '',
+ `it_origin` varchar(255) NOT NULL DEFAULT '',
+ `it_opt1_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt2_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt3_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt4_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt5_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt6_subject` varchar(255) NOT NULL DEFAULT '',
+ `it_opt1` text NOT NULL,
+ `it_opt2` text NOT NULL,
+ `it_opt3` text NOT NULL,
+ `it_opt4` text NOT NULL,
+ `it_opt5` text NOT NULL,
+ `it_opt6` text NOT NULL,
+ `it_type1` tinyint(4) NOT NULL DEFAULT '0',
+ `it_type2` tinyint(4) NOT NULL DEFAULT '0',
+ `it_type3` tinyint(4) NOT NULL DEFAULT '0',
+ `it_type4` tinyint(4) NOT NULL DEFAULT '0',
+ `it_type5` tinyint(4) NOT NULL DEFAULT '0',
+ `it_basic` text NOT NULL,
+ `it_explan` mediumtext NOT NULL,
+ `it_explan_html` tinyint(4) NOT NULL DEFAULT '0',
+ `it_cust_amount` int(11) NOT NULL DEFAULT '0',
+ `it_amount` int(11) NOT NULL DEFAULT '0',
+ `it_amount2` int(11) NOT NULL DEFAULT '0',
+ `it_amount3` int(11) NOT NULL DEFAULT '0',
+ `it_point` int(11) NOT NULL DEFAULT '0',
+ `it_sell_email` varchar(255) NOT NULL DEFAULT '',
+ `it_use` tinyint(4) NOT NULL DEFAULT '0',
+ `it_stock_qty` int(11) NOT NULL DEFAULT '0',
+ `it_head_html` text NOT NULL,
+ `it_tail_html` text NOT NULL,
+ `it_hit` int(11) NOT NULL DEFAULT '0',
+ `it_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `it_ip` varchar(25) NOT NULL DEFAULT '',
+ `it_order` int(11) NOT NULL DEFAULT '0',
+ `it_tel_inq` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`it_id`),
+ KEY `ca_id` (`ca_id`),
+ KEY `it_name` (`it_name`),
+ KEY `it_order` (`it_order`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_item_info`
+--
+
+DROP TABLE IF EXISTS `yc4_item_info`;
+CREATE TABLE IF NOT EXISTS `yc4_item_info` (
+ `ii_id` int(11) NOT NULL AUTO_INCREMENT,
+ `it_id` varchar(10) NOT NULL,
+ `ii_gubun` varchar(50) NOT NULL,
+ `ii_article` varchar(50) NOT NULL,
+ `ii_title` varchar(255) NOT NULL,
+ `ii_value` varchar(255) NOT NULL,
+ PRIMARY KEY (`ii_id`),
+ UNIQUE KEY `it_id` (`it_id`,`ii_gubun`,`ii_article`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_item_ps`
+--
+
+DROP TABLE IF EXISTS `yc4_item_ps`;
+CREATE TABLE IF NOT EXISTS `yc4_item_ps` (
+ `is_id` int(11) NOT NULL AUTO_INCREMENT,
+ `it_id` varchar(10) NOT NULL DEFAULT '0',
+ `mb_id` varchar(20) NOT NULL DEFAULT '',
+ `is_name` varchar(255) NOT NULL DEFAULT '',
+ `is_password` varchar(255) NOT NULL DEFAULT '',
+ `is_score` tinyint(4) NOT NULL DEFAULT '0',
+ `is_subject` varchar(255) NOT NULL DEFAULT '',
+ `is_content` text NOT NULL,
+ `is_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `is_ip` varchar(25) NOT NULL DEFAULT '',
+ `is_confirm` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`is_id`),
+ KEY `index1` (`it_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_item_qa`
+--
+
+DROP TABLE IF EXISTS `yc4_item_qa`;
+CREATE TABLE IF NOT EXISTS `yc4_item_qa` (
+ `iq_id` int(11) NOT NULL AUTO_INCREMENT,
+ `it_id` varchar(10) NOT NULL DEFAULT '',
+ `mb_id` varchar(20) NOT NULL DEFAULT '',
+ `iq_name` varchar(255) NOT NULL DEFAULT '',
+ `iq_password` varchar(255) NOT NULL DEFAULT '',
+ `iq_subject` varchar(255) NOT NULL DEFAULT '',
+ `iq_question` text NOT NULL,
+ `iq_answer` text NOT NULL,
+ `iq_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `iq_ip` varchar(25) NOT NULL DEFAULT '',
+ PRIMARY KEY (`iq_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_item_relation`
+--
+
+DROP TABLE IF EXISTS `yc4_item_relation`;
+CREATE TABLE IF NOT EXISTS `yc4_item_relation` (
+ `it_id` varchar(10) NOT NULL DEFAULT '',
+ `it_id2` varchar(10) NOT NULL DEFAULT '',
+ PRIMARY KEY (`it_id`,`it_id2`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_new_win`
+--
+
+DROP TABLE IF EXISTS `yc4_new_win`;
+CREATE TABLE IF NOT EXISTS `yc4_new_win` (
+ `nw_id` int(11) NOT NULL AUTO_INCREMENT,
+ `nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_disable_hours` int(11) NOT NULL DEFAULT '0',
+ `nw_left` int(11) NOT NULL DEFAULT '0',
+ `nw_top` int(11) NOT NULL DEFAULT '0',
+ `nw_height` int(11) NOT NULL DEFAULT '0',
+ `nw_width` int(11) NOT NULL DEFAULT '0',
+ `nw_subject` text NOT NULL,
+ `nw_content` text NOT NULL,
+ `nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`nw_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_onlinecalc`
+--
+
+DROP TABLE IF EXISTS `yc4_onlinecalc`;
+CREATE TABLE IF NOT EXISTS `yc4_onlinecalc` (
+ `oc_id` int(11) NOT NULL AUTO_INCREMENT,
+ `oc_subject` varchar(255) NOT NULL DEFAULT '',
+ `oc_category` text NOT NULL,
+ `oc_head_html` text NOT NULL,
+ `oc_tail_html` text NOT NULL,
+ PRIMARY KEY (`oc_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_order`
+--
+
+DROP TABLE IF EXISTS `yc4_order`;
+CREATE TABLE IF NOT EXISTS `yc4_order` (
+ `od_id` bigint(20) unsigned NOT NULL,
+ `uq_id` bigint(20) unsigned NOT NULL,
+ `mb_id` varchar(20) NOT NULL DEFAULT '',
+ `od_pwd` varchar(255) NOT NULL DEFAULT '',
+ `od_name` varchar(20) NOT NULL DEFAULT '',
+ `od_email` varchar(100) NOT NULL DEFAULT '',
+ `od_tel` varchar(20) NOT NULL DEFAULT '',
+ `od_hp` varchar(20) NOT NULL DEFAULT '',
+ `od_zip1` char(3) NOT NULL DEFAULT '',
+ `od_zip2` char(3) NOT NULL DEFAULT '',
+ `od_addr1` varchar(100) NOT NULL DEFAULT '',
+ `od_addr2` varchar(100) NOT NULL DEFAULT '',
+ `od_deposit_name` varchar(20) NOT NULL DEFAULT '',
+ `od_b_name` varchar(20) NOT NULL DEFAULT '',
+ `od_b_tel` varchar(20) NOT NULL DEFAULT '',
+ `od_b_hp` varchar(20) NOT NULL DEFAULT '',
+ `od_b_zip1` char(3) NOT NULL DEFAULT '',
+ `od_b_zip2` char(3) NOT NULL DEFAULT '',
+ `od_b_addr1` varchar(100) NOT NULL DEFAULT '',
+ `od_b_addr2` varchar(100) NOT NULL DEFAULT '',
+ `od_memo` text NOT NULL,
+ `od_send_cost` int(11) NOT NULL DEFAULT '0',
+ `od_temp_bank` int(11) NOT NULL DEFAULT '0',
+ `od_temp_card` int(11) NOT NULL DEFAULT '0',
+ `od_temp_hp` int(11) NOT NULL,
+ `od_temp_point` int(11) NOT NULL DEFAULT '0',
+ `od_receipt_bank` int(11) NOT NULL DEFAULT '0',
+ `od_receipt_card` int(11) NOT NULL DEFAULT '0',
+ `od_receipt_hp` int(11) NOT NULL,
+ `od_receipt_point` int(11) NOT NULL DEFAULT '0',
+ `od_bank_account` varchar(255) NOT NULL DEFAULT '',
+ `od_bank_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `od_card_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `od_hp_time` datetime NOT NULL,
+ `od_cancel_card` int(11) NOT NULL DEFAULT '0',
+ `od_dc_amount` int(11) NOT NULL DEFAULT '0',
+ `od_refund_amount` int(11) NOT NULL DEFAULT '0',
+ `od_shop_memo` text NOT NULL,
+ `dl_id` int(11) NOT NULL DEFAULT '0',
+ `od_invoice` varchar(255) NOT NULL DEFAULT '',
+ `od_invoice_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `od_hope_date` date NOT NULL DEFAULT '0000-00-00',
+ `od_settle_case` varchar(255) NOT NULL DEFAULT '',
+ `od_escrow1` varchar(255) NOT NULL DEFAULT '',
+ `od_escrow2` varchar(255) NOT NULL DEFAULT '',
+ `od_escrow3` varchar(255) NOT NULL DEFAULT '',
+ `od_cash_no` varchar(255) NOT NULL,
+ `od_cash_receipt_no` varchar(255) NOT NULL,
+ `od_cash_app_time` varchar(255) NOT NULL,
+ `od_cash_reg_stat` varchar(255) NOT NULL,
+ `od_cash_reg_desc` varchar(255) NOT NULL,
+ `od_cash_tr_code` varchar(255) NOT NULL,
+ `od_cash_id_info` varchar(255) NOT NULL,
+ `od_cash` tinyint(4) NOT NULL,
+ `od_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `od_ip` varchar(25) NOT NULL DEFAULT '',
+ PRIMARY KEY (`od_id`),
+ UNIQUE KEY `uq_id` (`uq_id`),
+ KEY `index2` (`mb_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `yc4_wish`
+--
+
+DROP TABLE IF EXISTS `yc4_wish`;
+CREATE TABLE IF NOT EXISTS `yc4_wish` (
+ `wi_id` int(11) NOT NULL AUTO_INCREMENT,
+ `mb_id` varchar(20) NOT NULL DEFAULT '',
+ `it_id` varchar(10) NOT NULL DEFAULT '0',
+ `wi_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `wi_ip` varchar(25) NOT NULL DEFAULT '',
+ PRIMARY KEY (`wi_id`),
+ KEY `index1` (`mb_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
\ No newline at end of file
diff --git a/lib/iteminfo.lib.php b/lib/iteminfo.lib.php
index ac87468de..f693672d8 100644
--- a/lib/iteminfo.lib.php
+++ b/lib/iteminfo.lib.php
@@ -564,7 +564,7 @@ function create_table_item_info()
{
global $g4;
return sql_query("
- CREATE TABLE IF NOT EXISTS `{$g4['yc4_item_info_table']}` (
+ CREATE TABLE IF NOT EXISTS `{$g4['shop_item_info_table']}` (
`ii_id` int(11) NOT NULL AUTO_INCREMENT,
`it_id` varchar(10) NOT NULL,
`ii_gubun` varchar(50) NOT NULL,
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index c36d77d2b..be841ffdd 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -7,7 +7,7 @@ function get_cart_count($uq_id)
{
global $g4;
- $sql = " select count(ct_id) as cnt from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ";
+ $sql = " select count(ct_id) as cnt from {$g4['shop_cart_table']} where uq_id = '$uq_id' ";
$row = sql_fetch($sql);
$cnt = (int)$row[cnt];
return $cnt;
@@ -59,13 +59,13 @@ function get_it_stock_qty($it_id)
{
global $g4;
- $sql = " select it_stock_qty from {$g4['yc4_item_table']} where it_id = '$it_id' ";
+ $sql = " select it_stock_qty from {$g4['shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
$jaego = (int)$row['it_stock_qty'];
// 재고에서 빼지 않았고 주문인것만
$sql = " select SUM(ct_qty) as sum_qty
- from {$g4['yc4_cart_table']}
+ from {$g4['shop_cart_table']}
where it_id = '$it_id'
and ct_stock_use = 0
and ct_status in ('주문', '준비') ";
@@ -205,7 +205,7 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_
// 1.02.00
// it_order 추가
$sql = " select *
- from {$g4['yc4_item_table']}
+ from {$g4['shop_item_table']}
where it_use = '1'
and it_type{$type} = '1' ";
if ($ca_id) $sql .= " and ca_id like '$ca_id%' ";
@@ -234,7 +234,7 @@ function display_category($no, $list_mod, $list_row, $img_width, $img_height, $c
// 상품의 갯수
$items = $list_mod * $list_row;
- $sql = " select * from {$g4['yc4_item_table']} where it_use = '1'";
+ $sql = " select * from {$g4['shop_item_table']} where it_use = '1'";
if ($ca_id)
$sql .= " and ca_id LIKE '{$ca_id}%' ";
$sql .= " order by it_order, it_id desc limit $items ";
@@ -270,7 +270,7 @@ function get_star_image($it_id)
{
global $g4;
- $sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['yc4_item_ps_table']} where it_id = '$it_id' ";
+ $sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
return (int)get_star($row['score']);
@@ -408,7 +408,7 @@ function print_item_options()
it_opt4_subject,
it_opt5_subject,
it_opt6_subject
- from {$g4['yc4_item_table']}
+ from {$g4['shop_item_table']}
where it_id = '$it_id' ";
$it = sql_fetch($sql);
@@ -500,8 +500,8 @@ function display_event($no, $event, $list_mod, $list_row, $img_width, $img_heigh
// 1.02.00
// b.it_order 추가
$sql = " select b.*
- from {$g4['yc4_event_item_table']} a,
- {$g4['yc4_item_table']} b
+ from {$g4['shop_event_item_table']} a,
+ {$g4['shop_item_table']} b
where a.it_id = b.it_id
and b.it_use = '1'
and a.ev_id = '$event' ";
@@ -537,7 +537,7 @@ function get_goods($uq_id)
global $g4;
// 상품명만들기
- $row = sql_fetch(" select a.it_id, b.it_name from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b where a.it_id = b.it_id and a.uq_id = '$uq_id' order by ct_id limit 1 ");
+ $row = sql_fetch(" select a.it_id, b.it_name from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b where a.it_id = b.it_id and a.uq_id = '$uq_id' order by ct_id limit 1 ");
// 상품명에 "(쌍따옴표)가 들어가면 오류 발생함
$goods['it_id'] = $row['it_id'];
$goods['full_name']= $goods['name'] = addslashes($row['it_name']);
@@ -545,7 +545,7 @@ function get_goods($uq_id)
$goods['full_name'] = preg_replace ("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $goods['full_name']);
// 상품건수
- $row = sql_fetch(" select count(*) as cnt from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ");
+ $row = sql_fetch(" select count(*) as cnt from {$g4['shop_cart_table']} where uq_id = '$uq_id' ");
$cnt = $row['cnt'] - 1;
if ($cnt)
$goods['full_name'] .= " 외 {$cnt}건";
@@ -556,9 +556,9 @@ function get_goods($uq_id)
// 패턴의 내용대로 해당 디렉토리에서 정렬하여 태그에 적용할 수 있게 반환
-function get_list_skin_options($pattern, $dirname="./")
+function get_list_skin_options($pattern, $dirname='./', $sval='')
{
- $str = "";
+ $str = '선택 '.PHP_EOL;
unset($arr);
$handle = opendir($dirname);
@@ -570,8 +570,13 @@ function get_list_skin_options($pattern, $dirname="./")
closedir($handle);
sort($arr);
- foreach($arr as $key=>$value) {
- $str .= "$arr[$key] \n";
+ foreach($arr as $value) {
+ if($value == $sval)
+ $selected = ' selected="selected"';
+ else
+ $selected = '';
+
+ $str .= ''.$value.' '.PHP_EOL;
}
return $str;
@@ -622,10 +627,10 @@ function get_new_od_id()
global $g4;
// 주문서 테이블 Lock 걸고
- sql_query(" LOCK TABLES {$g4['yc4_order_table']} READ, {$g4['yc4_order_table']} WRITE ", FALSE);
+ sql_query(" LOCK TABLES {$g4['shop_order_table']} READ, {$g4['shop_order_table']} WRITE ", FALSE);
// 주문서 번호를 만든다.
$date = date("ymd", time()); // 2002년 3월 7일 일경우 020307
- $sql = " select max(od_id) as max_od_id from {$g4['yc4_order_table']} where SUBSTRING(od_id, 1, 6) = '$date' ";
+ $sql = " select max(od_id) as max_od_id from {$g4['shop_order_table']} where SUBSTRING(od_id, 1, 6) = '$date' ";
$row = sql_fetch($sql);
$od_id = $row['max_od_id'];
if ($od_id == 0)
diff --git a/shop/_common.php b/shop/_common.php
index 8f558eafb..32d33e07c 100644
--- a/shop/_common.php
+++ b/shop/_common.php
@@ -1,3 +1,6 @@
include_once('../common.php');
+
+if (!defined('G4_USE_SHOP') || !G4_USE_SHOP)
+ die(' θ Ǿ ֽϴ.
'.G4_EXTEND_DIR.'/shop.extend.php define(\'G4_USE_SHOP\', true); ּ.
');
?>
\ No newline at end of file
diff --git a/shop/bannerhit.php b/shop/bannerhit.php
index 3bc36551d..b34d8cace 100644
--- a/shop/bannerhit.php
+++ b/shop/bannerhit.php
@@ -3,7 +3,7 @@ include_once("./_common.php");
if ($_COOKIE['ck_bn_id'] != $bn_id)
{
- $sql = " update {$g4['yc4_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
+ $sql = " update {$g4['shop_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
sql_query($sql);
// 하루 동안
set_cookie("ck_bn_id", $bn_id, 60*60*24);
diff --git a/shop/boxbanner.inc.php b/shop/boxbanner.inc.php
index 261fb57a3..57929fb90 100644
--- a/shop/boxbanner.inc.php
+++ b/shop/boxbanner.inc.php
@@ -1,6 +1,6 @@
// 배너 출력
-$sql = " select * from {$g4['yc4_banner_table']}
+$sql = " select * from {$g4['shop_banner_table']}
where '".G4_TIME_YMDHIS."' between bn_begin_time and bn_end_time
and bn_position = '$position'
order by bn_order, bn_id desc ";
diff --git a/shop/boxcart.inc.php b/shop/boxcart.inc.php
index 99f6724fb..5258e204a 100644
--- a/shop/boxcart.inc.php
+++ b/shop/boxcart.inc.php
@@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
+$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '".get_session('ss_uq_id')."'
and a.it_id = b.it_id
order by a.ct_id ";
diff --git a/shop/boxcategory.inc.php b/shop/boxcategory.inc.php
index f9bfcff68..29dfc1d02 100644
--- a/shop/boxcategory.inc.php
+++ b/shop/boxcategory.inc.php
@@ -12,7 +12,7 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
// 1단계 분류 판매가능한것만
-$hsql = " select ca_id, ca_name from {$g4['yc4_category_table']}
+$hsql = " select ca_id, ca_name from {$g4['shop_category_table']}
where length(ca_id) = '2'
and ca_use = '1'
order by ca_id ";
@@ -24,7 +24,7 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
$menubody = "";
$onmouseover = "";
$onmouseout = "";
- $sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
+ $sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
where LENGTH(ca_id) = '4'
and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}'
and ca_use = '1'
diff --git a/shop/boxevent.inc.php b/shop/boxevent.inc.php
index 12e7430ec..5a497b9ef 100644
--- a/shop/boxevent.inc.php
+++ b/shop/boxevent.inc.php
@@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-$hsql = " select ev_id, ev_subject from {$g4['yc4_event_table']} where ev_use = '1' order by ev_id desc ";
+$hsql = " select ev_id, ev_subject from {$g4['shop_event_table']} where ev_use = '1' order by ev_id desc ";
$hresult = sql_query($hsql);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
diff --git a/shop/boxtodayview.inc.php b/shop/boxtodayview.inc.php
index 9f2716c7b..d109202e7 100644
--- a/shop/boxtodayview.inc.php
+++ b/shop/boxtodayview.inc.php
@@ -54,7 +54,7 @@ echo "\n";
for ($i=1; $i<=$tv_idx; $i++)
{
$tv_it_id = get_session("ss_tv[$i]");
- $rowx = sql_fetch(" select it_name from $g4[yc4_item_table] where it_id = '$tv_it_id' ");
+ $rowx = sql_fetch(" select it_name from $g4[shop_item_table] where it_id = '$tv_it_id' ");
$it_name = get_text(addslashes($rowx['it_name']));
$img = get_it_image($tv_it_id."_s", $tv_div['img_width'], $tv_div['img_height'], $tv_it_id);
$img = str_replace('"', '\"', preg_replace("/\
-$hsql = " select a.it_id, b.it_name from {$g4['yc4_wish_table']} a, {$g4['yc4_item_table']} b
+$hsql = " select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b
where a.mb_id = '{$member['mb_id']}'
and a.it_id = b.it_id
order by a.wi_id desc ";
diff --git a/shop/cartsub.inc.php b/shop/cartsub.inc.php
index dbcf80cff..c7acb34af 100644
--- a/shop/cartsub.inc.php
+++ b/shop/cartsub.inc.php
@@ -61,8 +61,8 @@ $sql = " select a.ct_id,
b.it_id,
b.it_name,
b.ca_id
- from {$g4['yc4_cart_table']} a,
- {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a,
+ {$g4['shop_item_table']} b
where a.uq_id = '$s_uq_id'
and a.it_id = b.it_id
order by a.ct_id ";
@@ -195,7 +195,7 @@ if ($i == 0) {
}
// 이미 주문된 내역을 보여주는것이므로 배송비를 주문서에서 얻는다.
- $sql = "select od_send_cost from {$g4['yc4_order_table']} where od_id = '$od_id' ";
+ $sql = "select od_send_cost from {$g4['shop_order_table']} where od_id = '$od_id' ";
$row = sql_fetch($sql);
if ($row['od_send_cost'] > 0)
$send_cost = $row['od_send_cost'];
diff --git a/shop/cartupdate.php b/shop/cartupdate.php
index 3f2c82240..6eae377e6 100644
--- a/shop/cartupdate.php
+++ b/shop/cartupdate.php
@@ -32,14 +32,14 @@ if ($member['mb_level'] < $default['de_level_sell'])
if ($act == "d") // 삭제이면
{
- $sql = " delete from {$g4['yc4_cart_table']}
+ $sql = " delete from {$g4['shop_cart_table']}
where ct_id = '$ct_id'
and uq_id = '$tmp_uq_id' ";
sql_query($sql);
}
else if ($act == "alldelete") // 모두 삭제이면
{
- $sql = " delete from {$g4['yc4_cart_table']}
+ $sql = " delete from {$g4['shop_cart_table']}
where uq_id = '$tmp_uq_id' ";
sql_query($sql);
}
@@ -64,7 +64,7 @@ else if ($act == "allupdate") // 수량 변경이면 : 모두 수정이면
for ($i=0; $i<$fldcnt; $i++)
{
- $sql = " update {$g4['yc4_cart_table']}
+ $sql = " update {$g4['shop_cart_table']}
set ct_qty = '{$_POST['ct_qty'][$i]}'
where ct_id = '{$_POST['ct_id'][$i]}'
and uq_id = '$tmp_uq_id' ";
@@ -85,7 +85,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
// 비회원가격과 회원가격이 다르다면
if (!$is_member && $default['de_different_msg'])
{
- $sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
+ $sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
$row = sql_fetch($sql);
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
$error .= "\"{$_POST['it_name'][$i]}\" 의 비회원가격과 회원가격이 다릅니다. 로그인 후 구입하여 주십시오.\\n\\n";
@@ -95,7 +95,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
//--------------------------------------------------------
// 변조 검사
//--------------------------------------------------------
- $sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
+ $sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
$it = sql_fetch($sql);
$amount = get_amount($it);
@@ -110,7 +110,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
//--------------------------------------------------------
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
- $sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
+ $sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
$row = sql_fetch($sql);
$sum_qty = $row['cnt'];
@@ -132,7 +132,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
if (!$config['cf_use_point']) $_POST['it_point'][$i] = 0;
// 장바구니에 Insert
- $sql = " insert {$g4['yc4_cart_table']}
+ $sql = " insert {$g4['shop_cart_table']}
set uq_id = '$tmp_uq_id',
it_id = '{$_POST['it_id'][$i]}',
ct_status = '쇼핑',
@@ -157,7 +157,7 @@ else // 장바구니에 담기
// 비회원가격과 회원가격이 다르다면
if (!$is_member && $default['de_different_msg'])
{
- $sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
+ $sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
$row = sql_fetch($sql);
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
echo " ";
@@ -170,7 +170,7 @@ else // 장바구니에 담기
// 변조 검사
//--------------------------------------------------------
$opt_amount = 0;
- $sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
+ $sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
$it = sql_fetch($sql);
for ($i=1; $i<=6; $i++) {
//$dst_opt = $_POST["it_opt".$i];
@@ -211,7 +211,7 @@ else // 장바구니에 담기
// 재고 검사
//--------------------------------------------------------
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
- $sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']}
+ $sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
where it_id = '{$_POST['it_id']}'
and uq_id = '$tmp_uq_id' ";
$row = sql_fetch($sql);
@@ -226,17 +226,17 @@ else // 장바구니에 담기
//--------------------------------------------------------
// 바로구매에 있던 장바구니 자료를 지운다.
- $result = sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
+ $result = sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
if (!$result) {
// 삭제중 에러가 발생했다면 필드가 없다는 것이므로 바로구매 필드를 생성한다.
- sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
+ sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
}
// 포인트 사용하지 않는다면
if (!$config['cf_use_point']) { $_POST['it_point'] = 0; }
// 장바구니에 Insert
- $sql = " insert {$g4['yc4_cart_table']}
+ $sql = " insert {$g4['shop_cart_table']}
set uq_id = '$tmp_uq_id',
it_id = '{$_POST['it_id']}',
it_opt1 = '{$_POST['it_opt1']}',
diff --git a/shop/content.php b/shop/content.php
index 9a1c6e7cd..b56401791 100644
--- a/shop/content.php
+++ b/shop/content.php
@@ -2,7 +2,7 @@
include_once('./_common.php');
// 내용
-$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/shop/event.php b/shop/event.php
index ed36d85c8..6dcc6f59d 100644
--- a/shop/event.php
+++ b/shop/event.php
@@ -1,7 +1,7 @@
include_once('./_common.php');
-$sql = " select * from {$g4['yc4_event_table']}
+$sql = " select * from {$g4['shop_event_table']}
where ev_id = '$ev_id'
and ev_use = 1 ";
$ev = sql_fetch($sql);
@@ -62,8 +62,8 @@ $sql_list1 = " select a.ca_id,
$sql_list1 = " select * ";
$sql_list2 = " order by $order_by a.it_order, a.it_id desc ";
-$sql_common = " from {$g4['yc4_item_table']} a
- left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id)
+$sql_common = " from {$g4['shop_item_table']} a
+ left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id)
where b.ev_id = '$ev_id'
and a.it_use = '1' ";
diff --git a/shop/faq.php b/shop/faq.php
index 098ba32da..7bedefa1a 100644
--- a/shop/faq.php
+++ b/shop/faq.php
@@ -4,7 +4,7 @@ include_once('./_common.php');
if (!$fm_id) $fm_id = 1;
// FAQ MASTER
-$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
+$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
if (!$fm['fm_id'])
alert('등록된 내용이 없습니다.');
@@ -30,7 +30,7 @@ echo " ";
echo " \n";
echo "\n";
-$sql = " select * from {$g4['yc4_faq_table']}
+$sql = " select * from {$g4['shop_faq_table']}
where fm_id = '$fm_id'
order by fa_order , fa_id ";
$result = sql_query($sql);
diff --git a/shop/item.php b/shop/item.php
index 2f621269e..3f4c99ae5 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -35,7 +35,7 @@ if (!$saved) {
// 조회수 증가
if ($_COOKIE['ck_it_id'] != $it_id) {
- sql_query(" update {$g4['yc4_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
+ sql_query(" update {$g4['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
}
@@ -43,8 +43,8 @@ if ($_COOKIE['ck_it_id'] != $it_id) {
$sql = " select a.*,
b.ca_name,
b.ca_use
- from {$g4['yc4_item_table']} a,
- {$g4['yc4_category_table']} b
+ from {$g4['shop_item_table']} a,
+ {$g4['shop_category_table']} b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id ";
$it = sql_fetch($sql);
@@ -57,7 +57,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
$sql = " select ca_include_head, ca_include_tail
- from {$g4['yc4_category_table']}
+ from {$g4['shop_category_table']}
where ca_id = '{$it['ca_id']}' ";
$ca = sql_fetch($sql);
@@ -88,7 +88,7 @@ if ($is_admin)
include G4_SHOP_PATH.'/listcategory.inc.php';
// 이전 상품보기
-$sql = " select it_id, it_name from {$g4['yc4_item_table']}
+$sql = " select it_id, it_name from {$g4['shop_item_table']}
where it_id > '$it_id'
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
and it_use = '1'
@@ -104,7 +104,7 @@ if ($row['it_id']) {
}
// 다음 상품보기
-$sql = " select it_id, it_name from {$g4['yc4_item_table']}
+$sql = " select it_id, it_name from {$g4['shop_item_table']}
where it_id < '$it_id'
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
and it_use = '1'
@@ -121,8 +121,8 @@ if ($row['it_id']) {
// 관련상품의 갯수를 얻음
$sql = " select count(*) as cnt
- from {$g4['yc4_item_relation_table']} a
- left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
+ from {$g4['shop_item_relation_table']} a
+ left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
where a.it_id = '{$it['it_id']}' ";
$row = sql_fetch($sql);
$item_relation_count = $row['cnt'];
@@ -407,7 +407,7 @@ function click_item(id)
- $sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
+ $sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
$result = sql_query($sql, false);
if (@mysql_num_rows($result)) {
?>
@@ -496,8 +496,8 @@ include_once('./itemqa.inc.php');
$td_width = (int)(100 / $list_mod);
$sql = " select b.*
- from {$g4['yc4_item_relation_table']} a
- left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
+ from {$g4['shop_item_relation_table']} a
+ left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
where a.it_id = '{$it['it_id']}'
and b.it_use='1' ";
$result = sql_query($sql);
diff --git a/shop/itemqa.inc.php b/shop/itemqa.inc.php
index 604229120..342b422b6 100644
--- a/shop/itemqa.inc.php
+++ b/shop/itemqa.inc.php
@@ -24,7 +24,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
- $sql_common = " from {$g4['yc4_item_qa_table']} where it_id = '{$it['it_id']}' ";
+ $sql_common = " from {$g4['shop_item_qa_table']} where it_id = '{$it['it_id']}' ";
// 테이블의 전체 레코드수만 얻음
$sql = " select COUNT(*) as cnt " . $sql_common;
diff --git a/shop/itemqaupdate.php b/shop/itemqaupdate.php
index e9f29e640..79dc10aed 100644
--- a/shop/itemqaupdate.php
+++ b/shop/itemqaupdate.php
@@ -46,18 +46,18 @@ $url = "./item.php?it_id=$it_id";
if ($w == '')
{
- $sql = " select max(iq_id) as max_iq_id from {$g4['yc4_item_qa_table']} ";
+ $sql = " select max(iq_id) as max_iq_id from {$g4['shop_item_qa_table']} ";
$row = sql_fetch($sql);
$max_iq_id = $row['max_iq_id'];
- $sql = " select max(iq_id) as max_iq_id from {$g4['yc4_item_qa_table']}
+ $sql = " select max(iq_id) as max_iq_id from {$g4['shop_item_qa_table']}
where it_id = '$it_id'
and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if ($row['max_iq_id'] && $row['max_iq_id'] == $max_iq_id)
alert('같은 상품에 대하여 계속해서 질문 하실 수 없습니다.');
- $sql = "insert {$g4['yc4_item_qa_table']}
+ $sql = "insert {$g4['shop_item_qa_table']}
set it_id = '$it_id',
mb_id = '{$member['mb_id']}',
iq_name = '$iq_name',
@@ -72,12 +72,12 @@ if ($w == '')
}
else if ($w == 'u')
{
- $sql = " select iq_password from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
+ $sql = " select iq_password from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
$row = sql_fetch($sql);
if ($row['iq_password'] != $iq_password)
alert('패스워드가 틀리므로 수정하실 수 없습니다.');
- $sql = " update {$g4['yc4_item_qa_table']}
+ $sql = " update {$g4['shop_item_qa_table']}
set iq_subject = '$iq_subject',
iq_question = '$iq_question'
where iq_id = '$iq_id' ";
@@ -89,7 +89,7 @@ else if ($w == 'd')
{
if ($is_member)
{
- $sql = " select count(*) as cnt from {$g4['yc4_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
+ $sql = " select count(*) as cnt from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
$row = sql_fetch($sql);
if (!$row['cnt'])
alert('자신의 상품문의만 삭제하실 수 있습니다.');
@@ -98,13 +98,13 @@ else if ($w == 'd')
{
$iq_password = sql_password($iq_password);
- $sql = " select iq_password from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
+ $sql = " select iq_password from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
$row = sql_fetch($sql);
if ($row['iq_password'] != $iq_password)
alert('패스워드가 틀리므로 삭제하실 수 없습니다.');
}
- $sql = " delete from {$g4['yc4_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
+ $sql = " delete from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
sql_query($sql);
goto_url($url);
diff --git a/shop/itemrecommend.php b/shop/itemrecommend.php
index 834c47c76..dab232b89 100644
--- a/shop/itemrecommend.php
+++ b/shop/itemrecommend.php
@@ -8,7 +8,7 @@ if (!$is_member)
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);
-$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' ";
$it = sql_fetch($sql);
if (!$it['it_name'])
alert_close("등록된 상품이 아닙니다.");
diff --git a/shop/itemrecommendmail.php b/shop/itemrecommendmail.php
index dfa0034b7..edfa5dd21 100644
--- a/shop/itemrecommendmail.php
+++ b/shop/itemrecommendmail.php
@@ -28,7 +28,7 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
}
// 상품
-$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
+$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
if (!$it['it_id'])
alert("등록된 상품이 아닙니다.");
diff --git a/shop/itemuse.inc.php b/shop/itemuse.inc.php
index d74d3eed7..3e8e96001 100644
--- a/shop/itemuse.inc.php
+++ b/shop/itemuse.inc.php
@@ -25,7 +25,7 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
- $sql_common = " from {$g4['yc4_item_ps_table']} where it_id = '{$it['it_id']}' and is_confirm = '1' ";
+ $sql_common = " from {$g4['shop_item_ps_table']} where it_id = '{$it['it_id']}' and is_confirm = '1' ";
// 테이블의 전체 레코드수만 얻음
$sql = " select COUNT(*) as cnt " . $sql_common;
diff --git a/shop/itemuselist.php b/shop/itemuselist.php
index dc18a0463..b9900e5f4 100644
--- a/shop/itemuselist.php
+++ b/shop/itemuselist.php
@@ -5,7 +5,7 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
$g4['title'] = '사용후기';
include_once('./_head.php');
-$sql_common = " from {$g4['yc4_item_ps_table']} where is_confirm = '1' ";
+$sql_common = " from {$g4['shop_item_ps_table']} where is_confirm = '1' ";
$sql_order = " order by is_time desc ";
$sql = " select count(*) as cnt
@@ -68,7 +68,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$is_time = substr($row['is_time'], 2, 14);
$small_image = $row['it_id']."_s";
- $row2 = sql_fetch(" select it_name from {$g4['yc4_item_table']} where it_id = '{$row['it_id']}' ");
+ $row2 = sql_fetch(" select it_name from {$g4['shop_item_table']} where it_id = '{$row['it_id']}' ");
$it_href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
echo "
diff --git a/shop/itemuseupdate.php b/shop/itemuseupdate.php
index aa998b227..c5badf3eb 100644
--- a/shop/itemuseupdate.php
+++ b/shop/itemuseupdate.php
@@ -45,18 +45,18 @@ $url = "./item.php?it_id=$it_id";
if ($w == '')
{
- $sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
+ $sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']} ";
$row = sql_fetch($sql);
$max_is_id = $row['max_is_id'];
- $sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']}
+ $sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']}
where it_id = '$it_id'
and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if ($row['max_is_id'] && $row['max_is_id'] == $max_is_id)
alert("같은 상품에 대하여 계속해서 평가하실 수 없습니다.");
- $sql = "insert {$g4['yc4_item_ps_table']}
+ $sql = "insert {$g4['shop_item_ps_table']}
set it_id = '$it_id',
mb_id = '{$member['mb_id']}',
is_score = '$is_score',
@@ -77,12 +77,12 @@ if ($w == '')
}
else if ($w == 'u')
{
- $sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
+ $sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
- $sql = " update {$g4['yc4_item_ps_table']}
+ $sql = " update {$g4['shop_item_ps_table']}
set is_subject = '$is_subject',
is_content = '$is_content',
is_score = '$is_score'
@@ -95,7 +95,7 @@ else if ($w == 'd')
{
if ($is_member)
{
- $sql = " select count(*) as cnt from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
+ $sql = " select count(*) as cnt from {$g4['shop_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
$row = sql_fetch($sql);
if (!$row['cnt'])
alert("자신의 사용후기만 삭제하실 수 있습니다.");
@@ -104,13 +104,13 @@ else if ($w == 'd')
{
$is_password = sql_password($is_password);
- $sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
+ $sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 삭제하실 수 없습니다.");
}
- $sql = " delete from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
+ $sql = " delete from {$g4['shop_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
sql_query($sql);
goto_url($url);
diff --git a/shop/itemusewin.php b/shop/itemusewin.php
index 65127ea5b..7b1ad5e1c 100644
--- a/shop/itemusewin.php
+++ b/shop/itemusewin.php
@@ -12,7 +12,7 @@ if (!$is_member) {
if ($w == "") {
$is_score = 10;
} else if ($w == "u") {
- $ps = sql_fetch(" select * from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ");
+ $ps = sql_fetch(" select * from {$g4['shop_item_ps_table']} where is_id = '$is_id' ");
if (!$ps) {
alert_close("사용후기 정보가 없습니다.");
}
diff --git a/shop/itemusewinupdate.php b/shop/itemusewinupdate.php
index fc2b8141f..30e412f15 100644
--- a/shop/itemusewinupdate.php
+++ b/shop/itemusewinupdate.php
@@ -25,16 +25,16 @@ $url = "./item.php?it_id=$it_id";
if ($w == '')
{
- $sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
+ $sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']} ";
$row = sql_fetch($sql);
$max_is_id = $row['max_is_id'];
- $sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
+ $sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if ($row['max_is_id'] && $row['max_is_id'] == $max_is_id)
alert("같은 상품에 대하여 계속해서 평가하실 수 없습니다.");
- $sql = "insert {$g4['yc4_item_ps_table']}
+ $sql = "insert {$g4['shop_item_ps_table']}
set it_id = '$it_id',
mb_id = '{$member['mb_id']}',
is_score = '$is_score',
@@ -56,12 +56,12 @@ if ($w == '')
}
else if ($w == 'u')
{
- $sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
+ $sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
- $sql = " update {$g4['yc4_item_ps_table']}
+ $sql = " update {$g4['shop_item_ps_table']}
set is_subject = '$is_subject',
is_content = '$is_content',
is_score = '$is_score'
diff --git a/shop/kcp/pp_ax_hub_cancel.php b/shop/kcp/pp_ax_hub_cancel.php
index 9f0a68eb8..0ff97afae 100644
--- a/shop/kcp/pp_ax_hub_cancel.php
+++ b/shop/kcp/pp_ax_hub_cancel.php
@@ -1,6 +1,14 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+ $def_locale = setlocale(LC_CTYPE, 0);
+ $cancel_msg = iconv("utf-8", "euc-kr", $cancel_msg);
+ $locale_change = false;
+ if(preg_match("/utf[\-]?8/i", $def_locale)) {
+ setlocale(LC_CTYPE, 'ko_KR.euc-kr');
+ $locale_change = true;
+ }
+
/* ============================================================================== */
/* = 07. 승인 결과 DB처리 실패시 : 자동취소 = */
/* = -------------------------------------------------------------------------- = */
@@ -70,4 +78,7 @@
}
} // End of [res_cd = "0000"]
/* ============================================================================== */
+
+ if($locale_change)
+ setlocale(LC_CTYPE, $def_locale);
?>
\ No newline at end of file
diff --git a/shop/largeimage.php b/shop/largeimage.php
index 1f794bacb..d8c47b1c2 100644
--- a/shop/largeimage.php
+++ b/shop/largeimage.php
@@ -1,7 +1,7 @@
include_once('./_common.php');
-$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_array(sql_query($sql));
$imagefile = G4_DATA_PATH."/item/$img";
diff --git a/shop/list.php b/shop/list.php
index 62c5d0b48..4986886ef 100644
--- a/shop/list.php
+++ b/shop/list.php
@@ -2,7 +2,7 @@
include_once("./_common.php");
$sql = " select *
- from {$g4['yc4_category_table']}
+ from {$g4['shop_category_table']}
where ca_id = '$ca_id'
and ca_use = '1' ";
$ca = sql_fetch($sql);
@@ -52,7 +52,7 @@ $sql_list2 = " order by $order_by it_order, it_id desc ";
// 하위분류 포함
// 판매가능한 상품만
-$sql_common = " from {$g4['yc4_item_table']}
+$sql_common = " from {$g4['shop_item_table']}
where (ca_id like '{$ca_id}%'
or ca_id2 like '{$ca_id}%'
or ca_id3 like '{$ca_id}%')
diff --git a/shop/listcategory.inc.php b/shop/listcategory.inc.php
index ca886ea03..54ee673bb 100644
--- a/shop/listcategory.inc.php
+++ b/shop/listcategory.inc.php
@@ -7,7 +7,7 @@ $len2 = $ca_id_len + 2;
$len4 = $ca_id_len + 4;
// 차차기 분류의 건수를 얻음
-$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
+$sql = " select count(*) as cnt from {$g4['shop_category_table']}
where ca_id like '$ca_id%'
and length(ca_id) = $len4
and ca_use = '1' ";
@@ -16,7 +16,7 @@ $cnt = $row['cnt'];
if (!$cnt)
$str .= "";
-$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
+$sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '$ca_id%'
and length(ca_id) = $len2
and ca_use = '1'
@@ -26,8 +26,8 @@ $str .= " ";
$str .= "";
while ($row=sql_fetch_array($result)) {
- //$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_category_table] where ca_id like '$row[ca_id]%' ");
- $row2 = sql_fetch(" select count(*) as cnt from {$g4['yc4_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
+ //$row2 = sql_fetch(" select count(*) as cnt from $g4[shop_category_table] where ca_id like '$row[ca_id]%' ");
+ $row2 = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= "{$row['ca_name']} ({$row2['cnt']}) ";
$exists = true;
diff --git a/shop/listcategory2.inc.php b/shop/listcategory2.inc.php
index 6200fed01..8a0e4a6cf 100644
--- a/shop/listcategory2.inc.php
+++ b/shop/listcategory2.inc.php
@@ -16,7 +16,7 @@ if (!$exists) {
$len4 = $tmp_ca_id_len + 4;
// 차차기 분류의 건수를 얻음
- $sql = " select count(*) as cnt from {$g4['yc4_category_table']}
+ $sql = " select count(*) as cnt from {$g4['shop_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len4 ";
@@ -25,7 +25,7 @@ if (!$exists) {
if (!$cnt)
$str .= " ";
- $sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
+ $sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len2 order by ca_id ";
@@ -38,7 +38,7 @@ if (!$exists) {
if ($cnt) {
$str .= " ";
$str .= "· $row[ca_name] ";
- $sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
+ $sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '{$row['ca_id']}%'
and ca_use = '1'
and length(ca_id) = $len4 order by ca_id ";
diff --git a/shop/listcategory3.inc.php b/shop/listcategory3.inc.php
index 4f4ccc9b9..fc24b119b 100644
--- a/shop/listcategory3.inc.php
+++ b/shop/listcategory3.inc.php
@@ -4,7 +4,7 @@ $exists = false;
$depth2_ca_id = substr($ca_id, 0, 2);
-$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
+$sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '${depth2_ca_id}%'
and length(ca_id) = 4
and ca_use = '1'
diff --git a/shop/listtype.php b/shop/listtype.php
index 8e05b1653..a809ec145 100644
--- a/shop/listtype.php
+++ b/shop/listtype.php
@@ -34,7 +34,7 @@ if ($sort != "")
$sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
-$sql_common = " from {$g4['yc4_item_table']}
+$sql_common = " from {$g4['shop_item_table']}
where it_type{$type} = '1'
and it_use = '1' ";
if ($ca_id) {
@@ -91,14 +91,14 @@ echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_S
// 분류를 링크하는 코드
/*
$bar = "";
-$sql = " select ca_id from $g4[yc4_item_table]
+$sql = " select ca_id from $g4[shop_item_table]
where it_type{$type} = '1'
and it_use = '1'
group by ca_id
order by ca_id ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
- $row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ");
+ $row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ");
echo $bar . "$row2[ca_name] ";
$bar = " | ";
}
diff --git a/shop/mail/itemrecommend.mail.php b/shop/mail/itemrecommend.mail.php
index 7b1e4ad2d..b6e88156b 100644
--- a/shop/mail/itemrecommend.mail.php
+++ b/shop/mail/itemrecommend.mail.php
@@ -1,6 +1,6 @@
-
+
추천 상품
@@ -12,24 +12,24 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
-
+
-
+
-
+
추천상품메일
=$from_name?> 님께서 추천하신 상품입니다.
diff --git a/shop/mail/ordermail.mail.php b/shop/mail/ordermail.mail.php
index 2b1332f62..bb9e610c9 100644
--- a/shop/mail/ordermail.mail.php
+++ b/shop/mail/ordermail.mail.php
@@ -1,6 +1,6 @@
-
+
주문내역 처리 현황
@@ -12,11 +12,11 @@
-
-
+
+
-
+
@@ -37,18 +37,18 @@
if (count($cart_list)) { ?>
- 품 명
- 선택옵션
- 처리상태
- 수 량
+ 품 명
+ 선택옵션
+ 처리상태
+ 수 량
-
+
for ($i=0; $i
- =$cart_list[$i][it_name]?>
- =$cart_list[$i][it_opt]?>
- =$cart_list[$i][ct_status]?>
- =$cart_list[$i][ct_qty]?>
+ =$cart_list[$i]['it_name']?>
+ =$cart_list[$i]['it_opt']?>
+ =$cart_list[$i]['ct_status']?>
+ =$cart_list[$i]['ct_qty']?>
@@ -59,15 +59,15 @@
} // end if ?>
if (count($card_list)) { ?>
- 신용카드 입금을 확인하였습니다
+ 신용카드 입금을 확인하였습니다
승인일시
- =$card_list[od_card_time]?>
+ =$card_list['od_card_time']?>
승인금액
- =$card_list[od_receipt_card]?>
+ =$card_list['od_receipt_card']?>
} ?>
@@ -75,57 +75,57 @@
if (count($bank_list)) { ?>
- 무통장 입금을 확인하였습니다
+ 무통장 입금을 확인하였습니다
확인일시
- =$bank_list[od_bank_time]?>
+ =$bank_list['od_bank_time']?>
입금액
- =$bank_list[od_receipt_bank]?>
+ =$bank_list['od_receipt_bank']?>
입금자명
- =$bank_list[od_deposit_name]?>
+ =$bank_list['od_deposit_name']?>
} ?>
if (count($point_list)) { ?>
- 포인트 입금을 확인하였습니다
+ 포인트 입금을 확인하였습니다
확인일시
- =$point_list[od_time]?>
+ =$point_list['od_time']?>
포인트
- =$point_list[od_receipt_point]?>
+ =$point_list['od_receipt_point']?>
} ?>
if (count($delivery_list)) { ?>
- 다음과 같이 배송 하였습니다
+ 다음과 같이 배송 하였습니다
} ?>
@@ -136,7 +136,7 @@
@@ -144,9 +144,9 @@
-
+
-
+
diff --git a/shop/mail/orderupdate1.mail.php b/shop/mail/orderupdate1.mail.php
index d7099bc41..2e3575608 100644
--- a/shop/mail/orderupdate1.mail.php
+++ b/shop/mail/orderupdate1.mail.php
@@ -1,34 +1,34 @@
-
+
관리자님께 주문서 메일 드리기
-
+
-
- 본 메일은 =$g4[time_ymdhis]?> (=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.
+
+ 본 메일은 =G4_TIME_YMDHIS?> (=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.
-
-
+
+
for ($i=0; $i
- =$list[$i][it_simg]?>
+ =$list[$i]['it_simg']?>
▒ 주문제품명
- : =$list[$i][it_name]?>
+ : =$list[$i]['it_name']?>
@@ -40,23 +40,23 @@
▒ 판매가격
- : =display_amount($list[$i][ct_amount])?>
- =$list[$i][it_opt]?>
+ : =display_amount($list[$i]['ct_amount'])?>
+ =$list[$i]['it_opt']?>
▒ 수량
- : =number_format($list[$i][ct_qty])?> 개
+ : =number_format($list[$i]['ct_qty'])?> 개
▒ 소계
- : =display_amount($list[$i][stotal_amount])?>
+ : =display_amount($list[$i]['stotal_amount'])?>
▒ 포인트
- : =display_point($list[$i][stotal_point])?>
+ : =display_point($list[$i]['stotal_point'])?>
@@ -89,7 +89,7 @@
-
+
@@ -121,7 +121,7 @@
: =$od_deposit_name?>
} ?>
-
+
@@ -136,7 +136,7 @@
-
+
@@ -176,7 +176,7 @@
-
+
@@ -203,15 +203,15 @@
- 상세한 내용은 운영자 화면에서 확인하실 수 있습니다. [바로가기 ]
-
+ 상세한 내용은 운영자 화면에서 확인하실 수 있습니다. [바로가기 ]
+
-
+
-
+
diff --git a/shop/mail/orderupdate2.mail.php b/shop/mail/orderupdate2.mail.php
index c6e65414b..00e71b104 100644
--- a/shop/mail/orderupdate2.mail.php
+++ b/shop/mail/orderupdate2.mail.php
@@ -1,34 +1,34 @@
-
+
고객님께 주문서 메일 드리기
-
+
-
- 본 메일은 =$g4[time_ymdhis]?> (=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.
+
+ 본 메일은 =G4_TIME_YMDHIS?> (=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.
-
-
+
+
for ($i=0; $i
- =$list[$i][it_simg]?>
+ =$list[$i]['it_simg']?>
▒ 주문제품명
- : =$list[$i][it_name]?>
+ : =$list[$i]['it_name']?>
@@ -40,23 +40,23 @@
▒ 판매가격
- : =display_amount($list[$i][ct_amount])?>
- =$list[$i][it_opt]?>
+ : =display_amount($list[$i]['ct_amount'])?>
+ =$list[$i]['it_opt']?>
▒ 수량
- : =number_format($list[$i][ct_qty])?> 개
+ : =number_format($list[$i]['ct_qty'])?> 개
▒ 소계
- : =display_amount($list[$i][stotal_amount])?>
+ : =display_amount($list[$i]['stotal_amount'])?>
▒ 포인트
- : =display_point($list[$i][stotal_point])?>
+ : =display_point($list[$i]['stotal_point'])?>
@@ -89,7 +89,7 @@
-
+
if ($od_receipt_point > 0) { ?>
@@ -131,12 +131,12 @@
주문하신 분 정보
- 상세한 내용은 주문서 조회 화면에서 확인하실 수 있습니다. [바로가기 ]
+ 상세한 내용은 주문서 조회 화면에서 확인하실 수 있습니다. [바로가기 ]
-
+
@@ -166,19 +166,19 @@
-
+
-
+
배송지 정보
- 배송지를 변경하실 고객님은 = $default[de_admin_company_tel] ?> 로 연락주시기 바랍니다.
+ 배송지를 변경하실 고객님은 = $default['de_admin_company_tel'] ?> 로 연락주시기 바랍니다.
-
+
@@ -205,14 +205,14 @@
-
+
-
+
-
+
diff --git a/shop/mail/orderupdate3.mail.php b/shop/mail/orderupdate3.mail.php
index 0ecb0b838..a420fabee 100644
--- a/shop/mail/orderupdate3.mail.php
+++ b/shop/mail/orderupdate3.mail.php
@@ -1,6 +1,6 @@
-
+
판매자님께 주문서 메일 드리기
@@ -8,28 +8,28 @@
-
+
-
- 본 메일은 =$g4[time_ymdhis]?> (=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.
+
+ 본 메일은 =G4_TIME_YMDHIS?> (=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.
-
-
+
+
- =$list[it_simg]?>
+ =$list['it_simg']?>
▒ 주문제품명
- : =$list[it_name]?>
+ : =$list['it_name']?>
@@ -41,8 +41,8 @@
▒ 수량
- : =number_format($list[ct_qty])?> 개
- =$list[it_opt]?>
+ : =number_format($list['ct_qty'])?> 개
+ =$list['it_opt']?>
@@ -56,7 +56,7 @@
-
+
-
+
@@ -96,7 +96,7 @@
-
+
@@ -124,16 +124,16 @@
- 이 주문과 관련된 내용은 = $default[de_admin_company_tel] ?> 로 연락주시기 바랍니다.
+ 이 주문과 관련된 내용은 = $default['de_admin_company_tel'] ?> 로 연락주시기 바랍니다.
-
+
-
+
-
+
diff --git a/shop/mypage.php b/shop/mypage.php
index 9ee7a691d..d6199fa52 100644
--- a/shop/mypage.php
+++ b/shop/mypage.php
@@ -89,8 +89,8 @@ include G4_SHOP_PATH.'/orderinquiry.sub.php';
$sql = " select *
- from {$g4['yc4_wish_table']} a,
- {$g4['yc4_item_table']} b
+ from {$g4['shop_wish_table']} a,
+ {$g4['shop_item_table']} b
where a.mb_id = '{$member['mb_id']}'
and a.it_id = b.it_id
order by a.wi_id desc
diff --git a/shop/navigation1.inc.php b/shop/navigation1.inc.php
index 08cd9b1ac..7da023070 100644
--- a/shop/navigation1.inc.php
+++ b/shop/navigation1.inc.php
@@ -9,7 +9,7 @@ if ($ca_id)
{
$code = substr($ca_id,0,$i*2);
- $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$code' ";
+ $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
$row = sql_fetch($sql);
$style = "";
diff --git a/shop/newwin.inc.php b/shop/newwin.inc.php
index 31f0fed8a..100cb51d6 100644
--- a/shop/newwin.inc.php
+++ b/shop/newwin.inc.php
@@ -1,7 +1,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-$sql = " select * from {$g4['yc4_new_win_table']}
+$sql = " select * from {$g4['shop_new_win_table']}
where '".G4_TIME_YMDHIS."' between nw_begin_time and nw_end_time
order by nw_id asc ";
$result = sql_query($sql);
diff --git a/shop/newwinpop.php b/shop/newwinpop.php
index 4e5f38676..dac693919 100644
--- a/shop/newwinpop.php
+++ b/shop/newwinpop.php
@@ -1,7 +1,7 @@
include_once('./_common.php');
-$sql = " select * from {$g4['yc4_new_win_table']} where nw_id = '$nw_id' ";
+$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
$nw = sql_fetch($sql);
$g4['title'] = $nw['nw_subject'];
diff --git a/shop/orderform.php b/shop/orderform.php
index 7d0fa93e9..c465e32f7 100644
--- a/shop/orderform.php
+++ b/shop/orderform.php
@@ -14,7 +14,7 @@ if (get_cart_count($tmp_uq_id) == 0)
alert("장바구니가 비어 있습니다.", "./cart.php");
// 포인트 결제 대기 필드 추가
-//sql_query(" ALTER TABLE `$g4[yc4_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
+//sql_query(" ALTER TABLE `$g4[shop_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
$g4['title'] = '주문서 작성';
diff --git a/shop/orderformupdate.php b/shop/orderformupdate.php
index 2df782191..036176500 100644
--- a/shop/orderformupdate.php
+++ b/shop/orderformupdate.php
@@ -11,12 +11,12 @@ $_POST = array_map("mysql_real_escape_string", $_POST);
// 장바구니가 비어있는가?
if (get_session("ss_direct"))
- $tmp_uq_id = get_session("ss_uq_direct");
+ $tmp_uq_id = get_session('ss_uq_direct');
else
- $tmp_uq_id = get_session("ss_uq_id");
+ $tmp_uq_id = get_session('ss_uq_id');
if (get_cart_count($tmp_uq_id) == 0)// 장바구니에 담기
- alert("장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.", "./cart.php");
+ alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', './cart.php');
$error = "";
// 장바구니 상품 재고 검사
@@ -24,8 +24,8 @@ $error = "";
$sql = " select a.it_id,
a.ct_qty,
b.it_name
- from {$g4['yc4_cart_table']} a,
- {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a,
+ {$g4['shop_item_table']} b
where a.uq_id = '$tmp_uq_id'
and a.it_id = b.it_id ";
$result = sql_query($sql);
@@ -50,7 +50,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
// 주문금액이 상이함
-$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['yc4_cart_table']} where uq_id = '$tmp_uq_id' ";
+$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
$row = sql_fetch($sql);
if ((int)$row['od_amount'] !== $i_amount) {
die("Error.");
@@ -102,12 +102,11 @@ if (($i_temp_point > (int)$temp_point || $i_temp_point < 0) && $config['cf_use_p
if ($od_temp_point)
{
if ($member['mb_point'] < $od_temp_point)
- alert("회원님의 포인트가 부족하여 포인트로 결제 할 수 없습니다.");
+ alert('회원님의 포인트가 부족하여 포인트로 결제 할 수 없습니다.');
}
$i_amount = $i_amount + $i_send_cost - $i_temp_point;
-$same_amount_check = $result_check = false;
if ($od_settle_case == "무통장")
{
$od_temp_bank = $i_amount;
@@ -130,9 +129,7 @@ else if ($od_settle_case == "계좌이체")
$od_deposit_name = $od_name;
$bank_name = iconv("cp949", "utf8", $bank_name);
$od_bank_account = $bank_name;
- $same_amount_check = true;
- $result_check = true;
- $pg_receipt_amount = $amount;
+ $pg_amount = $amount;
}
else if ($od_settle_case == "가상계좌")
{
@@ -148,7 +145,7 @@ else if ($od_settle_case == "가상계좌")
$depositor = iconv("cp949", "utf8", $depositor);
$od_bank_account = $bankname.' '.$account.' '.$depositor;
$od_deposit_name = $od_name;
- $result_check = true;
+ $pg_amount = $amount;
}
else if ($od_settle_case == "휴대폰")
{
@@ -162,9 +159,7 @@ else if ($od_settle_case == "휴대폰")
$od_receipt_point = $i_temp_point;
$od_hp_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
$od_bank_account = $commid.' '.$mobile_no;
- $same_amount_check = true;
- $result_check = true;
- $pg_receipt_amount = $amount;
+ $pg_amount = $amount;
}
else if ($od_settle_case == "신용카드")
{
@@ -179,9 +174,7 @@ else if ($od_settle_case == "신용카드")
$od_card_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
$card_name = iconv("cp949", "utf8", $card_name);
$od_bank_account = $card_name;
- $same_amount_check = true;
- $result_check = true;
- $pg_receipt_amount = $amount;
+ $pg_amount = $amount;
}
else
{
@@ -189,9 +182,9 @@ else
}
// 주문금액과 결제금액이 일치하는지 체크
-if($same_amount_check) {
- if((int)$i_amount !== (int)$pg_receipt_amount) {
- $cancel_msg = 'Receipt amount error';
+if($tno) {
+ if((int)$i_amount !== (int)$pg_amount) {
+ $cancel_msg = '결제금액 불일치';
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
die("Receipt Amount Error");
@@ -207,7 +200,7 @@ else
$od_id = get_session('ss_order_uniqid');
// 주문서에 입력
-$sql = " insert {$g4['yc4_order_table']}
+$sql = " insert {$g4['shop_order_table']}
set od_id = '$od_id',
uq_id = '$tmp_uq_id',
mb_id = '{$member['mb_id']}',
@@ -252,9 +245,11 @@ $sql = " insert {$g4['yc4_order_table']}
$result = sql_query($sql, false);
// 주문정보 입력 오류시 kcp 결제 취소
-if($result_check && !$result) {
- $cancel_msg = 'Order update error';
- include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
+if(!$result) {
+ if($tno) {
+ $cancel_msg = '주문정보 입력 오류';
+ include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
+ }
die("$sql
" . mysql_errno() . " : " . mysql_error() . "
error file : {$_SERVER['PHP_SELF']}");
}
@@ -266,21 +261,23 @@ $sql_card_point = "";
if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default['de_card_point'] == false) {
$sql_card_point = " , ct_point = '0' ";
}
-$sql = "update {$g4['yc4_cart_table']}
+$sql = "update {$g4['shop_cart_table']}
set ct_status = '주문'
$sql_card_point
where uq_id = '$tmp_uq_id' ";
$result = sql_query($sql, false);
// 주문정보 입력 오류시 kcp 결제 취소
-if($result_check && !$result) {
- $cancel_msg = 'Order status update error';
- include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
+if(!$result) {
+ if($tno) {
+ $cancel_msg = '주문상태 변경 오류';
+ include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
+ }
echo "
$sql
" . mysql_errno() . " : " . mysql_error() . "
error file : {$_SERVER['PHP_SELF']}";
// 주문삭제
- sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
+ sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
exit;
}
diff --git a/shop/orderinquiry.php b/shop/orderinquiry.php
index c77fa4b35..d5b44352b 100644
--- a/shop/orderinquiry.php
+++ b/shop/orderinquiry.php
@@ -8,11 +8,11 @@ $od_pwd = sql_password($od_pwd);
// 회원인 경우
if ($is_member)
{
- $sql_common = " from {$g4['yc4_order_table']} where mb_id = '{$member['mb_id']}' ";
+ $sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
}
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
{
- $sql_common = " from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
+ $sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
}
else // 그렇지 않다면 로그인으로 가기
{
@@ -43,7 +43,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
if (!$is_member)
{
- $sql = " select od_id, uq_id from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
+ $sql = " select od_id, uq_id from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$row = sql_fetch($sql);
if ($row['od_id']) {
set_session("ss_uq_id_inquiry", $row['uq_id']);
diff --git a/shop/orderinquiry.sub.php b/shop/orderinquiry.sub.php
index 4a6dbf127..a58b16230 100644
--- a/shop/orderinquiry.sub.php
+++ b/shop/orderinquiry.sub.php
@@ -25,8 +25,8 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
- from {$g4['yc4_order_table']} a
- left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
+ from {$g4['shop_order_table']} a
+ left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
where mb_id = '{$member['mb_id']}'
group by a.od_id
order by a.od_id desc
diff --git a/shop/orderinquirycancel.php b/shop/orderinquirycancel.php
index 382b6fe78..3c9edc8fa 100644
--- a/shop/orderinquirycancel.php
+++ b/shop/orderinquirycancel.php
@@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
alert_close("토큰 에러");
}
-$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' and mb_id = '{$member['mb_id']}' ");
+$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' and mb_id = '{$member['mb_id']}' ");
if (!$od['od_id']) {
alert("존재하는 주문이 아닙니다.");
@@ -22,12 +22,12 @@ if ($od['od_temp_bank'] > 0 && $od['od_receipt_bank'] == 0) {
}
// 장바구니 자료 취소
-sql_query(" update {$g4['yc4_cart_table']} set ct_status = '취소' where uq_id = '$uq_id' ");
+sql_query(" update {$g4['shop_cart_table']} set ct_status = '취소' where uq_id = '$uq_id' ");
// 주문 취소
$cancel_memo = addslashes($cancel_memo);
-//sql_query(" update $g4[yc4_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
-sql_query(" update {$g4['yc4_order_table']} set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
+//sql_query(" update $g4[shop_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
+sql_query(" update {$g4['shop_order_table']} set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
// 주문취소 회원의 포인트를 되돌려 줌
if ($od['od_receipt_point'] > 0) {
diff --git a/shop/orderinquiryview.php b/shop/orderinquiryview.php
index 33165d4cf..c99349c4e 100644
--- a/shop/orderinquiryview.php
+++ b/shop/orderinquiryview.php
@@ -10,7 +10,7 @@ if (!$is_member) {
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.");
}
-$sql = "select * from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ";
+$sql = "select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ";
$od = sql_fetch($sql);
if (!$od['od_id']) {
echo "$od_id $uq_id $MxIssueNO";
@@ -92,7 +92,7 @@ if(openwin != null) {
// 배송회사 정보
-$dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ");
+$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
if ($od['od_invoice'] || !$od['misu'])
{
@@ -143,7 +143,7 @@ echo "
";
if ($od['od_settle_case'] == '신용카드')
{
- $sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
+ $sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
@@ -158,7 +158,7 @@ if ($od['od_settle_case'] == '신용카드')
}
else if ($od['od_settle_case'] == '휴대폰')
{
- $sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
+ $sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
diff --git a/shop/ordermail1.inc.php b/shop/ordermail1.inc.php
index 2e49c1254..06dcf196a 100644
--- a/shop/ordermail1.inc.php
+++ b/shop/ordermail1.inc.php
@@ -23,7 +23,7 @@ $sql = " select b.it_sell_email,
a.ct_qty,
a.ct_amount,
a.ct_point
- from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '$tmp_uq_id'
and a.it_id = b.it_id ";
$result = sql_query($sql);
diff --git a/shop/ordermail2.inc.php b/shop/ordermail2.inc.php
index 214c372a2..40a784c49 100644
--- a/shop/ordermail2.inc.php
+++ b/shop/ordermail2.inc.php
@@ -44,7 +44,7 @@ $sql = " select b.it_sell_email,
a.it_opt5,
a.it_opt6,
a.ct_qty
- from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
+ from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '$tmp_uq_id'
and a.it_id = b.it_id
and b.it_sell_email <> '' ";
diff --git a/shop/price/_common.php b/shop/price/_common.php
index 95fd864ac..7ecf2a999 100644
--- a/shop/price/_common.php
+++ b/shop/price/_common.php
@@ -1,3 +1,3 @@
-include_once("../../common.php");
+include_once('../../common.php');
?>
diff --git a/shop/price/about.php b/shop/price/about.php
index ecb7aa97b..4f342a299 100644
--- a/shop/price/about.php
+++ b/shop/price/about.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
ob_start();
@@ -20,7 +20,7 @@ else
$delivery = (int)$tmp[0];
}
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
@@ -35,24 +35,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$ca_name4 = "";
$ca_id1 = substr($row['ca_id'],0,2);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id1' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
$ca_name1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
$ca_id2 = substr($row['ca_id'],0,4);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id2' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
$ca_name2 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
$ca_id3 = substr($row['ca_id'],0,6);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id3' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
$ca_name3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 8) {
$ca_id4 = substr($row['ca_id'],0,8);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id4' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
$ca_name4 = $row2['ca_name'];
}
diff --git a/shop/price/about_new.php b/shop/price/about_new.php
index d252816c0..94cf5fb8a 100644
--- a/shop/price/about_new.php
+++ b/shop/price/about_new.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
ob_start();
@@ -21,7 +21,7 @@ else
}
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
@@ -36,24 +36,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$ca_name4 = "";
$ca_id1 = substr($row['ca_id'],0,2);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id1' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
$ca_name1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
$ca_id2 = substr($row['ca_id'],0,4);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id2' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
$ca_name2 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
$ca_id3 = substr($row['ca_id'],0,6);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id3' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
$ca_name3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 8) {
$ca_id4 = substr($row['ca_id'],0,8);
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id4' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
$ca_name4 = $row2['ca_name'];
}
diff --git a/shop/price/auction.php b/shop/price/auction.php
index 2c09479b1..166253caf 100644
--- a/shop/price/auction.php
+++ b/shop/price/auction.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
ob_start();
@@ -45,6 +45,8 @@ ob_start();
$lt = "[[";
$gt = "]]";
+$shop_url = G4_SHOP_URL;
+$data_url = G4_DATA_URL;
// 배송비
if ($default['de_send_cost_case'] == '없음')
@@ -60,26 +62,26 @@ else
$delivery = (int)$tmp[0];
}
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$ca_name1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$ca_name2 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
$ca_name3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 8) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
$ca_name4 = $row2['ca_name'];
}
@@ -87,25 +89,25 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo <<< HEREDOC
{$lt}_BEGIN{$gt}
-{$lt}PRODID{$gt}$row[it_id]
-{$lt}PRNAME{$gt}$row[it_name]
-{$lt}_PRICE{$gt}$row[it_amount]
-{$lt}PRDURL{$gt}$g4[shop_url]/item.php?it_id=$row[it_id]
-{$lt}IMGURL{$gt}$g4[url]/data/item/{$row[it_id]}_l1
+{$lt}PRODID{$gt}{$row['it_id']}
+{$lt}PRNAME{$gt}{$row['it_name']}
+{$lt}_PRICE{$gt}{$row['it_amount']}
+{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']}
+{$lt}IMGURL{$gt}$data_url/item/{$row['it_id']}_l1
{$lt}CATE_1{$gt}$ca_name1
{$lt}CATE_2{$gt}$ca_name2
{$lt}CATE_3{$gt}$ca_name3
{$lt}CATE_4{$gt}$ca_name4
{$lt}_MODEL{$gt}
{$lt}_BRAND{$gt}
-{$lt}_MAKER{$gt}$row[it_maker]
-{$lt}ORIGIN{$gt}$row[it_origin]
+{$lt}_MAKER{$gt}{$row['it_maker']}
+{$lt}ORIGIN{$gt}{$row['it_origin']}
{$lt}PRDATE{$gt}$PRDATE
{$lt}DELIVR{$gt}0/$delivery_limit/$delivery
{$lt}_EVENT{$gt}
{$lt}COUPON{$gt}
{$lt}PRCARD{$gt}
-{$lt}_POINT{$gt}$row[it_point]
+{$lt}_POINT{$gt}{$row['it_point']}
{$lt}MODIMG{$gt}Y
{$lt}SRATIO{$gt}
{$lt}___END{$gt}
diff --git a/shop/price/auction_new.php b/shop/price/auction_new.php
index bff1c770c..66b317dc2 100644
--- a/shop/price/auction_new.php
+++ b/shop/price/auction_new.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
ob_start();
@@ -47,6 +47,8 @@ ob_start();
$lt = "[[";
$gt = "]]";
+$shop_url = G4_SHOP_URL;
+$data_url = G4_DATA_URL;
// 배송비
if ($default['de_send_cost_case'] == '없음')
@@ -63,26 +65,26 @@ else
}
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$ca_name1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$ca_name2 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
$ca_name3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 8) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
$ca_name4 = $row2['ca_name'];
}
@@ -90,20 +92,20 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo <<< HEREDOC
{$lt}_BEGIN{$gt}
-{$lt}PRODID{$gt}$row[it_id]
-{$lt}PRNAME{$gt}$row[it_name]
-{$lt}_PRICE{$gt}$row[it_amount]
-{$lt}PRDURL{$gt}$g4[shop_url]/item.php?it_id=$row[it_id]
-{$lt}IMGURL{$gt}$g4[url]/data/item/{$row[it_id]}_l1
+{$lt}PRODID{$gt}{$row['it_id']}
+{$lt}PRNAME{$gt}{$row['it_name']}
+{$lt}_PRICE{$gt}{$row['it_amount']}
+{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']}
+{$lt}IMGURL{$gt}$data_url/item/{$row['it_id']}_l1
{$lt}CATE_1{$gt}$ca_name1
{$lt}CATE_2{$gt}$ca_name2
{$lt}CATE_3{$gt}$ca_name3
{$lt}CATE_4{$gt}$ca_name4
-{$lt}_MAKER{$gt}$row[it_maker]
-{$lt}ORIGIN{$gt}$row[it_origin]
+{$lt}_MAKER{$gt}{$row['it_maker']}
+{$lt}ORIGIN{$gt}{$row['it_origin']}
{$lt}PRDATE{$gt}$PRDATE
{$lt}DELIVR{$gt}0/$delivery_limit/$delivery
-{$lt}_POINT{$gt}$row[it_point]
+{$lt}_POINT{$gt}{$row['it_point']}
{$lt}___END{$gt}
HEREDOC;
diff --git a/shop/price/auction_summary.php b/shop/price/auction_summary.php
index fd0f6ae0e..b1ed99d08 100644
--- a/shop/price/auction_summary.php
+++ b/shop/price/auction_summary.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
ob_start();
@@ -20,7 +20,7 @@ ob_start();
$lt = "[[";
$gt = "]]";
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
@@ -28,9 +28,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo <<< HEREDOC
{$lt}_BEGIN{$gt}
-{$lt}PRODID{$gt}$row[it_id]
-{$lt}PRNAME{$gt}$row[it_name]
-{$lt}_PRICE{$gt}$row[it_amount]
+{$lt}PRODID{$gt}{$row['it_id']}
+{$lt}PRNAME{$gt}{$row['it_name']}
+{$lt}_PRICE{$gt}{$row['it_amount']}
{$lt}___END{$gt}
HEREDOC;
diff --git a/shop/price/bb.php b/shop/price/bb.php
index 06ac1c585..076b0f374 100644
--- a/shop/price/bb.php
+++ b/shop/price/bb.php
@@ -6,16 +6,16 @@ function it_image($img)
{
global $g4;
- $tmp = G4_DATA_PATH."/item/$img";
+ $tmp = G4_DATA_PATH.'/item/'.$img;
if (file_exists($tmp) && $img) {
- $str = G4_DATA_URL."/item/$img";
+ $str = G4_DATA_URL.'/item/'.$img;
} else {
- $str = G4_SHOP_URL."/img/no_image.gif";
+ $str = G4_SHOP_URL.'/img/no_image.gif';
}
return $str;
}
-include_once("./_common.php");
+include_once('./_common.php');
?>
비비 엔진페이지
@@ -28,7 +28,7 @@ include_once("./_common.php");
// 상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
$str = "";
-$sql = " select * from {$g4['yc4_item_table']}
+$sql = " select * from {$g4['shop_item_table']}
where it_use = '1'
order by ca_id ";
$result = sql_query($sql);
@@ -36,13 +36,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$image = it_image($row['it_id'].'_m');
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
if (strlen($row['ca_id']) >= 4)
- $row3 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
+ $row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
if (strlen($row['ca_id']) >= 6)
- $row4 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
+ $row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
// 재고검사해서 없으면 상품가격을 0 으로 설정
$stock = get_it_stock_qty($row['it_id']);
diff --git a/shop/price/danawa.old.php b/shop/price/danawa.old.php
index c06a3cf91..546101da1 100644
--- a/shop/price/danawa.old.php
+++ b/shop/price/danawa.old.php
@@ -2,26 +2,26 @@
/*
** 가격비교사이트 다나와 엔진페이지
*/
-include_once("./_common.php");
+include_once('./_common.php');
?>
-echo $_SERVER["HTTP_HOST"];
+echo $_SERVER['HTTP_HOST'];
// \n상품코드#대분류#소분류#상품명#상품URL#가격
$str = "";
-$sql = " select * from $g4[yc4_item_table]
+$sql = " select * from {$g4['shop_item_table']}
where it_use = '1'
order by ca_id ";
$result = sql_query($sql);
-for ($i=0; $row=mysql_fetch_array($result); $i++)
+for ($i=0; $row=mysql_fetch_array($result); $i++)
{
- $row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '".substr($row[ca_id],0,2)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
- if (strlen($row[ca_id]) >= 4)
- $row3 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '".substr($row[ca_id],0,4)."' ");
+ if (strlen($row['ca_id']) >= 4)
+ $row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$str .= "\n";
- $str .= "$row[it_id]#$row2[ca_name]#$row3[ca_name]#$row[it_name]#$g4[shop_url]/item.php?it_id=$row[it_id]#$row[it_amount]";
+ $str .= "{$row['it_id']}#{$row2['ca_name']}#{$row3['ca_name']}#{$row['it_name']}#".G4_SHOP_URL."/item.php?it_id={$row['it_id']}#{$row['it_amount']}";
}
echo $str;
?>
\ No newline at end of file
diff --git a/shop/price/danawa.php b/shop/price/danawa.php
index a1b7a9e1e..e51cffb82 100644
--- a/shop/price/danawa.php
+++ b/shop/price/danawa.php
@@ -2,7 +2,7 @@
/*
** 가격비교사이트 다나와 엔진페이지
*/
-include_once("./_common.php");
+include_once('./_common.php');
$nl = ""; // new line \n
@@ -19,16 +19,16 @@ else
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
$str = "";
-$sql = " select * from {$g4['yc4_item_table']}
+$sql = " select * from {$g4['shop_item_table']}
where it_use = '1'
order by ca_id ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
- $row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
+ $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$ca_name = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
- $row3 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
+ $row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$ca_name .= "|" . $row3['ca_name'];
}
diff --git a/shop/price/daum.php b/shop/price/daum.php
index e51dbc72e..10a1a361e 100644
--- a/shop/price/daum.php
+++ b/shop/price/daum.php
@@ -1,5 +1,5 @@
-include_once("./_common.php");
+include_once('./_common.php');
header("Content-Type: text/html; charset=utf-8");
@@ -64,6 +64,8 @@ header("Content-Type: text/html; charset=utf-8");
$lt = "<<<";
$gt = ">>>";
+$shop_url = G4_SHOP_URL;
+$data_url = G4_DATA_URL;
// 배송비
if ($default['de_send_cost_case'] == '없음') {
@@ -79,14 +81,14 @@ else {
$deliv2 = (int)$send_cost_list[0]."원";
}
-$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
+$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$cate1 = $cate2 = $cate3 = $cate4 = "";
- $row2 = sql_fetch(" select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
+ $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$cate1 = $row2['ca_id'];
$catename1 = $row2['ca_name'];
@@ -94,19 +96,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$catename2 = $catename3 = $catename4 = "";
if (strlen($row['ca_id']) >= 8) {
- $row2 = sql_fetch(" select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
+ $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
$cate4 = $row2['ca_id'];
$catename4 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
- $row2 = sql_fetch(" select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
+ $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
$cate3 = $row2['ca_id'];
$catename3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 4) {
- $row2 = sql_fetch(" select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
+ $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$cate2 = $row2['ca_id'];
$catename2 = $row2['ca_name'];
}
@@ -122,11 +124,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo <<< HEREDOC
{$lt}begin{$gt}
-{$lt}pid{$gt}$row[it_id]
-{$lt}price{$gt}$row[it_amount]
-{$lt}pname{$gt}$row[it_name]
-{$lt}pgurl{$gt}$g4[shop_url]/item.php?it_id={$row[it_id]}
-{$lt}igurl{$gt}$g4[url]/data/item/{$row[it_id]}_m
+{$lt}pid{$gt}{$row['it_id']}
+{$lt}price{$gt}{$row['it_amount']}
+{$lt}pname{$gt}{$row['it_name']}
+{$lt}pgurl{$gt}$shop_url/item.php?it_id={$row['it_id']}
+{$lt}igurl{$gt}$data_url/item/{$row['it_id']}_m
{$lt}cate1{$gt}$cate1
{$lt}cate2{$gt}$cate2
{$lt}cate3{$gt}$cate3
@@ -135,7 +137,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
{$lt}catename2{$gt}$catename2
{$lt}catename3{$gt}$catename3
{$lt}catename4{$gt}$catename4
-{$lt}maker{$gt}$row[it_maker]
+{$lt}maker{$gt}{$row['it_maker']}
{$lt}pdate{$gt}$pdate
{$lt}point{$gt}$point
{$lt}deliv{$gt}$deliv
diff --git a/shop/price/enuri.old.php b/shop/price/enuri.old.php
index cccfbca8c..4747ba027 100644
--- a/shop/price/enuri.old.php
+++ b/shop/price/enuri.old.php
@@ -43,26 +43,26 @@ function paging($write_pages, $cur_page, $total_page, $url )
}
-include_once("./_common.php");
+include_once('./_common.php');
// 페이지당 행수
$page_rows = 1000;
-$sql = " select count(*) as cnt from $g4[yc4_item_table] where it_use = '1' and ca_id LIKE '$ca_id%'";
+$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
$row = sql_fetch($sql);
-$total_count = $row[cnt];
+$total_count = $row['cnt'];
?>
에누리 엔진페이지
-
-
-
+
+
+