/home/mjc1/public_html/ryunen/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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?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(){
    $(".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");
    });

    $(".customer_coupon_class").click(function(){
        $.get("mypage_coupon.inc.php",function(rtn){
            $("#modal_member_box").html(rtn).dialog({
                resizable: true, height:600, width:600, modal: true, title:"쿠폰등록/리스트",
                buttons: {
                    닫기: function() {
                        $( this ).dialog( "close" );
                    }
                }
            });
        });
    });

    $(".mem_out_class").click(function(){
        if(confirm('정말로 회원 탈퇴하시겠습니까?')){    
            $.get("mypage_memout.inc.php",function(rtn){
                $("#modal_member_box").html(rtn).dialog({
                    resizable: true, height:480, width:600, modal: true, title:"회원탈퇴",
                    buttons: {
                        닫기: function() {
                            $( this ).dialog( "close" );
                        }
                    }
                });
                $(".member_out_class").css("margin-left","35%");
            });
        }
    });

    $(".customer_point_class").click(function(){
        point_search("","1");
    });
});

function point_search(v_cn,v_page){
    var sti_val = $("form[name='point_search_form'] select[name='sti'] option:selected").val();
    if(sti_val==undefined){ sti_val = "remarks"; }
    $.get("mypage_point.inc.php?mode=search&stc="+v_cn+"&page="+v_page,function(rtn){
        $("#modal_member_box").html(rtn).dialog({
            resizable: true, height:600, width:620, modal: true, title: "포인트 [리스트]",
            buttons: {
                닫기: function() {
                    $( this ).dialog( "close" );
                }
            }
        });
    });    
}

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>