diff --git a/shop/item.php b/shop/item.php
index 516726e5b..245ecb574 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -6,6 +6,8 @@ if (G4_IS_MOBILE) {
return;
}
+$it_id = escape_trim($_GET['it_id']);
+
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
// 분류사용, 상품사용하는 상품의 정보를 얻음
@@ -132,644 +134,43 @@ $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']}' ";
$row = sql_fetch($sql);
$item_relation_count = $row['cnt'];
-?>
-
-
-
+// 상품 선택옵션 갯수
+$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
+$row = sql_fetch($sql);
+$opt_count = $row['cnt'];
-
+// 상품 추가옵션 갯수
+$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
+$row = sql_fetch($sql);
+$spl_count = $row['cnt'];
+
+// 고객선호도 별점수
+$star_score = get_star_image($it['it_id']);
+
+// 선택 옵션
+$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
+
+// 추가 옵션
+$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
-
+
+
-
-
-
-
-
-
- 상품 정보
-
-
- 상품 기본설명
-
-
-
-
-
-
- 상품 상세설명
-
-
-
-
-
-
- 상품 정보 고시
-
-
-
-
-
-
-
-
- $val) {
- $ii_title = $info_array[$key][0];
- $ii_value = $val;
- ?>
-
- |
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 관련상품
-
-
-
- set_query($sql);
- echo $list->run();
- ?>
-
-
-
-
-
-
-
+
+
+
diff --git a/skin/shop/basic/item.form.skin.php b/skin/shop/basic/item.form.skin.php
new file mode 100644
index 000000000..77cf72958
--- /dev/null
+++ b/skin/shop/basic/item.form.skin.php
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
diff --git a/skin/shop/basic/item.info.skin.php b/skin/shop/basic/item.info.skin.php
new file mode 100644
index 000000000..3dddd1ff6
--- /dev/null
+++ b/skin/shop/basic/item.info.skin.php
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+ 상품 정보
+
+
+ 상품 기본설명
+
+
+
+
+
+
+ 상품 상세설명
+
+
+
+
+
+
+ 상품 정보 고시
+
+
+
+
+
+
+
+
+ $val) {
+ $ii_title = $info_array[$key][0];
+ $ii_value = $val;
+ ?>
+
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 관련상품
+
+
+
+ set_query($sql);
+ echo $list->run();
+ ?>
+
+
+