+
+ /* ============================================================================== */
+ /* = 1. 취소 요청 정보 입력 폼(cancel_info) = */
+ /* = -------------------------------------------------------------------------- = */
+ /* = 취소 요청에 필요한 정보를 설정합니다. = */
+ /* = -------------------------------------------------------------------------- = */
+?>
+
+
+
+
diff --git a/mobile/shop/kcp/order_approval.php b/mobile/shop/kcp/order_approval.php
new file mode 100644
index 000000000..7a70fa156
--- /dev/null
+++ b/mobile/shop/kcp/order_approval.php
@@ -0,0 +1,56 @@
+
+setCharSet( $charSetType );
+
+ $payService->setAccessCredentialType( $accessLicense, $signature, $timestamp );
+ $payService->setBaseRequestType( $detailLevel, $requestApp, $requestID, $userAgent, $version );
+ $payService->setApproveReq( $escrow, $orderID, $paymentAmount, $paymentMethod, $productName, $returnUrl, $siteCode );
+
+ $approveRes = $payService->approve();
+
+ printf( "%s,%s,%s,%s", $payService->resCD, $approveRes->approvalKey,
+ $approveRes->payUrl, $payService->resMsg );
+
+ }
+ catch (SoapFault $ex )
+ {
+ printf( "%s,%s,%s,%s", "95XX", "", "", "연동 오류 (PHP SOAP 모듈 설치 필요)" );
+ }
+?>
\ No newline at end of file
diff --git a/mobile/shop/kcp/order_approval_form.php b/mobile/shop/kcp/order_approval_form.php
new file mode 100644
index 000000000..ceb7fdd9e
--- /dev/null
+++ b/mobile/shop/kcp/order_approval_form.php
@@ -0,0 +1,319 @@
+
+ /* ============================================================================== */
+ /* = PAGE : 결제 요청 PAGE = */
+ /* = -------------------------------------------------------------------------- = */
+ /* = 이 페이지는 주문 페이지를 통해서 결제자가 결제 요청을 하는 페이지 = */
+ /* = 입니다. 아래의 ※ 필수, ※ 옵션 부분과 매뉴얼을 참조하셔서 연동을 = */
+ /* = 진행하여 주시기 바랍니다. = */
+ /* = -------------------------------------------------------------------------- = */
+ /* = 연동시 오류가 발생하는 경우 아래의 주소로 접속하셔서 확인하시기 바랍니다.= */
+ /* = 접속 주소 : http://testpay.kcp.co.kr/pgsample/FAQ/search_error.jsp = */
+ /* = -------------------------------------------------------------------------- = */
+ /* = Copyright (c) 2010.05 KCP Inc. All Rights Reserved. = */
+ /* ============================================================================== */
+?>
+
+ /* ============================================================================== */
+ /* = 환경 설정 파일 Include = */
+ /* = -------------------------------------------------------------------------- = */
+ /* = ※ 필수 = */
+ /* = 테스트 및 실결제 연동시 site_conf_inc.php파일을 수정하시기 바랍니다. = */
+ /* = -------------------------------------------------------------------------- = */
+
+ include "../settle_kcp.inc.php"; // 환경설정 파일 include
+?>
+
+ /* = -------------------------------------------------------------------------- = */
+ /* = 환경 설정 파일 Include END = */
+ /* ============================================================================== */
+?>
+
+ /* kcp와 통신후 kcp 서버에서 전송되는 결제 요청 정보*/
+ $req_tx = $_POST[ "req_tx" ]; // 요청 종류
+ $res_cd = $_POST[ "res_cd" ]; // 응답 코드
+ $tran_cd = $_POST[ "tran_cd" ]; // 트랜잭션 코드
+ $ordr_idxx = $_POST[ "ordr_idxx" ]; // 쇼핑몰 주문번호
+ $good_name = $_POST[ "good_name" ]; // 상품명
+ $good_mny = $_POST[ "good_mny" ]; // 결제 총금액
+ $buyr_name = $_POST[ "buyr_name" ]; // 주문자명
+ $buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호
+ $buyr_tel2 = $_POST[ "buyr_tel2" ]; // 주문자 핸드폰 번호
+ $buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 E-mail 주소
+ $use_pay_method = $_POST[ "use_pay_method" ]; // 결제 방법
+ $enc_info = $_POST[ "enc_info" ]; // 암호화 정보
+ $enc_data = $_POST[ "enc_data" ]; // 암호화 데이터
+ $rcvr_name = $_POST[ "rcvr_name" ]; // 수취인 이름
+ $rcvr_tel1 = $_POST[ "rcvr_tel1" ]; // 수취인 전화번호
+ $rcvr_tel2 = $_POST[ "rcvr_tel2" ]; // 수취인 휴대폰번호
+ $rcvr_mail = $_POST[ "rcvr_mail" ]; // 수취인 E-Mail
+ $rcvr_zipx = $_POST[ "rcvr_zipx" ]; // 수취인 우편번호
+ $rcvr_add1 = $_POST[ "rcvr_add1" ]; // 수취인 주소
+ $rcvr_add2 = $_POST[ "rcvr_add2" ]; // 수취인 상세주소
+
+ /* 주문폼에서 전송되는 정보 */
+ $ipgm_date = $_POST[ "ipgm_date" ]; // 입금마감일
+ $settle_method = $_POST[ "settle_method" ]; // 결제방법
+ $good_info = $_POST[ "good_info" ]; // 에스크로 상품정보
+ $bask_cntx = $_POST[ "bask_cntx" ]; // 장바구니 상품수
+ $tablet_size = $_POST[ "tablet_size" ]; // 모바일기기 화면비율
+
+ /*
+ * 기타 파라메터 추가 부분 - Start -
+ */
+ $param_opt_1 = $_POST[ "param_opt_1" ]; // 기타 파라메터 추가 부분
+ $param_opt_2 = $_POST[ "param_opt_2" ]; // 기타 파라메터 추가 부분
+ $param_opt_3 = $_POST[ "param_opt_3" ]; // 기타 파라메터 추가 부분
+ /*
+ * 기타 파라메터 추가 부분 - End -
+ */
+
+ /* kcp 데이터 캐릭터셋 변환 */
+ if($res_cd != '') {
+ $good_name = iconv('euc-kr', 'utf-8', $good_name);
+ $buyr_name = iconv('euc-kr', 'utf-8', $buyr_name);
+ $rcvr_name = iconv('euc-kr', 'utf-8', $rcvr_name);
+ $rcvr_add1 = iconv('euc-kr', 'utf-8', $rcvr_add1);
+ $rcvr_add2 = iconv('euc-kr', 'utf-8', $rcvr_add2);
+ }
+
+ switch($settle_method)
+ {
+ case '신용카드':
+ $pay_method = 'CARD';
+ $ActionResult = 'card';
+ break;
+ case '계좌이체':
+ $pay_method = 'BANK';
+ $ActionResult = 'acnt';
+ break;
+ case '휴대폰':
+ $pay_method = 'MOBX';
+ $ActionResult = 'mobx';
+ break;
+ case '가상계좌':
+ $pay_method = 'VCNT';
+ $ActionResult = 'vcnt';
+ break;
+ default:
+ $pay_method = '';
+ $ActionResult = '';
+ break;
+ }
+?>
+
+
+
+
+
+
+ $nav_ca_id = $ca_id;
+ include G4_SHOP_PATH.'/navigation1.inc.php';
+
+ // 상단 HTML
+ echo '
'.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 '등록된 상품이 없습니다.
';
+?>
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 @@
+
+
+등록된 상품이 없습니다.
';
+?>
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 @@
+
+
+
+
+
검색어 | 검색 결과 건
+
+ 0) {
+ if (trim($search_str)) {
+ // 인기검색어
+ $sql = " insert into {$g4['popular_table']}
+ set pp_word = '$search_str',
+ pp_date = '".G4_TIME_YMD."',
+ pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
+ sql_query($sql, FALSE);
+ }
+
+ unset($save); // 임시 저장 배열
+ $sql = " select a.ca_id,
+ a.it_id
+ $sql_common
+ order by a.ca_id, a.it_id desc ";
+ $result = sql_query($sql);
+ for ($i=0; $row=mysql_fetch_array($result); $i++) {
+ if ($save['ca_id'] != $row['ca_id']) {
+ if ($save['ca_id']) {
+ write_search_save($save);
+ unset($save);
+ }
+ $save['ca_id'] = $row['ca_id'];
+ $save['cnt'] = 0;
+ }
+ $save['it_id'][$save['cnt']] = $row['it_id'];
+ $save[cnt]++;
+ }
+ }
+
+ mysql_free_result($result);
+ write_search_save($save);
+
+ function write_search_save($save)
+ {
+ global $g4, $search_str , $default , $image_rate , $cart_dir;
+
+ $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
+ $row = sql_fetch($sql);
+
+ // 김선용 2006.12 : 중복 하위분류명이 많으므로 대분류 포함하여 출력
+ $ca_temp = "";
+ if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
+ {
+ $sql2 = " select ca_name from $g4[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
+ $row2 = sql_fetch($sql2);
+ $ca_temp = '
'.$row2['ca_name'].' > ';
+ }
+ ?>
+
+ 상품개
+
+
+ 이미지
+ 상품명
+ 판매가격
+ 포인트
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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/shop.head.php b/mobile/shop/shop.head.php
new file mode 100644
index 000000000..88edbfca3
--- /dev/null
+++ b/mobile/shop/shop.head.php
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 작게
+ 기본
+ 크게
+
\ No newline at end of file
diff --git a/mobile/shop/shop.tail.php b/mobile/shop/shop.tail.php
new file mode 100644
index 000000000..3183dfdad
--- /dev/null
+++ b/mobile/shop/shop.tail.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+