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']; ?> - -
- - - + -
-
- - - - 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 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 = ''; +} +?> + + + +
    + + + + +
    +
    + + + '; + $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 "