diff --git a/adm/shop_admin/configform.php b/adm/shop_admin/configform.php index 42c3b172c..d95eb2da3 100644 --- a/adm/shop_admin/configform.php +++ b/adm/shop_admin/configform.php @@ -557,10 +557,10 @@ $pg_anchor = '
쇼핑몰설정 > 배송비유형 설정에서 개별배송비로 설정해야만 아래 설정이 적용됩니다.
+쇼핑몰설정 > 배송비유형 설정보다 개별상품 배송비설정이 우선 적용됩니다.
| @@ -874,7 +875,7 @@ $(function(){ | -|||||||||||||||||||
@@ -910,31 +911,69 @@ $(function(){
-
-
\ No newline at end of file
diff --git a/extend/shop.extend.php b/extend/shop.extend.php
index c01ac62f2..eebf21927 100644
--- a/extend/shop.extend.php
+++ b/extend/shop.extend.php
@@ -23,13 +23,6 @@ if (G5_HTTPS_DOMAIN) {
define('G5_HTTPS_MSHOP_URL', G5_MSHOP_URL);
}
-// 미수금에 대한 QUERY 문
-// 테이블 a 는 주문서 ($g5['g5_shop_order_table'])
-// 테이블 b 는 장바구니 ($g5['g5_shop_cart_table'])
-define(_MISU_QUERY_, "
- ( od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount ) as misu,
- ( od_cart_coupon + od_coupon + od_send_coupon ) as couponamount
- ");
//------------------------------------------------------------------------------
// 쇼핑몰 상수 모음 끝
//------------------------------------------------------------------------------
diff --git a/install/install_db.php b/install/install_db.php
index f6999cc06..058c0c797 100644
--- a/install/install_db.php
+++ b/install/install_db.php
@@ -272,7 +272,7 @@ if($g5_shop_install) {
de_point_days = '7',
de_card_pg = 'kcp',
de_kcp_mid = '',
- de_send_cost_case = '상한',
+ de_send_cost_case = '차등',
de_send_cost_limit = '20000;30000;40000',
de_send_cost_list = '4000;3000;2000',
de_hope_date_use = '0',
@@ -399,7 +399,8 @@ $dir_arr = array (
$data_path.'/file',
$data_path.'/log',
$data_path.'/member',
- $data_path.'/session'
+ $data_path.'/session',
+ $data_path.'/tmp'
);
for ($i=0; $i| 장바구니에 담긴 상품이 없습니다. | '.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'];
?>
-
-
-
-
-
-
-
- 상품 정보- - - -
-
-
-
-
-
-
-
-
-
-
- 상품 정보 고시- - -
사용후기- - - - -상품문의- - - - -배송정보- - - -교환/반품- - - -관련상품- - -
- set_mobile(true);
- $list->set_query($sql);
- echo $list->run();
- ?>
-
- 등록된 상품문의- - '; - ?> - -
-
-
-
-
-
-
-
-
- 문의내용
- - -
- 답변
- - - 상품문의가 없습니다. '; - ?> -
-
- 상품문의 쓰기 새 창
- 더보기
-
-
-
-
\ 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');
-?>
-
-
-
-
-
-
-
\ 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';
-상품문의 쓰기+$itemqaform_skin = G5_MSHOP_SKIN_PATH.'/itemqaform.skin.php'; - -
+if(!file_exists($itemqalist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemqalist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemqalist_skin);
+}
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
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;
-?>
-
-
-
-
-
-
-
-
-
-
자료가 없습니다. '; - ?> -등록된 사용후기- - '; - ?> - -
-
-
-
-
-
-
-
-
- 사용후기가 없습니다. '; - ?> -
- 사용후기 쓰기 새 창
- 더보기
-
-
-
-
\ 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');
-?>
-
-
-
-
-
-
-
\ 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';
-사용후기 쓰기+$itemuseform_skin = G5_MSHOP_SKIN_PATH.'/itemuseform.skin.php'; - -
+if(!file_exists($itemuselist_skin)) {
+ echo str_replace(G5_PATH.'/', '', $itemuselist_skin).' 스킨 파일이 존재하지 않습니다.';
+} else {
+ include_once($itemuselist_skin);
+}
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
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)
?>
';
-?>
-
-
-
-
-
- 등록된 상품이 없습니다. '; -?> diff --git a/mobile/shop/list.sub.php b/mobile/shop/list.sub.php deleted file mode 100644 index d02189f03..000000000 --- a/mobile/shop/list.sub.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/mobile/shop/listcategory.inc.php b/mobile/shop/listcategory.inc.php deleted file mode 100644 index aafcff0f7..000000000 --- a/mobile/shop/listcategory.inc.php +++ /dev/null @@ -1,33 +0,0 @@ -'.$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/shop/maintype10.inc.php b/mobile/shop/maintype10.inc.php
deleted file mode 100644
index de9b6ffc4..000000000
--- a/mobile/shop/maintype10.inc.php
+++ /dev/null
@@ -1,33 +0,0 @@
-';
-?>
-
-
-
-
-
- 등록된 상품이 없습니다. '; -?> diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index e09ac3772..8f83be467 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -205,7 +205,7 @@ ob_start(); alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php'); } else { // 배송비 계산 - $send_cost = get_sendcost($tot_sell_price, $s_cart_id); + $send_cost = get_sendcost($s_cart_id); } // 복합과세처리 diff --git a/mobile/shop/orderformupdate.php b/mobile/shop/orderformupdate.php index a59ae46e1..148ffa150 100644 --- a/mobile/shop/orderformupdate.php +++ b/mobile/shop/orderformupdate.php @@ -187,7 +187,7 @@ if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) { } // 배송비가 상이함 -$send_cost = get_sendcost($row['od_price'], $tmp_cart_id); +$send_cost = get_sendcost($tmp_cart_id); $tot_sc_cp_price = 0; if($is_member && $send_cost > 0) { diff --git a/mobile/shop/orderinquiry.sub.php b/mobile/shop/orderinquiry.sub.php index ad64fca90..0facac7f4 100644 --- a/mobile/shop/orderinquiry.sub.php +++ b/mobile/shop/orderinquiry.sub.php @@ -21,9 +21,8 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가 $sql = " select *, (od_cart_coupon + od_coupon + od_send_coupon) as couponprice from {$g5['g5_shop_order_table']} - where a.mb_id = '{$member['mb_id']}' - group by a.od_id - order by a.od_id desc + where mb_id = '{$member['mb_id']}' + order by od_id desc $limit "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) 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 @@ + + + + + + +상품 정보+ + + +
+
+
+
+
+
+
+
+
+
+
+ 상품 정보 고시+ + +
사용후기+ + + +상품문의+ + + +배송정보+ + + +교환/반품+ + + +관련상품+ + +
+ set_mobile(true);
+ $list->set_query($sql);
+ echo $list->run();
+ ?>
+
+
등록된 상품이 없습니다. \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 @@ + + + + + +등록된 상품문의+ + '; + ?> + +상품문의가 없습니다. '; + ?> +
+
+ 상품문의 쓰기 새 창
+ 더보기
+
+
+
+
\ 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 @@
+
+
+
+
+
+상품문의 쓰기+ + +
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
자료가 없습니다. '; + ?> +등록된 사용후기+ + '; + ?> + +
+
+
+
+
+
+
+
+
+ 사용후기가 없습니다. '; + ?> +
+ 사용후기 쓰기 새 창
+ 더보기
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+사용후기 쓰기+ + +
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
\ 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/shop/list.sort.php b/mobile/skin/shop/basic/list.sort.skin.php
similarity index 91%
rename from mobile/shop/list.sort.php
rename to mobile/skin/shop/basic/list.sort.skin.php
index 8327ab84f..a659142ca 100644
--- a/mobile/shop/list.sort.php
+++ b/mobile/skin/shop/basic/list.sort.skin.php
@@ -11,6 +11,8 @@ if($skin)
$sct_sort_href .= '&sort=';
?>
+
+
상품 정렬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 @@ + + + + +
";
- 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]";
-?>
-
-
- Home
-
-
+'.$row['ca_name'].'';
+ }
+}
+else
+ $str = $g5['title'];
+
+//if ($it_id) $str .= " > $it[it_name]";
+?>
+
+
+
+
+ Home
+
+
diff --git a/plugin/okname/bin/okname b/plugin/okname/bin/okname
old mode 100644
new mode 100755
diff --git a/shop/cart.php b/shop/cart.php
index 9f688c65b..52489a331 100644
--- a/shop/cart.php
+++ b/shop/cart.php
@@ -126,7 +126,7 @@ include_once('./_head.php');
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 "";
+ 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);
+}
- ';
- ?>
-
-
-
-
-
-
-
-
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)
?>
0) {
diff --git a/shop/orderinquiry.sub.php b/shop/orderinquiry.sub.php
index 753e2bb23..e14526926 100644
--- a/shop/orderinquiry.sub.php
+++ b/shop/orderinquiry.sub.php
@@ -25,7 +25,6 @@ $sql = " select *,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g5['g5_shop_order_table']}
where mb_id = '{$member['mb_id']}'
- group by od_id
order by od_id desc
$limit ";
$result = sql_query($sql);
diff --git a/skin/shop/basic/item.form.skin.php b/skin/shop/basic/item.form.skin.php
index ff51bf9ea..a71a7d147 100644
--- a/skin/shop/basic/item.form.skin.php
+++ b/skin/shop/basic/item.form.skin.php
@@ -209,23 +209,31 @@ $sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SH
|
|||||||||||||||||
| - | - - - - | +||||||||||||||||||

자료가 없습니다.
'; + ?> +