From 51b7b830f9bd5367c539cf71614bb520f359ab22 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 24 Sep 2013 09:22:46 +0900 Subject: [PATCH 01/11] =?UTF-8?q?okname=20=EB=AA=A8=EB=93=88=20=ED=8D=BC?= =?UTF-8?q?=EB=AF=B8=EC=85=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/okname/bin/okname | Bin 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 plugin/okname/bin/okname diff --git a/plugin/okname/bin/okname b/plugin/okname/bin/okname old mode 100644 new mode 100755 From d66a59b2e77e7bdf9c28715e8b9a95e540f3926f Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 24 Sep 2013 11:34:06 +0900 Subject: [PATCH 02/11] =?UTF-8?q?=EC=A3=BC=EB=AC=B8=EA=B8=88=EC=95=A1=20?= =?UTF-8?q?=ED=95=A9=EA=B3=84=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/orderlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php index 54f4233cf..e2f81c882 100644 --- a/adm/shop_admin/orderlist.php +++ b/adm/shop_admin/orderlist.php @@ -219,7 +219,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌 Date: Tue, 24 Sep 2013 11:35:28 +0900 Subject: [PATCH 03/11] =?UTF-8?q?=EC=A3=BC=EB=AC=B8=EA=B8=88=EC=95=A1=20?= =?UTF-8?q?=ED=95=A9=EA=B3=84=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/orderlist2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adm/shop_admin/orderlist2.php b/adm/shop_admin/orderlist2.php index 45ed838c7..8c23432ee 100644 --- a/adm/shop_admin/orderlist2.php +++ b/adm/shop_admin/orderlist2.php @@ -124,11 +124,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌 $od_mobile = '(M)'; $tot_itemcount += $row['od_cart_count']; - $tot_orderprice += $row['od_cart_price']; + $tot_orderprice += ($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); $tot_ordercancel += $row['od_cancel_price']; $tot_receiptprice += $row['od_receipt_price']; $tot_couponprice += $row['couponprice']; - $tot_misu += $row['misu']; + $tot_misu += $row['od_misu']; $uid = md5($row['od_id'].$row['od_time'].$row['od_ip']); ?> From de944935842fdeae4b01449a51b7798690bbc5d5 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 24 Sep 2013 13:07:09 +0900 Subject: [PATCH 04/11] =?UTF-8?q?#300=20=EB=B0=B0=EC=86=A1=EB=B9=84=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/configform.php | 9 ++- adm/shop_admin/itemform.php | 101 ++++++++++++++++++++--------- adm/shop_admin/ordercartupdate.php | 2 +- install/install_db.php | 2 +- lib/shop.lib.php | 77 ++++++++++++---------- mobile/shop/cart.php | 2 +- mobile/shop/orderform.php | 2 +- mobile/shop/orderformupdate.php | 2 +- shop/cart.php | 2 +- shop/cartupdate.php | 4 ++ shop/orderform.php | 2 +- shop/orderformupdate.php | 2 +- skin/shop/basic/item.form.skin.php | 36 ++++++---- 13 files changed, 150 insertions(+), 93 deletions(-) diff --git a/adm/shop_admin/configform.php b/adm/shop_admin/configform.php index 42c3b172c..71e6e4a43 100644 --- a/adm/shop_admin/configform.php +++ b/adm/shop_admin/configform.php @@ -621,18 +621,17 @@ $pg_anchor = '
    - 상한으로 설정한 경우, 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n없음으로 설정한 경우, 배송비상한가 및 배송비를 무시하며 착불의 경우도 없음으로 설정됩니다.\n개별배송비로 설정한 경우, 개별 상품의 배송비 설정이 적용됩니다.", 50); ?> + 금액별차등으로 설정한 경우, 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n무료배송으로 설정한 경우, 배송비상한가 및 배송비를 무시하며 착불의 경우도 무료배송으로 설정합니다.\n상품별로 배송비 설정을 한 경우 상품별 배송비 설정이 우선 적용됩니다.\n예를 들어 무료배송으로 설정했을 때 특정 상품에 배송비가 설정되어 있으면 주문시 배송비가 부과됩니다.", 50); ?> - ; 로 구분합니다.\n\n예를 들어 20000원 미만일 경우 4000원, 30000원 미만일 경우 3000원 으로 사용할 경우에는 배송비상한가를 20000;30000 으로 입력하고 배송비를 4000;3000 으로 입력합니다.", 50); ?> + ; 로 구분합니다.\n\n예를 들어 20000원 미만일 경우 4000원, 30000원 미만일 경우 3000원 으로 사용할 경우에는 배송비상한가를 20000;30000 으로 입력하고 배송비를 4000;3000 으로 입력합니다.", 50); ?> 원 diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index 1852ff54b..af6891f3e 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -847,7 +847,7 @@ $(function(){

    배송비

    -

    쇼핑몰설정 > 배송비유형 설정에서 개별배송비로 설정해야만 아래 설정이 적용됩니다.

    +

    쇼핑몰설정 > 배송비유형 설정보다 개별상품 배송비설정이 우선 적용됩니다.

    @@ -861,10 +861,11 @@ $(function(){ - + - +
    @@ -874,7 +875,7 @@ $(function(){
    @@ -910,31 +911,69 @@ $(function(){ - - \ 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']; ?> - -
    - - - + -
    -
    - - - - if($thumb_count == 0) echo '
      '; - $thumb = get_it_thumbnail($it['it_img'.$i], 280, 280); - - if(!$thumb) - continue; - - echo '
    • '; - echo ''.$thumb.''; - echo '
    • '; - - $thumb_count++; - } - if ($thumb_count > 0) echo '
    '; - ?> - -
    - -
    -

    상품간략정보 및 구매기능

    -
    - - -
    - - 고객선호도 - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - ?> - - - - - - - - - - - - - - -
    제조사
    원산지
    브랜드
    모델
    판매가격전화문의
    시중가격
    판매가격 - 원 - -
    재고수량
    - 점 -
    - - - -
    - - -
    -

    선택옵션

    - - - - - - - - -
    -
    - - - -
    -

    추가옵션

    - - - - - - - - -
    -
    - - - - -
    - -
      -
    • - - - - - - - (+0원) -
      - - - -
      -
    • -
    - - -
    - -
    - - - - -
    -
    - -
    - - - - - -
    -

    상품 정보

    - - - -
    - -
    - - - -
    - -
    - - -

    상품 정보 고시

    - - - - - - - - - $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; // 시작 열을 구함 -?> - -
    -
    - 전체보기 - - +$sql = " select a.*, b.it_name + $sql_common + $sql_search + $sql_order + limit $from_record, $rows "; +$result = sql_query($sql); - - - -
    -
    +$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; -?> - - -
    -

    등록된 사용후기

    - - '; - ?> - -
  • - -
    -
    작성자
    -
    -
    작성일
    -
    -
    선호도
    -
    별<?php echo $is_star; ?>개
    -
    - - -
  • - - = 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; // 시작 열을 구함 -?> - -
    -
    - 전체보기 - - +$sql = " select * + $sql_common + $sql_search + $sql_order + limit $from_record, $rows "; +$result = sql_query($sql); - - - -
    -
    +$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); +} - - - '; - ?> -
  • - - - -
    -

    - -
    -
    작성자
    -
    -
    작성일
    -
    -
    평가점수
    -
    별<?php echo $star; ?>개
    -
    - - - -
    -
    - -
  • - 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 0000000000000000000000000000000000000000..3422bbad95c21c2577822ef828ce92d00464fac1 GIT binary patch literal 535 zcmV+y0_gpTP)*fvg@CNxx1BidY z3~a|`n1PWoLs?ZVoPXugC3FKpKoN-Zfw-Fq8iV$@43v_B1m}bM_Zgx>0vHbN--}CW zEG!HIajB358YU_x24;Wz`jtUkLXv@(mlv0EQ0z;C3{=OZA~iFMAtXE!%+}J;Vd$SS zok3nv311|sfWnX;m+aP!8^A8JcXS4OdF!SP4EOKe!DpZl$b}zq$(}uPn&H}&D`58P z*Do1%Y}>-{6=(q-@ET;`O$O?L`yc~%P{}Y*7JLeG;chAzI0ZTDl>zZz3Je3q)LamQ zSxp&~$QfP$@fRR=M_2jd#}8l(-($FN?kvOeXV0)12GZvS#Lv--uRc(;193I7>c@{B zf-w#NGAsyMPGT*-YJk`u>IFgo6q$zT;g79=-2_$a2Q6$Bq1oykC>EgxtOw##*lYm^ ZFaQ~Gby_R|k7fV>002ovPDHLkV1mel+!O!+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8c8db682b549c7b216ac65783127ec3c3e4c2be3 GIT binary patch literal 512 zcmV+b0{{JqP)g!Fvuz>fiX8X4>o0rK%5WrGAIV^aT&-3HQ@87j|_XZZDe@%cTmYNP!@a&bK!0(7&rwv>y-iVUkVJn1H^NY4ZHv~ z6a&0_^P1txg|pxo#{s?oaS$lmp%-6$plAo;Y82I<2Au6`|P*RKz@m8n7OSPhqnKAix0rByIvoHSmG}0000CrJO!-nERs!PJFc-E!Z36>g5fO%>(h7!C$B!|bKX-<~!O@xF z_|YR^!<^mR89cmvz*tsJ9;Sr{i0fcp<^~}^@87>* z`AZkhGkgKM9t$`Ea-k@?C@8FQGg25t#l#rqEL_Ua)>O~%>*r5mVqFLnh99xXh)YN? z7@L@ZW3r^Yib2o7kQf8sfegHcE}EH}&tMOX*#rCcGGwGAFl^hh2^{N0fSVu#j|1^{ zn25Qh6@!zrE5oYgOBsHA{|@%*{5iA0G0wumg4cCGe1QqdSPT=rbNdzp3o9#wmk&Jg zGbku3G8{g*9~}F5z+8~S7@?(&G!Wl_CQz^ejzCw619QoP`}Y{`-oDLn`qT+Ru2Tik zj7Y^7sJL3kKso@WB~KvUjb1pchZaYFNiYnQ+7n@hVJp6-1F-`raEUPN6cAe>hd-_Y x7F1vwLW`t8Xt}2Xb@_d$LF2Lw0YD- zYie3!UU=?sXB>w~J0AEYGxyH<&w1QA!sGM<*w`LombgHqh$LUn5$}kHMB2{LWwUmc zxJ8WH?2U8gh$Z40v0#2cv^ZQRp7as3+63{ExY|$f5;4!yb!u+n4sp(!vcfn17SZKG zC>({)=Z8m<&}p|($S>n}vx#VY6t(pVn$2JO7<)S7QQAVJQBoHG41G4TCAa3X>dx`Vr=;Dbawzsy>Znd!St)_`8qhs2hJh%^g z-EIVA8E%iq>^7$*Mn9*ysA0Wc55a>W<9@r*K)2h~t}{!E=yp0-Q&;Gv4YS)2F(cY_ zR9(qK5Cj}aO(PPEL-P6X<#X29U(S56iW$d>2@YFVS*;dcJwra1!Nk-FlvY(E!d+~L z3D)g)ywu$Tls4;R>i9|Q9}YSZ{LTbFSyvBFP9YpqP+C**`o&YIg*=W@*Bw}n3BDnW z0~HK~wYsr%S@Bt_*^lqFj*FtWV|2u#$S>~ctD8SIAdsVeOqdPGgD4kQweIg=cUfQp zpEeO9%MYj~z@qf}{rI_AN1a|$t(13*?hyOeKfNMxnRvu*muHcdu0=e)b zJ_A6S%Zu}gweK~^g*UOu{QC71Op8lMFtD)`9WnPoF5H1l=Jd&v4AL^P48kHJ3=5X7 zWO(`FImDu$zZkY{*~D;g|6UBw0P#~6s0%?E-4$7O#nMIKbO>@GFE1|`!$V$G6`O%m zkP~(p5dTFF{QRsmh8^3sFg$q$gGRCwBA{Qv(y0|;#2u$lo0Z~}1@ z5c>hK0T9bU#V-T#aUfm;#JiC-cm{-m&0t}`1mQs33&he`tmN9Nm2wzJ2=&x9HLRyA02sJVMt3%7RZ}F5HbSd*|jghVM{A zSlQSZ_yq*PSWsAmLC4Spn;WJeXT35Y{)-;?NA~Y#c>LfV!?&+r;NpLQE(D38+YiKZ zVd)SAEz6OExeR1m5GdOr8wdh@plAo;Y82IX^0;F*b3N9P{n@G!d4NQt=@rR5o*ACU'; + $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 = ''; +} +?> + + + +
    + + + + +
    +
    + + + '; + $thumb = get_it_thumbnail($it['it_img'.$i], 280, 280); + + if(!$thumb) + continue; + + echo '
  • '; + echo ''.$thumb.''; + echo '
  • '; + + $thumb_count++; + } + if ($thumb_count > 0) echo ''; + ?> + +
    + +
    +

    상품간략정보 및 구매기능

    +
    + + +
    + + 고객선호도 + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ + ?> + + + + + + + + + + + + + + +
    제조사
    원산지
    브랜드
    모델
    판매가격전화문의
    시중가격
    판매가격 + 원 + +
    재고수량
    + 점 +
    + + + +
    + + +
    +

    선택옵션

    + + + + + + + + +
    +
    + + + +
    +

    추가옵션

    + + + + + + + + +
    +
    + + + + +
    + +
      +
    • + + + + + + + (+0원) +
      + + + +
      +
    • +
    + + +
    + +
    + + + + + + +
    +
    + +
    + + + + \ 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"; + +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 @@ + + + + + +
      +

      등록된 사용후기

      + + '; + ?> + +
    • + +
      +
      작성자
      +
      +
      작성일
      +
      +
      선호도
      +
      별<?php echo $is_star; ?>개
      +
      + + +
    • + + = 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 @@ + + + + + +
      +
      + 전체보기 + + + + + + +
      +
      + +
      + + + + '; + ?> +
    • + + + +
      +

      + +
      +
      작성자
      +
      +
      작성일
      +
      +
      평가점수
      +
      별<?php echo $star; ?>개
      +
      + + + +
      +
      + +
    • + 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]"; -?> - -
      - Home - -
      +'.$row['ca_name'].''; + } +} +else + $str = $g5['title']; + +//if ($it_id) $str .= " > $it[it_name]"; +?> + + + +
      + Home + +
      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 ""; + 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); -
      -
      - 전체보기 - - +$itemqalist_skin = G5_SHOP_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/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); +} - '; - ?> -
    • - - - -
      -

      - -
      -
      작성자
      -
      -
      작성일
      -
      -
      평가점수
      -
      별<?php echo $star; ?>개
      -
      - - - -
      -
      - -
    • - 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 ""; - 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 @@ + + + + + +
      +
      + 전체보기 + + + + + +
      +
      + +
      + + + + '; + ?> +
    • + + + +
      +

      + +
      +
      작성자
      +
      +
      작성일
      +
      +
      평가점수
      +
      별<?php echo $star; ?>개
      +
      + + + +
      +
      + +
    • + 0) echo ''; + if ($i == 0) echo '

      자료가 없습니다.

      '; + ?> +
      + + + + + \ No newline at end of file From aa1e9fa9c45c5497792726878029adda0d14c11d Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 24 Sep 2013 16:17:37 +0900 Subject: [PATCH 10/11] =?UTF-8?q?misu=20query=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/shop.extend.php | 7 ------- 1 file changed, 7 deletions(-) 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 - "); //------------------------------------------------------------------------------ // 쇼핑몰 상수 모음 끝 //------------------------------------------------------------------------------ From c5fc1319f8171aeee3c601eea46b4d6cad2f6f17 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 24 Sep 2013 16:18:21 +0900 Subject: [PATCH 11/11] =?UTF-8?q?=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=A3=BC=EB=AC=B8=EB=82=B4=EC=97=AD=20=EC=BF=BC?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/list.skin.10.php | 42 -------------------------------- mobile/shop/list.sort.php | 24 ------------------ mobile/shop/list.sub.php | 17 ------------- mobile/shop/maintype10.inc.php | 33 ------------------------- mobile/shop/orderinquiry.sub.php | 5 ++-- shop/orderinquiry.sub.php | 1 - 6 files changed, 2 insertions(+), 120 deletions(-) delete mode 100644 mobile/shop/list.skin.10.php delete mode 100644 mobile/shop/list.sort.php delete mode 100644 mobile/shop/list.sub.php delete mode 100644 mobile/shop/maintype10.inc.php diff --git a/mobile/shop/list.skin.10.php b/mobile/shop/list.skin.10.php deleted file mode 100644 index 68d6adafc..000000000 --- a/mobile/shop/list.skin.10.php +++ /dev/null @@ -1,42 +0,0 @@ -'; -?> -
    • - - - - - - - - - - -

      - - - - -
      -
      - - - -
      -
    • - 1) echo '
    '; - -if($i == 1) echo '

    등록된 상품이 없습니다.

    '; -?> diff --git a/mobile/shop/list.sort.php b/mobile/shop/list.sort.php deleted file mode 100644 index 8327ab84f..000000000 --- a/mobile/shop/list.sort.php +++ /dev/null @@ -1,24 +0,0 @@ - - - -
    -

    상품 정렬

    - - -
    - \ No newline at end of file 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/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 @@ -'; -?> -
  • - - - - - - - - -
    - - - -
    -
  • - 1) echo ''; - -if($i == 1) echo '

    등록된 상품이 없습니다.

    '; -?> 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/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);