diff --git a/mobile/skin/shop/basic/itemqaform.skin.php b/mobile/skin/shop/basic/itemqaform.skin.php
index 9aeb54cb2..2d421d050 100644
--- a/mobile/skin/shop/basic/itemqaform.skin.php
+++ b/mobile/skin/shop/basic/itemqaform.skin.php
@@ -1,12 +1,5 @@
diff --git a/mobile/skin/shop/basic/itemqalist.skin.php b/mobile/skin/shop/basic/itemqalist.skin.php
index 37d87b827..ce76e8f59 100644
--- a/mobile/skin/shop/basic/itemqalist.skin.php
+++ b/mobile/skin/shop/basic/itemqalist.skin.php
@@ -31,6 +31,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
diff --git a/mobile/skin/shop/basic/itemuselist.skin.php b/mobile/skin/shop/basic/itemuselist.skin.php
index 291d3662b..c5f521e62 100644
--- a/mobile/skin/shop/basic/itemuselist.skin.php
+++ b/mobile/skin/shop/basic/itemuselist.skin.php
@@ -31,12 +31,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
'$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'].' ';
+ $prev_href = '
';
+ $prev_href2 = ' '.PHP_EOL;
+} else {
+ $prev_title = '';
+ $prev_href = '';
+ $prev_href2 = '';
+}
+
+// 다음 상품보기
+$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' order by it_id desc limit 1 ";
+$row = sql_fetch($sql);
+if ($row['it_id']) {
+ $next_title = '다음 상품
'.$row['it_name'].' ';
+ $next_href = '
';
+ $next_href2 = ' '.PHP_EOL;
+} else {
+ $next_title = '';
+ $next_href = '';
+ $next_href2 = '';
+}
+
+// 상품 선택옵션 갯수
+$sql = " select count(*) as cnt from {$g5['g5_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 {$g5['g5_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']);
+
+// 관리자가 확인한 사용후기의 갯수를 얻음
+$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['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['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'];
+
+// 소셜 관련
+$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
+$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
+$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb2.png').' ';
+$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt2.png').' ';
+$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo2.png');
+
+function pg_anchor($anc_id) {
+ global $default;
+ global $item_use_count, $item_qa_count, $item_relation_count;
+?>
+
+
diff --git a/shop/itemqaform.php b/shop/itemqaform.php
index 2523b73a0..97172a07f 100644
--- a/shop/itemqaform.php
+++ b/shop/itemqaform.php
@@ -12,6 +12,13 @@ if (!$is_member) {
alert_close("상품문의는 회원만 작성 가능합니다.");
}
+// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
+$iq_question_max_length = 10000;
+
+$w = escape_trim($_REQUEST['w']);
+$it_id = escape_trim($_REQUEST['it_id']);
+$iq_id = escape_trim($_REQUEST['iq_id']);
+
if ($w == "u")
{
$qa = sql_fetch(" select * from {$g5['g5_shop_item_qa_table']} where iq_id = '$iq_id' ");
diff --git a/shop/itemuseform.php b/shop/itemuseform.php
index 911aed38f..fa9c24ca7 100644
--- a/shop/itemuseform.php
+++ b/shop/itemuseform.php
@@ -12,6 +12,13 @@ if (!$is_member) {
alert_close("사용후기는 회원만 작성 가능합니다.");
}
+// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
+$is_content_max_length = 10000;
+
+$w = escape_trim($_REQUEST['w']);
+$it_id = escape_trim($_REQUEST['it_id']);
+$is_id = escape_trim($_REQUEST['is_id']);
+
if ($w == "") {
$is_score = 10;
} else if ($w == "u") {
diff --git a/skin/shop/basic/item.form.skin.php b/skin/shop/basic/item.form.skin.php
index 6a15fb493..01c42b93a 100644
--- a/skin/shop/basic/item.form.skin.php
+++ b/skin/shop/basic/item.form.skin.php
@@ -1,57 +1,5 @@
'$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'].' ';
- $prev_href = '
';
- $prev_href2 = ' '.PHP_EOL;
-} else {
- $prev_title = '';
- $prev_href = '';
- $prev_href2 = '';
-}
-
-// 다음 상품보기
-$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' order by it_id desc limit 1 ";
-$row = sql_fetch($sql);
-if ($row['it_id']) {
- $next_title = '다음 상품
'.$row['it_name'].' ';
- $next_href = '
';
- $next_href2 = ' '.PHP_EOL;
-} else {
- $next_title = '';
- $next_href = '';
- $next_href2 = '';
-}
-
-// 상품 선택옵션 갯수
-$sql = " select count(*) as cnt from {$g5['g5_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 {$g5['g5_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']);
-
-// 소셜 관련
-$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
-$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
-$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb2.png').' ';
-$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt2.png').' ';
-$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo2.png');
?>
diff --git a/skin/shop/basic/item.info.skin.php b/skin/shop/basic/item.info.skin.php
index 12f0c5f84..f5439eb18 100644
--- a/skin/shop/basic/item.info.skin.php
+++ b/skin/shop/basic/item.info.skin.php
@@ -1,38 +1,9 @@
-
-
+
@@ -143,47 +114,8 @@ function pg_anchor($anc_id) {
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/skin/shop/basic/itemqaform.skin.php b/skin/shop/basic/itemqaform.skin.php
index e6c3b7099..0168259e5 100644
--- a/skin/shop/basic/itemqaform.skin.php
+++ b/skin/shop/basic/itemqaform.skin.php
@@ -1,12 +1,5 @@
diff --git a/skin/shop/basic/itemqalist.skin.php b/skin/shop/basic/itemqalist.skin.php
index 5fb7a9e0a..403917b2f 100644
--- a/skin/shop/basic/itemqalist.skin.php
+++ b/skin/shop/basic/itemqalist.skin.php
@@ -32,6 +32,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
diff --git a/skin/shop/basic/itemuselist.skin.php b/skin/shop/basic/itemuselist.skin.php
index 57f3062b3..1769d0250 100644
--- a/skin/shop/basic/itemuselist.skin.php
+++ b/skin/shop/basic/itemuselist.skin.php
@@ -30,12 +30,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가