diff --git a/mobile/shop/cart.php b/mobile/shop/cart.php new file mode 100644 index 000000000..125db590c --- /dev/null +++ b/mobile/shop/cart.php @@ -0,0 +1,20 @@ + + +
+ + + +
+ + \ No newline at end of file diff --git a/mobile/shop/cartsub.inc.php b/mobile/shop/cartsub.inc.php new file mode 100644 index 000000000..e14858305 --- /dev/null +++ b/mobile/shop/cartsub.inc.php @@ -0,0 +1,306 @@ + + +
+ + + + + + + + + +삭제'; +else if ($s_page == 'orderinquiryview.php') + echo ''; +?> + + + +0) + $good_info .= chr(30); + $good_info .= "seq=".($i+1).chr(31); + $good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31); + $good_info .= "good_name=".addslashes($row['it_name']).chr(31); + $good_info .= "good_cntx=".$row['ct_qty'].chr(31); + $good_info .= "good_amtx=".$row['ct_amount'].chr(31); + } + + if ($i==0) { // 계속쇼핑 + $continue_ca_id = $row['ca_id']; + } + + if ($s_page == 'cart.php' || $s_page == 'orderinquiryview.php') { // 링크를 붙이고 + $a1 = ''; + $a2 = ''; + $image = get_it_image($row['it_id'].'_s', 70, 70, ''); + } else { // 붙이지 않고 + $a1 = ''; + $a2 = ''; + $image = get_it_image($row['it_id'].'_s', 50, 50); + } + + $it_name = $a1 . stripslashes($row['it_name']) . $a2 . '
'; + if ($row['it_opt1'] || $row['it_opt2'] || $row['it_opt3'] || $row['it_opt4'] || $row['it_opt5'] || $row['it_opt6']) { // 상품에 옵션이 있다면 + $it_name .= '
'.print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']).'
'; + } + + $point = $row['ct_point'] * $row['ct_qty']; + $sell_amount = $row['ct_amount'] * $row['ct_qty']; +?> + + + + + + '; + else + echo ''; + ?> + + + + + + 삭제'; + else if ($s_page == 'orderinquiryview.php') + echo ''; + ?> + + + 0) + $send_cost = $row['od_send_cost']; + } +} // for 끝 + +if ($i == 0) echo ''; +?> + +
상품이미지상품명수량판매가소계포인트상태
+ + + + + + + + + '.$row['ct_qty'].''.$row['ct_status'].'
장바구니에 담긴 상품이 없습니다.
+ + 외 '.$goods_count.'건'; ?> + + 0) +{ +?> + +
+ 배송비 + 원 +
+ + + + 0) { +?> + +
+ 총계 + 원 점 +
+ + + + +
+ + 쇼핑 계속하기 + + +

장바구니의 상품을 주문하시려면 주문하기를 클릭하세요. 비우기는 장바구니의 상품을 모두 비웁니다.

+ 쇼핑 계속하기 + 주문하기 + 수량변경 + 비우기 + +
+ + +
+ + + + diff --git a/mobile/shop/item.php b/mobile/shop/item.php new file mode 100644 index 000000000..b70725778 --- /dev/null +++ b/mobile/shop/item.php @@ -0,0 +1,737 @@ + 0) { + for ($i=1; $i<=$tv_idx; $i++) { + if (get_session("ss_tv[$i]") == $it_id) { + $saved = true; + break; + } + } +} + +if (!$saved) { + $tv_idx++; + set_session("ss_tv_idx", $tv_idx); + set_session("ss_tv[$tv_idx]", $it_id); +} +// 오늘 본 상품 저장 끝 + +// 조회수 증가 +if ($_COOKIE['ck_it_id'] != $it_id) { + sql_query(" update {$g4['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가 + set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장 +} + +$g4['title'] = $it['it_name'].' > '.$it['ca_name']; + +include_once('./_head.php'); + +// 분류 위치 +// HOME > 1단계 > 2단계 ... > 6단계 분류 +$ca_id = $it['ca_id']; +include G4_SHOP_PATH.'/navigation1.inc.php'; + +// 이 분류에 속한 하위분류 출력 +include G4_SHOP_PATH.'/listcategory.inc.php'; + +if ($is_admin) + echo '
상품 관리
'; + +$himg = G4_DATA_PATH.'/item/'.$it_id.'_h'; +if (file_exists($himg)) + echo '
'; + +// 상단 HTML +echo '
'.stripslashes($it['it_mobile_head_html']).'
'; + +// 이전 상품보기 +$sql = " select it_id, it_name from {$g4['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 {$g4['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 {$g4['shop_item_relation_table']} a + left join {$g4['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 ($i == 5) $sit_pvi_last = 'class="li_last"'; + echo '
  • '; + if (file_exists(G4_DATA_PATH.'/item/'.$it_id.'_l'.$i)) + { + echo get_large_image($it_id.'_'.$i, $it['it_id'], false); + if ($i==1 && file_exists(G4_DATA_PATH.'/item/'.$it_id.'_s')) + echo ''; + echo '>'; + } + echo '
  • '; + } + if ($i > 1) echo ''; + ?> +
    + + + +
    +

    상품간략정보 및 구매기능

    +
    + + +
    + + 고객선호도 별개 + + 페이스북에 공유 + 트위터에 공유 + 구글플러스에 공유 +
    + + + + + + + + + + + + + + + + + + + + + + '.PHP_EOL; + echo ''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.PHP_EOL; + } + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + */ + ?> + + + + + + + + + + + + + + + + +
    제조사
    원산지
    '.$str.'
    판매가격전화문의
    + 원 +
    + 원 + +
    재고수량 개
    + 점 + +
    수량 + + + +
    + + + + +
    +
    + +
    + + + + + +
    +

    상품 정보

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

    상품 정보 고시

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

    사용후기

    + + + +
    + +
    +

    상품문의

    + + + +
    + + + +
    +

    배송정보

    + + + +
    + + + + +
    +

    교환/반품

    + + + +
    + + +
    +

    관련상품

    + + +
    + 이 상품과 관련된 상품이 없습니다.

    '; + ?> +
    +
    + + + + + + +
    + + diff --git a/mobile/shop/list.php b/mobile/shop/list.php new file mode 100644 index 000000000..ef8ca778d --- /dev/null +++ b/mobile/shop/list.php @@ -0,0 +1,102 @@ +분류 관리'; +?> + +
    + + '.stripslashes($ca['ca_mobile_head_html']).'
    '; + + include G4_MSHOP_PATH.'/listcategory3.inc.php'; + + // 상품 출력순서가 있다면 + if ($sort != "") { + $order_by = $sort . ' '.$sortodr. ' , '; + } + + // 상품 (하위 분류의 상품을 모두 포함한다.) + $sql_list1 = " select * "; + $sql_list2 = " order by $order_by it_order, it_id desc "; + + // 하위분류 포함 + // 판매가능한 상품만 + $sql_common = " from {$g4['shop_item_table']} + where (ca_id like '{$ca_id}%' + or ca_id2 like '{$ca_id}%' + or ca_id3 like '{$ca_id}%') + and it_use = '1' "; + + $error = '

    등록된 상품이 없습니다.

    '; + + // 리스트 유형별로 출력 + $list_file = G4_SHOP_PATH.'/'.$ca['ca_mobile_skin']; + if (file_exists($list_file)) { + $list_mod = $ca['ca_mobile_list_mod']; + $list_row = $ca['ca_mobile_list_row']; + $img_width = $ca['ca_mobile_img_width']; + $img_height = $ca['ca_mobile_img_height']; + + include G4_MSHOP_PATH.'/list.sub.php'; + include G4_MSHOP_PATH.'/list.sort.php'; + + $sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items "; + $result = sql_query($sql); + + echo '
    '; + include $list_file; + echo '
    '; + + } + else + { + $i = 0; + $error = '

    '.$ca['ca_mobile_skin'].' 파일을 찾을 수 없습니다.
    관리자에게 알려주시면 감사하겠습니다.

    '; + } + + if ($i==0) + { + echo '
    '.$error.'
    '; + } + ?> + + '.stripslashes($ca['ca_mobile_tail_html']).''; +?> + + + + +\n"; +?> diff --git a/mobile/shop/list.skin.10.php b/mobile/shop/list.skin.10.php new file mode 100644 index 000000000..635f3a7dc --- /dev/null +++ b/mobile/shop/list.skin.10.php @@ -0,0 +1,47 @@ += 2) { // 1줄 이미지 : 2개 이상 + if ($i%$list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 + else if ($i%$list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째 + else $sct_last = ''; + } else { // 1줄 이미지 : 1개 + $sct_last = 'sct_clear'; + } + + $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); + $sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$row['it_id']); + $sns_send .= '&title='.urlencode(cut_str($sns_title, 100)); + + if ($i == 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; +?> diff --git a/mobile/shop/list.sort.php b/mobile/shop/list.sort.php new file mode 100644 index 000000000..75ae24e32 --- /dev/null +++ b/mobile/shop/list.sort.php @@ -0,0 +1,26 @@ + + +
    +

    상품 정렬

    +
    + 상품 개 +
    + + +
    \ No newline at end of file diff --git a/mobile/shop/list.sub.php b/mobile/shop/list.sub.php new file mode 100644 index 000000000..c549d7803 --- /dev/null +++ b/mobile/shop/list.sub.php @@ -0,0 +1,19 @@ + 태그 폭 +$td_width = (int)(100 / $list_mod); + +$sql = "select COUNT(*) as cnt $sql_common "; +$row = sql_fetch($sql); +$total_count = $row['cnt']; + +// 전체 페이지 계산 +$total_page = ceil($total_count / $items); +// 페이지가 없으면 첫 페이지 (1 페이지) +if ($page == "") $page = 1; +// 시작 레코드 구함 +$from_record = ($page - 1) * $items; +?> diff --git a/mobile/shop/maintype10.inc.php b/mobile/shop/maintype10.inc.php new file mode 100644 index 000000000..d14bfa64c --- /dev/null +++ b/mobile/shop/maintype10.inc.php @@ -0,0 +1,41 @@ += 2) { // 1줄 이미지 : 2개 이상 + if ($i%$list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 + else if ($i%$list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째 + else $sct_last = ''; + } else { // 1줄 이미지 : 1개 + $sct_last = 'sct_clear'; + } + + $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); + $sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$row['it_id']); + $sns_send .= '&title='.urlencode(cut_str($sns_title, 100)); + + if ($i == 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; +?> diff --git a/mobile/shop/mypage.php b/mobile/shop/mypage.php new file mode 100644 index 000000000..9318cde54 --- /dev/null +++ b/mobile/shop/mypage.php @@ -0,0 +1,119 @@ + + +

    + + + + + + +
    님의 마이페이지입니다. + "; } ?> + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
       보유포인트 : 점쪽지함: 쪽지보기
       주소: 회원권한:
       연락처: 최종접속일시:
       E-mail: 회원가입일시:


    + + + + + + + +
    + + +
    + + + + + + + + + + + + +0) + echo ""; + + $image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']); + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; +} + +if ($i == 0) + echo ""; +?> + +
    상품명보관일시
    $image".stripslashes($row['it_name'])."$row[wi_time]
    보관 내역이 없습니다.
    + + + \ No newline at end of file diff --git a/mobile/shop/settle_kcp.inc.php b/mobile/shop/settle_kcp.inc.php new file mode 100644 index 000000000..65106c822 --- /dev/null +++ b/mobile/shop/settle_kcp.inc.php @@ -0,0 +1,29 @@ + diff --git a/mobile/shop/wishlist.php b/mobile/shop/wishlist.php new file mode 100644 index 000000000..6cbbfa0df --- /dev/null +++ b/mobile/shop/wishlist.php @@ -0,0 +1,148 @@ + + +

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + '; + ?> + +
    선택이미지상품명보관일시삭제
    + + 품절 + + + + + + + + + 삭제
    보관함이 비었습니다.
    +
    + +
    + 장바구니 담기 + 주문하기 +
    +
    + + + + \ No newline at end of file