/home/mjc1/public_html/j3demo/shop/mypage.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
include_once("./_common.php");
include_once(
$j3_shop_path."/shop_header.php");
if(
$id_ccode!='' && $id_ccode>0){ 
    
//$cinfo = customer_info_get($id_ccode); 
    
$get_row "Y";
    
$ord_array customer_order_list($id_ccode""15);
    
$wish_array prod_wish_list_get($id_ccode""15);
    
$wish_total_cnt $wish_array[0]['total_count'];
} else {
    
alert("회원만 가능한 페이지 입니다. 로그인하시기 바랍니다.","{$j3_shop_url}/login.php");
}

if(
$app_id=='ryunen' || $app_id=='lulucosmetic'){ // 루루코스매틱만 단가등급 보임
    
$configshop['danganame_view'] = "1";
}
?>
<div id="container">
    <div id="wrapper">

<?php
    skin_module_show
("mypage",$sample_idx); // 마이페이지 스킨을 불러온다.
?>

    </div><!-- #wrapper -->
</div><!-- #container -->
<script>
$(function(){
    $(".member_out_class").click(function(){
        alert('준비중입니다. 고객센터에 문의하세요.')    
    });

    $(".customer_edit_class").click(function(){ // 회원정보 수정
        document.location.href='<?php echo "{$j3_shop_url}/register_form.php";?>';    
    });

    $(".orderlist_view_class").click(function(){ // 주문내역 더보기
        document.location.href='<?php echo "{$j3_shop_url}/order.php";?>';    
    });

    $(".wishlist_view_class").click(function(){ // 위시리스트 더보기
        document.location.href='<?php echo "{$j3_shop_url}/wish.php";?>';    
    });

    $(".order_view_class").click(function(){ // 주문상세보기
        $idx = $(this).closest("tr").find("input[name='midx']").val();
        document.location.href='orderview.php?idx='+$idx;
    });

    $(".prod_use_class").click(function(){ // 상품 후기 작성
        $idx = $(this).closest("tr").find("input[name='midx']").val();
        $.get("order_prod_use_reg.inc.php?idx="+$idx,function(rtn){
            $("#modal_member_box").html(rtn).dialog({
                resizable: true, height:900, width:820, modal: true, title:"상품후기 [작성]",
                buttons: {
                    저장: function() {
                        prod_use_save();
                    },
                    닫기: function() {
                        $( this ).dialog( "close" );
                    }
                }
            });
        })
    });

    $(".prod_deli_comp_class").click(function(){ // 고객 수령완료 처리
        if(confirm('수령완료 처리 하시겠습니까?')){
            $idx = $(this).closest("tr").find("input[name='midx']").val();
            form_data = "mode=deli_comp&idx="+$idx;
            $.ajax({type:"post", url:"ajax.orderlist_process.php", data:form_data, async:false, dataType : "xml", 
                success:function(xml){    
                    var v_mode = $(xml).find("mode").text();
                    var v_mode_ok = $(xml).find("mode_ok").text();
                    var v_msg = $(xml).find("msg").text();
                    if(v_mode_ok!='Y'){
                        alert(v_msg);
                    } else {
                        document.location.reload();
                    }
                },
                error:function(rtn,status,error){    alert(error);        }
            });
        }
    });

    $(".deli_detail_search").click(function(){
        $deli_company = $("#deli_company").val();
        $tracking_number = $("#tracking_number").val();
        alert("네이버 배송조회를 통해서 조회합니다. 검색창에서 조회버튼을 누르세요.");
        window.open("https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=1&ie=utf8&query="+$deli_company+"+"+$tracking_number,"deli_search","width=1024, height=768, scollbars=yes");
    });
});

function modal_close(){
    setTimeout(function(){
        $("#modal_member_box").dialog("close");
    },500);
    
}
</script>
<?php
include_once($j3_shop_path."/shop_footer.php");
?>
<div id="modal_member_box" title="거래처수정" style="display:none;width:100%; height:100%; padding-top:3px;padding-left:3px;background-color:#FFFFFF;position:relative;"></div>