/home/mjc1/public_html/j3demo/skin/mypage/mypage02.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?php
Global $cinfo$ord_array$wish_array$wish_total_cnt$configshop;

if(
$ord_array[0]['midx']==''){ $ord_array null; } // 주문이 0건일때 페이징정보가 들어와서 주문이1건으로 표시되는부분 개선

$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<!-- 상단 카테고리 내 위치 -->
<style>
.my_order_title{background: #f9f9f9;padding:10px 30px;line-height: 30px;}
.my_order_title h4{font-size:14px;float:left;}
.my_order_title h4 span{font-size:18px;font-weight:600;}
.my_order_title a{color:#00aaa5;font-weight:600;}
.my_order_title:after{content: "";display: table;height: 0;clear: both;}
.my_order_table{padding: 20px;}
.my_order_table table td{padding:20px;border-left: 1px solid #ededed;width:235px;}
.my_order_table table td:first-child{width:800px;}
.my_order_table_title{height: 60px;font-size: 16px;font-weight: 600;padding-top: 0px;margin-left: 130px;margin-right: 20px;border-bottom: 1px solid gray;}
.my_order_table_pay{font-family: Verdana;font-size: 16px;font-weight: 600;color: red;margin-left: 130px;margin-top: 10px;}
.my_order_table_pay span{font-size:12px;color:#000;}
.my_order_table_btn{font-weight: normal;display: inline-block;text-align:center;width: 110px;font-size: 12px;line-height: 16px;padding: 5px 4px 4px;color: #fff;font-weight: bold;background-color: #00bbb6;border-radius:5px;}
.my_order_table_btn2{font-weight: normal;display: inline-block;text-align:center;width: 110px;font-size: 12px;line-height: 16px;padding: 5px 4px 4px;font-weight: bold;color: #00bbb6;border:1px solid #00bbb6;margin-top:7px;border-radius:5px;}
</style>
<?php }?>
<div class="class_skin_idx_<?php echo $sk_idx;?>">
<!-- 마이페이지 시작 { -->
        <div class="pt50">
            
            <!-- 회원정보 개요 시작 { -->
            <section>
                <h3 class="screen_out">회원정보 개요</h3>
                <div class="mb50 gray_line2">
                    <div class="relative gray_line6">
                        <article class="p20_50 height90 l_height50">
                            <h3 class="screen_out">고객정보</h3>
                            <dl>
                                <dt class="float_l mr50"><img src="<?php echo $j3_url;?>/img/sub01/icon_member.png" alt="사용자" class="mt_10 mr25"><span class="txt27 bold"><?php echo $cinfo['comp_name'];?></span>님</dt>
                                <dt class="float_l mr10 txt14 bold">주문/배송</dt>
                                <dd class="float_l mr50"><a class="cost4 custom2"><?php echo count($ord_array);?></a>건</dd>
                                <dt class="float_l mr10 txt14 bold">보유 포인트</dt>
                                <dd class="float_l mr50"><a class="cost4 custom2"><?php echo number_format($cinfo['cur_point']);?></a>점</dd>
                                <dt class="float_l mr10 txt14 bold">매출 할인율</dt>
                                <dd class="float_l mr50"><a class="cost4 custom2"><?php echo number_format($cinfo['sale_dcrate']);?></a>%</dd>
<?php if($configshop['danganame_view']=='1'){  ?>
                                <dt class="float_l mr10 txt14 bold">단가등급</dt>
                                <dd class="float_l"><a class="cost4 custom2"><?php echo get_multi_price_name($cinfo['ccode']);?></a></dd>
<?php }?>
                            </dl>
                        </article>
                        
                        <article class="relative p20_50 bg_gray">
                            <h3 class="screen_out">가입정보</h3>
                            <div class="width_full l_height25">
                                <label class="width50 bold" style="display:inline-block;">핸드폰</label>
                                <span><?php echo $cinfo['hpno'];?></span>
                            </div>
                            <div class="width_full l_height25">
                                <label class="width50 bold" style="display:inline-block;">E-Mail</label>
                                <span><?php echo $cinfo['email'];?></span>
                            </div>
                            <div class="width_full l_height25">
                                <label class="width50 bold" style="display:inline-block;">주소</label>
                                <span>(<?php echo $cinfo['zipcode'];?><?php echo $cinfo['addr_m']." ".$cinfo['addr_d'];?></span>
                            </div>
                            <div class="absolute ab_top7_right0">
                                <a class="float_l mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_white customer_edit_class">회원정보수정</a><a class="float_l box100_40 white align_c bold l_height40 bg_custom2">회원탈퇴</a>
                            </div>
                        </article>
                    </div>
                </div>
            </section>
            <!-- } 회원정보 개요 끝 -->


            <section class="mt40">
            <h2 class="relative mb10 txt14 align_1">최근 주문내역</h2>
            <div>
<?php
    
for($i=0;$i<count($ord_array);$i++){
        
$info $ord_array[$i];
        if(
$info['od_id']!=''){
            if(
$i>0){  $add_class1 "mt50"; } else { $add_class1 ""; }
?>
                <!--주문리스트(0219-06-03)-->
                <div class="gray_line2 <?php echo $add_class1;?>">
                    <div class="my_order_title"><h4>주문일 <span><?php echo substr($info['data_created'],0,10)?></span></h4><a href="orderview.php?idx=<?php echo $info['midx'];?>" class="float_r">주문상세보기 ></a></div>
                    <div class="my_order_table">
                        <!--주문내역-1-->
<?php
        $cart_array 
$info['row'];
        for(
$j=0;$j<count($cart_array);$j++){
            
$cinfo=$cart_array[$j];

            
$opt_name "";
            
$opt "";
            if(
$cinfo['opt_mode']!=''){
                
$opt_name $cinfo['opt_name'];
                if(
$cinfo['opt_mode']=='opt'){ $opt "(옵션)"; } else { $opt "(추가옵션)"; }
            }
            if(
$cinfo['ct_idx'] == NULL){ continue; }

?>
                        <div>
                            <table class="width_full gray_line2">
                                <tr>
                                    <td>
                                        <div>
                                            <div class="float_l"><a href="./item.php?code=<?php echo $cinfo['code1'];?>"><img src="<?php echo $thumb_file get_it_thumbnail($cinfo['sc_pcode'],$cinfo['pic1'],150,150);?>" class="width100 height100"></a></div>
                                            <div class="my_order_table_title">
                                                <a href="./item.php?code=<?php echo $cinfo['code1'];?>"><?php echo $cinfo['ct_name'];?></a><p class="mt5 gray bold txt13"><?php echo $opt.$opt_name;?></p>
                                                <p class="mt5 txt13"><?php echo $cinfo['norm'];?></p>
                                            </div>
                                            <div class="my_order_table_pay"><?php echo number_format($cinfo['price']); ?>원<span> / <?php echo number_format($cinfo['qty']); ?>개</span></div>
                                        </div>
                                    </td>
                                    <td>
                                        <input type='hidden' name='midx' value='<?php echo $info['midx'];?>'>
                                        <div class="align_c">
                                        <div class="bold l_height30">
                                            <?php echo    $info['od_state'];?><!--<div class="normal">금요일 05/31 도착</div>-->
                                        </div>
                                        <?php 
                                            
if($info['tracking_number']!='' && $info['ordstate']>='2'){
                                        
?>
                                            <div><a class="my_order_table_btn deli_detail_search">배송조회</a></div>
                                            <input type='hidden' id='deli_company' value='<?php echo $info['deli_company'];?>'>
                                            <input type='hidden' id='tracking_number' value='<?php echo $info['tracking_number'];?>'>
                                        <?php 
                                            

                                            if((
$info['ordstate']=='3' && $configshop['item_use_type']>0)){ // 배송완료일경우 후기 작성    
                                        
?>
                                            <div><a class="my_order_table_btn2 prod_use_class">후기작성</a></div>
                                        <?php
                                            
}
                                            if(
$info['ordstate']=='2'){
                                        
?>
                                            <div><a class="my_order_table_btn2 prod_deli_comp_class">수령완료</a></div>
                                        <?php
                                            
}
                                        
?>
                                            <!--<div><a href="#" class="my_order_table_btn2">교환신청</a></div>
                                            <div><a href="#" class="my_order_table_btn2">반품신청</a></div>-->
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div><!--/my_order_table-->
<?php
        
}
?>
                    </div>
                </div><!--/gray_line2-->
<?php
        
}
    }
?>
                <!--버튼-->
                <div class="mt20">
                    <div class="float_r">
                        <a class="float_l box150_40 custom2 align_c bold l_height40 custom_line2 bg_white orderlist_view_class">주문내역 더보기</a>
                    </div>
                </div>
            </div>
        </section>        

            <!-- 최근 위시리스트 시작 { -->
            <section class="mt40">
                <h2 class="relative mb10 txt14 align_l">최근 위시리스트</h2>
                <!-- 위시리스트 목록 시작 { -->
                <table class="width_full top_bold_line">
                    <colgroup>
                        <col class="">
                        <col class="width100">
                        <col class="width500 ellipsis">

                        <col class="width130">
                        <col class="width80">
                        <col class="width80">
                        <col class="width130">
                    </colgroup>
                    <thead>
                    <tr>
                        <th scope="col" class="p15_0 txt14 gray_line_b">이미지</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">유형</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">상품명</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">판매가</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">수량</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">순서</th>
                        <th scope="col" class="p15_0 txt14 gray_line_b">보관일시</th>
                    </tr>
                    </thead>

                    <tbody>
<?php
for($i=0;$i<count($wish_array);$i++){
    
$info $wish_array[$i];
    
$href="{$j3_shop_url}/item.php?code={$info['code1']}";
    if(
$info['idx']!=''){
?>
                    <tr>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><a><img src="<?php echo $thumb_file get_it_thumbnail($info['pcode'],$info['pic1'],80,80);?>" class="box80" alt=""></a></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><span class="red"><?php if($info['opt_mode']=='opt'){ echo "옵션"; } else if($info['opt_mode']=='addopt'){ echo "추가옵션"; }?></span></td>
                        <td class="p15_0 txt14 gray2 gray_line_b2"><a href='<?php echo $href;?>'><?php echo $info['pname']?></a></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><span class="cost3"><?php if($info['opt_mode']==''){ echo number_format($info['saleprice']); } else { echo number_format($info['optprice']); }?></span>원</td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['ws_qty']?></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['ws_seq']?></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['ws_time'];?></td>
                    </tr>
<?php
    
}
}
if(
$wish_total_cnt=='0'){
?>
                    <tr>
                        <td colspan="7" class="p100_0 txt14 gray2 align_c gray_line_b2">보관내역이 없습니다.</td>
                    </tr>
<?php
}
?>
                    </tbody>
                </table>
                <!-- } 위시리스트 목록 끝 -->

                <!--버튼-->
                <div class="mt20">
                    <div class="float_r">
                        <a class="float_l box150_40 custom2 align_c bold l_height40 custom_line2 bg_white wishlist_view_class"><span class="cost3 red"><?php echo $wish_total_cnt;?></span>개 전체보기</a>
                    </div>
                </div>
                <!--//버튼-->
            </section>
            <!-- } 최근 위시리스트 끝 -->
        </div>
        <!-- } 마이페이지 끝 -->
</div>