diff --git a/bbs/alert_login.php b/bbs/alert_login.php
deleted file mode 100644
index 8f42af7e6..000000000
--- a/bbs/alert_login.php
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/skin/shop/basic/list.sub2.skin.php b/js/shop.list.js
similarity index 82%
rename from skin/shop/basic/list.sub2.skin.php
rename to js/shop.list.js
index a7888851d..556616250 100644
--- a/skin/shop/basic/list.sub2.skin.php
+++ b/js/shop.list.js
@@ -1,8 +1,3 @@
-
-
-
\ No newline at end of file
+});
\ No newline at end of file
diff --git a/mobile/shop/item.php b/mobile/shop/item.php
index 00a7c0f76..8828f8bcf 100644
--- a/mobile/shop/item.php
+++ b/mobile/shop/item.php
@@ -1,17 +1,8 @@
1단계 > 2단계 ... > 6단계 분류
$ca_id = $it['ca_id'];
-include G5_MSHOP_PATH.'/navigation1.inc.php';
+include G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
if ($is_admin)
echo '
';
// 상단 HTML
echo ''.stripslashes($it['it_mobile_head_html']).'
';
-
-// 이전 상품보기
-$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 asc
- limit 1 ";
-$row = sql_fetch($sql);
-if ($row['it_id']) {
- $prev_title = '이전상품보기 '.$row['it_name'];
- $prev_href = '';
- $prev_href = ' ';
-} 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 = ' ';
-} else {
- $next_title = '';
- $next_href = '';
- $next_href2 = '';
-}
-
-// 관리자가 확인한 사용후기의 갯수를 얻음
-$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'];
?>
-
-
-
-
- 다른 상품 보기
- 이 분류에 등록된 다른 상품이 없습니다.';
- }
- ?>
-
-
-
-
-
- 상품 정보
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 상품 정보 고시
-
-
-
-
-
-
-
-
- $val) {
- $ii_title = $info_array[$key][0];
- $ii_value = $val;
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 관련상품
-
-
-
- set_mobile(true);
- $list->set_query($sql);
- echo $list->run();
- ?>
-
-
-
-
-
-
-
-
+
-
-
-
- 등록된 상품문의
-
- ';
- ?>
-
-
- .
-
- 작성자
-
- 작성일
-
- 상태
-
-
-
-
-
-
- 문의내용
-
-
-
- 답변
-
-
-
-
-
-
-
-
-
-
- = 0) echo '';
-
- if (!$i) echo '상품문의가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
\ No newline at end of file
+if(!file_exists($itemqa_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemqa_skin);
+}
+?>
\ No newline at end of file
diff --git a/mobile/shop/itemqaform.php b/mobile/shop/itemqaform.php
index 11d989719..e6fb2c3b0 100644
--- a/mobile/shop/itemqaform.php
+++ b/mobile/shop/itemqaform.php
@@ -2,15 +2,8 @@
include_once('./_common.php');
include_once(G5_EDITOR_LIB);
-// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문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 (!$is_member) {
- alert_login("상품문의는 회원만 작성 가능합니다.", urlencode($_SERVER['REQUEST_URI']));
+ alert_close("상품문의는 회원만 작성 가능합니다.");
}
if ($w == "u")
@@ -28,56 +21,14 @@ if ($w == "u")
}
include_once(G5_PATH.'/head.sub.php');
-?>
-
-
-
상품문의 쓰기
+$itemqaform_skin = G5_MSHOP_SKIN_PATH.'/itemqaform.skin.php';
-
-
-
-
-
-
\ No newline at end of file
diff --git a/mobile/shop/itemqaformupdate.php b/mobile/shop/itemqaformupdate.php
deleted file mode 100644
index 9226538e1..000000000
--- a/mobile/shop/itemqaformupdate.php
+++ /dev/null
@@ -1,76 +0,0 @@
-
diff --git a/mobile/shop/itemqalist.php b/mobile/shop/itemqalist.php
index 307fd117d..219ceb182 100644
--- a/mobile/shop/itemqalist.php
+++ b/mobile/shop/itemqalist.php
@@ -48,127 +48,21 @@ $rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
-?>
-
-
+$itemqalist_skin = G5_MSHOP_SKIN_PATH.'/itemqalist.skin.php';
-
+if(!file_exists($itemqalist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemqalist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemqalist_skin);
+}
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
- 작성자
-
- 작성일
-
- 상태
-
-
-
-
-
- 문의내용
-
-
-
- 답변
-
-
-
-
- 보기
-
-
-
- 0) echo '';
- if ($i == 0) echo '
자료가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
diff --git a/mobile/shop/itemuse.php b/mobile/shop/itemuse.php
index 48a7a9b45..c72a9ad8e 100644
--- a/mobile/shop/itemuse.php
+++ b/mobile/shop/itemuse.php
@@ -2,132 +2,11 @@
include_once('./_common.php');
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
-//$it_id = $_REQUEST['it_id'];
+$itemuse_skin = G5_SHOP_SKIN_PATH.'/itemuse.skin.php';
-$itemuse_list = "./itemuselist.php";
-$itemuse_form = "./itemuseform.php?it_id=".$it_id;
-$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
-?>
-
-
-
- 등록된 사용후기
-
- ';
- ?>
-
-
- .
-
- 작성자
-
- 작성일
-
- 선호도
-
-
-
-
-
-
- = 0) echo '';
-
- if (!$i) echo '사용후기가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
\ No newline at end of file
+if(!file_exists($itemuse_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemuse_skin);
+}
+?>
\ No newline at end of file
diff --git a/mobile/shop/itemuseform.php b/mobile/shop/itemuseform.php
index 921df1466..70f13c549 100644
--- a/mobile/shop/itemuseform.php
+++ b/mobile/shop/itemuseform.php
@@ -2,13 +2,6 @@
include_once('./_common.php');
include_once(G5_EDITOR_LIB);
-// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문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 (!$is_member) {
alert_close("사용후기는 회원만 작성 가능합니다.");
}
@@ -30,104 +23,14 @@ if ($w == "") {
}
include_once(G5_PATH.'/head.sub.php');
-?>
-
-
-
사용후기 쓰기
+$itemuseform_skin = G5_MSHOP_SKIN_PATH.'/itemuseform.skin.php';
-
-
-
-
-
-
\ No newline at end of file
diff --git a/mobile/shop/itemuseformupdate.php b/mobile/shop/itemuseformupdate.php
deleted file mode 100644
index a52d7c152..000000000
--- a/mobile/shop/itemuseformupdate.php
+++ /dev/null
@@ -1,85 +0,0 @@
-
\ No newline at end of file
diff --git a/mobile/shop/itemuselist.php b/mobile/shop/itemuselist.php
index 3bf0c52f2..a66ce22a3 100644
--- a/mobile/shop/itemuselist.php
+++ b/mobile/shop/itemuselist.php
@@ -48,107 +48,21 @@ $rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
-?>
-
-
+$itemuselist_skin = G5_MSHOP_SKIN_PATH.'/itemuselist.skin.php';
-
+if(!file_exists($itemuselist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemuselist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemuselist_skin);
+}
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
- 작성자
-
- 작성일
-
- 평가점수
-
-
-
-
-
-
-
- 보기
-
-
-
- 0) echo '';
- if ($i == 0) echo '
자료가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
diff --git a/mobile/shop/list.php b/mobile/shop/list.php
index 21e4d9f70..7b849401b 100644
--- a/mobile/shop/list.php
+++ b/mobile/shop/list.php
@@ -11,19 +11,19 @@ if (!$ca['ca_id'])
if(!$is_admin) {
// 본인확인체크
- if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
+ if($ca['ca_cert_use'] && !$member['mb_certify']) {
if($is_member)
- alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
+ alert('회원정보 수정에서 본인확인 후 이용해 주십시오.');
else
- alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
+ alert('본인확인된 로그인 회원만 이용할 수 있습니다.');
}
// 성인인증체크
- if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
+ if($ca['ca_adult_use'] && !$member['mb_adult']) {
if($is_member)
- alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
+ alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 본인확인을 해주십시오.');
else
- alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
+ alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
}
}
@@ -38,11 +38,16 @@ if ($is_admin)
echo '';
?>
+
+
+
'.stripslashes($ca['ca_mobile_head_html']).'
';
@@ -56,10 +61,10 @@ if ($is_admin)
// 리스트 유형별로 출력
$list_file = G5_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
if (file_exists($list_file)) {
- include G5_MSHOP_PATH.'/list.sort.php';
+ include G5_MSHOP_SKIN_PATH.'/list.sort.skin.php';
// 상품 보기 타입 변경 버튼
- include G5_SHOP_PATH.'/list.sub.php';
+ include G5_MSHOP_SKIN_PATH.'/list.sub.skin.php';
// 총몇개
$items = $ca['ca_mobile_list_mod'];
@@ -103,9 +108,6 @@ if ($is_admin)
?>
'.$row['ca_name'].' ('.$row2['cnt'].') ';
- $exists = true;
-}
-
-if ($exists) {
-?>
-
-
-
-
\ No newline at end of file
diff --git a/mobile/shop/listcategory2.inc.php b/mobile/shop/listcategory2.inc.php
deleted file mode 100644
index c0307aaf7..000000000
--- a/mobile/shop/listcategory2.inc.php
+++ /dev/null
@@ -1,68 +0,0 @@
-';
- if ($cnt) {
- $str .= ''.$row['ca_name'].' ';
- $sql2 = " select ca_id, ca_name from {$g5['g5_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)) {
- $str .= ''.$row2['ca_name'].' ';
- $k++;
- }
- } else {
- $str .= ''.$row['ca_name'].' ';
- }
- $str .= '';
- $exists = true;
- }
-}
-
-
-if ($exists) {
-?>
-
-
-
-
\ No newline at end of file
diff --git a/mobile/shop/listcategory3.inc.php b/mobile/shop/listcategory3.inc.php
deleted file mode 100644
index 25fc8c4b0..000000000
--- a/mobile/shop/listcategory3.inc.php
+++ /dev/null
@@ -1,32 +0,0 @@
-'.$row['ca_name'].' ';
- $exists = true;
-}
-
-if ($exists) {
-?>
-
-
-
-
\ No newline at end of file
diff --git a/mobile/shop/listtype.php b/mobile/shop/listtype.php
index 54ab5e3b7..5e68d1b25 100644
--- a/mobile/shop/listtype.php
+++ b/mobile/shop/listtype.php
@@ -29,7 +29,7 @@ if ($sort != '')
$error = ' ';
if (!$skin)
- $skin = "list.10.skin.php";
+ $skin = 'list.10.skin.php';
// 리스트 유형별로 출력
$list_file = G5_SHOP_SKIN_PATH.'/'.$skin;
@@ -43,7 +43,7 @@ if (file_exists($list_file)) {
$list = new item_list();
$list->set_type($type);
- $list->set_list_skin('list.10.skin.php');
+ $list->set_list_skin($skin);
$list->set_list_mod($list_mod);
$list->set_list_row($list_row);
$list->set_img_size($img_width, $img_height);
diff --git a/mobile/skin/shop/basic/img/sns_fb.png b/mobile/skin/shop/basic/img/sns_fb.png
new file mode 100644
index 000000000..3422bbad9
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_fb.png differ
diff --git a/mobile/skin/shop/basic/img/sns_fb2.png b/mobile/skin/shop/basic/img/sns_fb2.png
new file mode 100644
index 000000000..8c8db682b
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_fb2.png differ
diff --git a/mobile/skin/shop/basic/img/sns_goo.png b/mobile/skin/shop/basic/img/sns_goo.png
new file mode 100644
index 000000000..e5754a1e7
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_goo.png differ
diff --git a/mobile/skin/shop/basic/img/sns_goo2.png b/mobile/skin/shop/basic/img/sns_goo2.png
new file mode 100644
index 000000000..c8c4df824
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_goo2.png differ
diff --git a/mobile/skin/shop/basic/img/sns_twt.png b/mobile/skin/shop/basic/img/sns_twt.png
new file mode 100644
index 000000000..e4c3ceebf
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_twt.png differ
diff --git a/mobile/skin/shop/basic/img/sns_twt2.png b/mobile/skin/shop/basic/img/sns_twt2.png
new file mode 100644
index 000000000..80c97494e
Binary files /dev/null and b/mobile/skin/shop/basic/img/sns_twt2.png differ
diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php
new file mode 100644
index 000000000..b0a6e90bc
--- /dev/null
+++ b/mobile/skin/shop/basic/item.form.skin.php
@@ -0,0 +1,434 @@
+ '$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_href = ' ';
+} 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 = ' ';
+} else {
+ $next_title = '';
+ $next_href = '';
+ $next_href2 = '';
+}
+?>
+
+
+
+
+
+
+ 다른 상품 보기
+ 이 분류에 등록된 다른 상품이 없습니다.';
+ }
+ ?>
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/item.info.skin.php b/mobile/skin/shop/basic/item.info.skin.php
new file mode 100644
index 000000000..df9ebb2fe
--- /dev/null
+++ b/mobile/skin/shop/basic/item.info.skin.php
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+ 상품 정보
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 상품 정보 고시
+
+
+
+
+
+
+
+
+ $val) {
+ $ii_title = $info_array[$key][0];
+ $ii_value = $val;
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 관련상품
+
+
+
+ set_mobile(true);
+ $list->set_query($sql);
+ echo $list->run();
+ ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/item.relation.skin.php b/mobile/skin/shop/basic/item.relation.skin.php
new file mode 100644
index 000000000..ab820b857
--- /dev/null
+++ b/mobile/skin/shop/basic/item.relation.skin.php
@@ -0,0 +1,79 @@
+
+
+
+
+
+list_mod >= 2) { // 1줄 이미지 : 2개 이상
+ if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
+ else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
+ else $sct_last = '';
+ } else { // 1줄 이미지 : 1개
+ $sct_last = 'sct_clear';
+ }
+
+ if ($i == 1) {
+ if ($this->css) {
+ echo "css}\">\n";
+ } else {
+ echo "\n";
+ }
+ }
+
+ echo "\n";
+
+ if ($this->href) {
+ echo "href}{$row['it_id']}\" class=\"sct_a\">\n";
+ }
+
+ if ($this->view_it_img) {
+ echo "".get_it_image($row['it_id'], $this->img_width, $this->img_height)." \n";
+ }
+
+ if ($this->view_it_id) {
+ echo "".stripslashes($row['it_id'])." \n";
+ }
+
+ if ($this->view_it_name) {
+ $it_name = $row['it_name'];
+ if ($this->is_mobile && $row['it_mobile_name']) {
+ $it_name = $row['it_mobile_name'];
+ }
+ echo "".stripslashes($it_name)." \n";
+ }
+
+ if ($this->view_it_cust_price) {
+ echo "".display_price($row['it_cust_price'])." \n";
+ }
+
+ if ($this->view_it_price) {
+ echo "".display_price(get_price($row), $row['it_tel_inq'])." \n";
+ }
+
+ if ($this->view_it_icon) {
+ echo "".item_icon($row)." \n";
+ }
+
+ if ($this->view_sns) {
+ echo "";
+ echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb.png');
+ echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt.png');
+ echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_goo.png');
+ echo "
\n";
+ }
+
+ if ($this->href) {
+ echo " \n";
+ }
+
+ echo " \n";
+}
+
+if ($i > 1) echo " \n";
+
+if($i == 1) echo "등록된 상품이 없습니다.
\n";
+?>
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemqa.skin.php b/mobile/skin/shop/basic/itemqa.skin.php
new file mode 100644
index 000000000..a6ef87c6d
--- /dev/null
+++ b/mobile/skin/shop/basic/itemqa.skin.php
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+ 등록된 상품문의
+
+ ';
+ ?>
+
+
+ .
+
+ 작성자
+
+ 작성일
+
+ 상태
+
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+
+
+
+
+
+
+ = 0) echo '';
+
+ if (!$i) echo '상품문의가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemqaform.skin.php b/mobile/skin/shop/basic/itemqaform.skin.php
new file mode 100644
index 000000000..9aeb54cb2
--- /dev/null
+++ b/mobile/skin/shop/basic/itemqaform.skin.php
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemqalist.skin.php b/mobile/skin/shop/basic/itemqalist.skin.php
new file mode 100644
index 000000000..824f23d1d
--- /dev/null
+++ b/mobile/skin/shop/basic/itemqalist.skin.php
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ 작성자
+
+ 작성일
+
+ 상태
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+ 보기
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemuse.skin.php b/mobile/skin/shop/basic/itemuse.skin.php
new file mode 100644
index 000000000..0b84bdc76
--- /dev/null
+++ b/mobile/skin/shop/basic/itemuse.skin.php
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ 등록된 사용후기
+
+ ';
+ ?>
+
+
+ .
+
+ 작성자
+
+ 작성일
+
+ 선호도
+
+
+
+
+
+
+ = 0) echo '';
+
+ if (!$i) echo '사용후기가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemuseform.skin.php b/mobile/skin/shop/basic/itemuseform.skin.php
new file mode 100644
index 000000000..324015845
--- /dev/null
+++ b/mobile/skin/shop/basic/itemuseform.skin.php
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/itemuselist.skin.php b/mobile/skin/shop/basic/itemuselist.skin.php
new file mode 100644
index 000000000..34762d29b
--- /dev/null
+++ b/mobile/skin/shop/basic/itemuselist.skin.php
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ 작성자
+
+ 작성일
+
+ 평가점수
+
+
+
+
+
+
+
+ 보기
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/list.10.skin.php b/mobile/skin/shop/basic/list.10.skin.php
index 671725b57..9ab35e8ba 100644
--- a/mobile/skin/shop/basic/list.10.skin.php
+++ b/mobile/skin/shop/basic/list.10.skin.php
@@ -59,9 +59,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->view_sns) {
echo "";
- echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_fb.png');
- echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt.png');
- echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo.png');
+ echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb.png');
+ echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt.png');
+ echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_goo.png');
echo "
\n";
}
diff --git a/mobile/skin/shop/basic/list.sort.skin.php b/mobile/skin/shop/basic/list.sort.skin.php
new file mode 100644
index 000000000..a659142ca
--- /dev/null
+++ b/mobile/skin/shop/basic/list.sort.skin.php
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/list.sub.skin.php b/mobile/skin/shop/basic/list.sub.skin.php
new file mode 100644
index 000000000..f9ecc219e
--- /dev/null
+++ b/mobile/skin/shop/basic/list.sub.skin.php
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/shop/basic/main.10.skin.php b/mobile/skin/shop/basic/main.10.skin.php
index dfa37f9af..07869d9d9 100644
--- a/mobile/skin/shop/basic/main.10.skin.php
+++ b/mobile/skin/shop/basic/main.10.skin.php
@@ -59,9 +59,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->view_sns) {
echo "";
- echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_fb.png');
- echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt.png');
- echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo.png');
+ echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb.png');
+ echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt.png');
+ echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_goo.png');
echo "
\n";
}
diff --git a/mobile/shop/navigation1.inc.php b/mobile/skin/shop/basic/navigation.skin.php
similarity index 92%
rename from mobile/shop/navigation1.inc.php
rename to mobile/skin/shop/basic/navigation.skin.php
index 11f000cd2..377624406 100644
--- a/mobile/shop/navigation1.inc.php
+++ b/mobile/skin/shop/basic/navigation.skin.php
@@ -1,35 +1,37 @@
-'.$row['ca_name'].'';
- }
-}
-else
- $str = $g5['title'];
-
-//if ($it_id) $str .= " > $it[it_name]";
-?>
-
-
+'.$row['ca_name'].'';
+ }
+}
+else
+ $str = $g5['title'];
+
+//if ($it_id) $str .= " > $it[it_name]";
+?>
+
+
+
+
diff --git a/shop/itemqa.php b/shop/itemqa.php
index 92bab37d6..8200b034b 100644
--- a/shop/itemqa.php
+++ b/shop/itemqa.php
@@ -15,4 +15,42 @@ if(!file_exists($itemqa_skin)) {
} else {
include_once($itemqa_skin);
}
+
+// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
+function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
+{
+ $url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
+
+ $str = '';
+ if ($cur_page > 1) {
+ $str .= '처음 '.PHP_EOL;
+ }
+
+ $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
+ $end_page = $start_page + $write_pages - 1;
+
+ if ($end_page >= $total_page) $end_page = $total_page;
+
+ if ($start_page > 1) $str .= '이전 '.PHP_EOL;
+
+ if ($total_page > 1) {
+ for ($k=$start_page;$k<=$end_page;$k++) {
+ if ($cur_page != $k)
+ $str .= ''.$k.' 페이지 '.PHP_EOL;
+ else
+ $str .= '열린 '.$k.' 페이지 '.PHP_EOL;
+ }
+ }
+
+ if ($total_page > $end_page) $str .= '다음 '.PHP_EOL;
+
+ if ($cur_page < $total_page) {
+ $str .= '맨끝 '.PHP_EOL;
+ }
+
+ if ($str)
+ return "{$str} ";
+ else
+ return "";
+}
?>
\ No newline at end of file
diff --git a/shop/itemqaform.php b/shop/itemqaform.php
index 6d73180a6..2523b73a0 100644
--- a/shop/itemqaform.php
+++ b/shop/itemqaform.php
@@ -9,7 +9,7 @@ if (G5_IS_MOBILE) {
include_once(G5_EDITOR_LIB);
if (!$is_member) {
- alert_login("상품문의는 회원만 작성 가능합니다.", urlencode($_SERVER['REQUEST_URI']));
+ alert_close("상품문의는 회원만 작성 가능합니다.");
}
if ($w == "u")
diff --git a/shop/itemqalist.php b/shop/itemqalist.php
index 3b9269040..8f01bcd64 100644
--- a/shop/itemqalist.php
+++ b/shop/itemqalist.php
@@ -54,128 +54,21 @@ $rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
-?>
-
+$sql = " select a.*, b.it_name
+ $sql_common
+ $sql_search
+ $sql_order
+ limit $from_record, $rows ";
+$result = sql_query($sql);
-
+if(!file_exists($itemqalist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemqalist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemqalist_skin);
+}
-
-
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
- 작성자
-
- 작성일
-
- 상태
-
-
-
-
-
- 문의내용
-
-
-
- 답변
-
-
-
-
- 보기
-
-
-
- 0) echo '';
- if ($i == 0) echo '
자료가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
diff --git a/shop/itemuse.php b/shop/itemuse.php
index 27183adec..a338da682 100644
--- a/shop/itemuse.php
+++ b/shop/itemuse.php
@@ -15,4 +15,42 @@ if(!file_exists($itemuse_skin)) {
} else {
include_once($itemuse_skin);
}
+
+// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
+function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
+{
+ $url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
+
+ $str = '';
+ if ($cur_page > 1) {
+ $str .= '처음 '.PHP_EOL;
+ }
+
+ $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
+ $end_page = $start_page + $write_pages - 1;
+
+ if ($end_page >= $total_page) $end_page = $total_page;
+
+ if ($start_page > 1) $str .= '이전 '.PHP_EOL;
+
+ if ($total_page > 1) {
+ for ($k=$start_page;$k<=$end_page;$k++) {
+ if ($cur_page != $k)
+ $str .= ''.$k.' 페이지 '.PHP_EOL;
+ else
+ $str .= '열린 '.$k.' 페이지 '.PHP_EOL;
+ }
+ }
+
+ if ($total_page > $end_page) $str .= '다음 '.PHP_EOL;
+
+ if ($cur_page < $total_page) {
+ $str .= '맨끝 '.PHP_EOL;
+ }
+
+ if ($str)
+ return "{$str} ";
+ else
+ return "";
+}
?>
\ No newline at end of file
diff --git a/shop/itemuselist.php b/shop/itemuselist.php
index 973bd2d17..729bf0435 100644
--- a/shop/itemuselist.php
+++ b/shop/itemuselist.php
@@ -54,106 +54,21 @@ $rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
-?>
-
-
+$sql = " select *
+ $sql_common
+ $sql_search
+ $sql_order
+ limit $from_record, $rows ";
+$result = sql_query($sql);
-
+$itemuselist_skin = G5_SHOP_SKIN_PATH.'/itemuselist.skin.php';
-
+if(!file_exists($itemuselist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemuselist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemuselist_skin);
+}
- ';
- ?>
-
-
-
-
-
-
-
-
- 작성자
-
- 작성일
-
- 평가점수
-
-
-
-
-
-
-
- 보기
-
-
-
- 0) echo '';
- if ($i == 0) echo '
자료가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
diff --git a/shop/list.php b/shop/list.php
index a0fc9289e..b09fb21e0 100644
--- a/shop/list.php
+++ b/shop/list.php
@@ -46,6 +46,11 @@ if ($is_admin)
echo '';
?>
+
+
+
@@ -116,9 +121,6 @@ if ($is_admin)
?>
+
+
+
\ No newline at end of file
diff --git a/skin/shop/basic/itemuse.skin.php b/skin/shop/basic/itemuse.skin.php
index c8559c120..5445bc312 100644
--- a/skin/shop/basic/itemuse.skin.php
+++ b/skin/shop/basic/itemuse.skin.php
@@ -79,44 +79,6 @@ $result = sql_query($sql);
1) {
- $str .= '
처음 '.PHP_EOL;
- }
-
- $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
- $end_page = $start_page + $write_pages - 1;
-
- if ($end_page >= $total_page) $end_page = $total_page;
-
- if ($start_page > 1) $str .= '
이전 '.PHP_EOL;
-
- if ($total_page > 1) {
- for ($k=$start_page;$k<=$end_page;$k++) {
- if ($cur_page != $k)
- $str .= '
'.$k.' 페이지 '.PHP_EOL;
- else
- $str .= '
열린 '.$k.' 페이지 '.PHP_EOL;
- }
- }
-
- if ($total_page > $end_page) $str .= '
다음 '.PHP_EOL;
-
- if ($cur_page < $total_page) {
- $str .= '
맨끝 '.PHP_EOL;
- }
-
- if ($str)
- return "
{$str} ";
- else
- return "";
-}
-
echo itemuse_page($config['cf_write_pages'], $page, $total_page, "./itemuse.php?it_id=$it_id&page=", "");
?>
diff --git a/skin/shop/basic/itemuselist.skin.php b/skin/shop/basic/itemuselist.skin.php
new file mode 100644
index 000000000..c8cfd08e8
--- /dev/null
+++ b/skin/shop/basic/itemuselist.skin.php
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ 작성자
+
+ 작성일
+
+ 평가점수
+
+
+
+
+
+
+
+ 보기
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
\ No newline at end of file