\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/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 4fe428565..036176500 100644
--- a/shop/orderformupdate.php
+++ b/shop/orderformupdate.php
@@ -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.");
@@ -200,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']}',
@@ -261,7 +261,7 @@ $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' ";
@@ -277,7 +277,7 @@ if(!$result) {
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/about.php b/shop/price/about.php
index ecb7aa97b..cfbe16146 100644
--- a/shop/price/about.php
+++ b/shop/price/about.php
@@ -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..bc50421ef 100644
--- a/shop/price/about_new.php
+++ b/shop/price/about_new.php
@@ -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..255ec8bbf 100644
--- a/shop/price/auction.php
+++ b/shop/price/auction.php
@@ -60,26 +60,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'];
}
diff --git a/shop/price/auction_new.php b/shop/price/auction_new.php
index bff1c770c..7180530a4 100644
--- a/shop/price/auction_new.php
+++ b/shop/price/auction_new.php
@@ -63,26 +63,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'];
}
diff --git a/shop/price/auction_summary.php b/shop/price/auction_summary.php
index fd0f6ae0e..b03ea4496 100644
--- a/shop/price/auction_summary.php
+++ b/shop/price/auction_summary.php
@@ -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++)
diff --git a/shop/price/bb.php b/shop/price/bb.php
index 06ac1c585..4e46e032f 100644
--- a/shop/price/bb.php
+++ b/shop/price/bb.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..bc93bae3f 100644
--- a/shop/price/danawa.old.php
+++ b/shop/price/danawa.old.php
@@ -9,16 +9,16 @@ 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]";
diff --git a/shop/price/danawa.php b/shop/price/danawa.php
index a1b7a9e1e..395d50df0 100644
--- a/shop/price/danawa.php
+++ b/shop/price/danawa.php
@@ -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..02d6e400f 100644
--- a/shop/price/daum.php
+++ b/shop/price/daum.php
@@ -79,14 +79,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 +94,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'];
}
diff --git a/shop/price/enuri.old.php b/shop/price/enuri.old.php
index cccfbca8c..aa85287cc 100644
--- a/shop/price/enuri.old.php
+++ b/shop/price/enuri.old.php
@@ -48,21 +48,21 @@ 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];
?>
에누리 엔진페이지
-
-
-
+
+
+
| | |
|
| |