diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php
index e3a7e5f65..41355d42b 100644
--- a/extend/shop.extend2.php
+++ b/extend/shop.extend2.php
@@ -182,12 +182,14 @@ if(!$result) {
ADD `ir_no` INT(11) NOT NULL DEFAULT '0' AFTER `it_id2` ", false);
}
+/*
if (!isset($it['it_mobile_explan'])) {
sql_query(" ALTER TABLE `{$g4['shop_item_table']}`
ADD `it_mobile_explan` TEXT NOT NULL AFTER `it_explan`,
ADD `it_mobile_head_html` TEXT NOT NULL AFTER `it_tail_html`,
ADD `it_mobile_tail_html` TEXT NOT NULL AFTER `it_mobile_head_html` ", false);
}
+*/
// de_guest_cart_use 필드추가
$sql = " select de_guest_cart_use from {$g4['shop_default_table']} ";
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index 6db357cb0..8645314b7 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -63,8 +63,7 @@ function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='')
if(!$it_id || !$width)
return '';
- $sql = " select it_id, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
- from {$g4['shop_item_table']} where it_id = '$it_id' ";
+ $sql = " select it_id, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 from {$g4['shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
if(!$row['it_id'])
diff --git a/shop/boxbanner.inc.php b/shop/boxbanner.inc.php
index 5ffee30c6..05bf797ec 100644
--- a/shop/boxbanner.inc.php
+++ b/shop/boxbanner.inc.php
@@ -1,9 +1,6 @@
diff --git a/shop/boxcart.inc.php b/shop/boxcart.inc.php
index 99247d6d2..45f4d7fc7 100644
--- a/shop/boxcart.inc.php
+++ b/shop/boxcart.inc.php
@@ -5,10 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
 |
" class="gnb_1da">
'.stripslashes($it['it_head_html']).'';
// 이전 상품보기
-$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'
- order by it_id asc
- limit 1 ";
+$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' order by it_id asc limit 1 ";
$row = sql_fetch($sql);
if ($row['it_id']) {
$prev_title = '이전상품 '.$row['it_name'].'';
@@ -127,12 +114,7 @@ if ($row['it_id']) {
}
// 다음 상품보기
-$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'
- order by it_id desc
- limit 1 ";
+$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' order by it_id desc limit 1 ";
$row = sql_fetch($sql);
if ($row['it_id']) {
$next_title = '다음 상품 '.$row['it_name'].'';
@@ -155,10 +137,7 @@ $row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
// 관련상품의 갯수를 얻음
-$sql = " select count(*) as cnt
- 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']}' ";
+$sql = " select count(*) as cnt 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'];
?>
@@ -582,10 +561,14 @@ else
사용후기
-
+
+
+
@@ -594,10 +577,14 @@ else
상품문의
-
+
+
+
@@ -631,11 +618,7 @@ else
$img_width = 230;
$img_height = 230;
- $sql = " select b.*
- 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' ";
+ $sql = " select b.* 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);
$num = @mysql_num_rows($result);
if ($num)
diff --git a/shop/itemqa.php b/shop/itemqa.php
index 71bc57670..cc48326b9 100644
--- a/shop/itemqa.php
+++ b/shop/itemqa.php
@@ -2,7 +2,7 @@
include_once('./_common.php');
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
-$it_id = $_REQUEST['it_id'];
+//$it_id = $_REQUEST['it_id'];
$itemqa_list = "./itemqalist.php";
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
diff --git a/shop/itemuse.php b/shop/itemuse.php
index 92836dbe1..d72e2e9c8 100644
--- a/shop/itemuse.php
+++ b/shop/itemuse.php
@@ -2,7 +2,7 @@
include_once('./_common.php');
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
-$it_id = $_REQUEST['it_id'];
+//$it_id = $_REQUEST['it_id'];
$itemuse_list = "./itemuselist.php";
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
diff --git a/shop/listcategory.inc.php b/shop/listcategory.inc.php
index 990f59d5e..1d9fff092 100644
--- a/shop/listcategory.inc.php
+++ b/shop/listcategory.inc.php
@@ -6,11 +6,7 @@ $ca_id_len = strlen($ca_id);
$len2 = $ca_id_len + 2;
$len4 = $ca_id_len + 4;
-$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'
- order by ca_id ";
+$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' order by ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
diff --git a/shop/listcategory2.inc.php b/shop/listcategory2.inc.php
index 46937e398..69009c8aa 100644
--- a/shop/listcategory2.inc.php
+++ b/shop/listcategory2.inc.php
@@ -16,17 +16,11 @@ if (!$exists) {
$len4 = $tmp_ca_id_len + 4;
// 차차기 분류의 건수를 얻음
- $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 ";
+ $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 ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
- $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 ";
+ $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 ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$sct_ct_here = '';
@@ -36,10 +30,7 @@ if (!$exists) {
$str .= '';
if ($cnt) {
$str .= ''.$row['ca_name'].'';
- $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 ";
+ $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 ";
$result2 = sql_query($sql2);
$k=0;
while ($row2=sql_fetch_array($result2)) {
diff --git a/shop/listcategory3.inc.php b/shop/listcategory3.inc.php
index 66ac2c89c..e7418567a 100644
--- a/shop/listcategory3.inc.php
+++ b/shop/listcategory3.inc.php
@@ -4,11 +4,7 @@ $exists = false;
$depth2_ca_id = substr($ca_id, 0, 2);
-$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'
- order by ca_id ";
+$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' order by ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
if (preg_match("/^{$row['ca_id']}/", $ca_id))