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
|
<?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>
</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>--> <?php include($j3_shop_path."/sns_id_sync.php");?> </div> </article> </div> </div> </section> <!-- } 회원정보 개요 끝 -->
<!-- 최근 주문내역 시작 { --> <section class="mt40"> <h2 class="relative mb10 txt14 align_l">최근 주문내역</h2> <!-- 주문 내역 목록 시작 { --> <table class="width_full top_bold_line"> <colgroup> <col class="width200"> <col class="width200"> <col class="width80"> <col class=""> <col class=""> <col class=""> <col class=""> <col class="width200"> </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> <th scope="col" class="p15_0 txt14 gray_line_b">상태</th> </tr> </thead> <tbody> <?php for($i=0;$i<count($ord_array);$i++){ $info = $ord_array[$i]; ?> <tr> <td class="p15_0 txt14 align_c gray_line_b2"> <input type='hidden' name='midx' value='<?php echo $info['midx'];?>'> <a class='order_view_class'><?php echo $info['od_id'];?></a> </td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['data_created'];?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['sum_qty'];?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo number_format($info['ord_price']);?>원</td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo number_format($info['deposit_price']+$info['use_point']);?>원</td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"> <?php if($info['deposit']=='0'){ // 미입금일 경우 echo number_format($info['wdeposit_price']); } else { //echo "0"; 입금상태라도 계산된 미입금을 보여줌 echo number_format($info['wdeposit_price']); } ?>원 </td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['pay_type'];?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"> <span class="custom1 bold"><?php echo $info['od_state'];?></span><br> <?php if(($info['ordstate']=='3' && $configshop['item_use_type']>0)){ // 배송완료일경우 후기 작성 ?> <button class="mt5 box100_30 white align_c bold l_height30 line0 bg_custom1 prod_use_class">후기작성</button> <?php } if($info['ordstate']=='2'){ ?> <button class="mt5 box100_30 white align_c bold l_height30 line0 bg_custom2 prod_deli_comp_class">수령완료</button> <?php } ?> </td> </tr> <?php } if(count($ord_array)==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 orderlist_view_class">주문내역 더보기</a> </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>
|