shop 테이블명 g5_shop 으로 변경
This commit is contained in:
@ -17,8 +17,8 @@ set_session('ss_norobot_key', $norobot_key);
|
||||
$sql = " select a.*,
|
||||
b.ca_name,
|
||||
b.ca_use
|
||||
from {$g5['shop_item_table']} a,
|
||||
{$g5['shop_category_table']} b
|
||||
from {$g5['g5_shop_item_table']} a,
|
||||
{$g5['g5_shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id ";
|
||||
$it = sql_fetch($sql);
|
||||
@ -31,7 +31,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
||||
|
||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||
$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use
|
||||
from {$g5['shop_category_table']}
|
||||
from {$g5['g5_shop_category_table']}
|
||||
where ca_id = '{$it['ca_id']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
@ -75,7 +75,7 @@ if (!$saved) {
|
||||
|
||||
// 조회수 증가
|
||||
if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
sql_query(" update {$g5['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
sql_query(" update {$g5['g5_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시간동안 저장
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ if ($is_admin)
|
||||
echo '<div id="sit_hhtml">'.stripslashes($it['it_mobile_head_html']).'</div>';
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['shop_item_table']}
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']}
|
||||
where it_id > '$it_id'
|
||||
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
|
||||
and it_use = '1'
|
||||
@ -113,7 +113,7 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['shop_item_table']}
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']}
|
||||
where it_id < '$it_id'
|
||||
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
|
||||
and it_use = '1'
|
||||
@ -131,19 +131,19 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 관리자가 확인한 사용후기의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g5['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_use_count = $row['cnt'];
|
||||
|
||||
// 상품문의의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g5['shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_qa_count = $row['cnt'];
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt
|
||||
from {$g5['shop_item_relation_table']} a
|
||||
left join {$g5['shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
|
||||
from {$g5['g5_shop_item_relation_table']} a
|
||||
left join {$g5['g5_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'];
|
||||
@ -600,7 +600,7 @@ else
|
||||
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
$sql = " select b.* from {$g5['shop_item_relation_table']} a left join {$g5['shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
$sql = " select b.* from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list("list.10.skin.php", $default['de_rel_list_mod'], 1, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||
$list->set_mobile(true);
|
||||
|
||||
Reference in New Issue
Block a user