/home/mjc1/public_html/j3demo/skinm/mypage/mypage01.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
<?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 }?>
<style>
    .posab_pr20 {position:absolute;right:20px;}
</style>    
<div class="class_skin_idx_<?php echo $sk_idx;?>">
<!-- 마이페이지 시작 { -->
    <h1 class="p15_0 align_c">마이페이지</h1>
        <!-- 가입정보 -->
        <section class="pb10 p0_10 gray_line_b2">
            <h3 class="screen_out">가입정보</h3>
            <p class="p7_0 p0_10 txt13 l_height40 gray_line">
                <img src="<?php echo $cur_img_url;?>/icon_member.png" alt="사용자" class="mr10 height40"><span class="txt16 bold"><?php echo $cinfo['comp_name'];?></span>님
            </p>
            <div class="mt_1 p7_0 p0_10 bg_gray gray_line">
                <table class="gray3 txt13 bold">
                    <tr>
                        <th class="pl5 width80 align_l">핸드폰</th>
                        <td><?php echo $cinfo['hpno'];?></td>
                    </tr>
                    <tr>
                        <th class="pl5 width80 align_l">E-Mail</th>
                        <td><?php echo $cinfo['email'];?></td>
                    </tr>
                    <tr>
                        <th class="pl5 width80 align_l">주소</th>
                        <td class="">(<?php echo $cinfo['zipcode'];?><?php echo $cinfo['addr_m']." ".$cinfo['addr_d'];?></td>
                    </tr>
                </table>
                <div class="mt7 height32">
                    <a class="block float_l width_49 height30 custom2 txt14 align_c l_height30 bg_white custom_line2" href="register_form.php">회원정보수정</a>
                    <a class="block float_r width_49 height32 white txt14 align_c l_height32 bg_custom2 member_out_class">회원탈퇴</a>
                </div>
            </div>
        </section>
        <!-- //가입정보 -->

        <!-- 고객정보 -->
        <section class="p0_10 separate_line gray_line_b2">
            <h3 class="screen_out">고객정보</h3>
            <ul class="pt15 pb10 height50">
                <li class="float_l width_triple gray_line_r2">
                    <label class="block txt13 bold align_c l_height24">주문/배송</label>
                    <p class="align_c"><em class="custom2 txt17 bold"><?php echo count($ord_array);?></em>건</p>
                </li>
                <li class="float_l width_triple gray_line_r2">
                    <label class="block txt13 bold align_c l_height24">보유포인트</label>
                    <p class="align_c"><em class="custom2 txt17 bold"><?php echo number_format($cinfo['cur_point']);?></em>점</p>
                </li>
                <li class="float_l width_triple">
                    <label class="block txt13 bold align_c l_height24">매출할인율</label>
                    <p class="align_c"><em class="custom2 txt17 bold"><?php echo number_format($cinfo['sale_dcrate']);?></em>%</p>
                </li>
            </ul>
<?php if($configshop['danganame_view']=='1'){  ?>
            <ul class="pt15 pb10 height50">
                <li class="float_l width_triple gray_line_r2">
                    <label class="block txt13 bold align_c l_height24">단가등급</label>
                    <p class="align_c"><em class="custom2 txt17 bold"><?php echo get_multi_price_name($cinfo['ccode']);?></em></p>
                </li>
<?php ?>
        </section>
        <!-- //고객정보 -->

        <!-- 최근주문내역 -->
        <section class="p15_0 p0_10 gray_line_b2 separate_line">
            <h3 class="pb10 txt14 black_line_b">최근주문내역<h3>
<?php
    
for($i=0;$i<count($ord_array);$i++){
        
$info $ord_array[$i];
?>
            <dl class="txt13 gray_line_b">
                <dt class="mb5 height40 bg_gray">
                    <input type='hidden' name='midx' value='<?php echo $info['midx'];?>'>
                    <em class="pl10 txt14 l_height40"><a><?php echo $info['od_id'];?></a></em>
<?php
        
if(($info['ordstate']=='3' && $configshop['item_use_type']>0)){ // 배송완료일경우 후기 작성
?>
                    <a class="float_r mt7 mr5 p0_5 gray2 txt13 l_height24 gray_line bg_white prod_use_class">후기작성</a>
<?php
        
}
        if(
$info['ordstate']=='2'){
?>
                    <a class="float_r mt7 mr5 p0_5 gray2 txt13 l_height24 gray_line bg_gray4 white prod_deli_comp_class">수령완료</a>
<?php
        
}
?>
                    <a class="float_r mt7 mr5 p0_5 gray2 txt13 l_height24 gray_line order_view_class">주문상세보기</a>
                </dt>
                <dd class="p0_10">
                    <em class="custom1"><?php echo    $info['od_state'];?></em>
                    <span class="float_r gray"><?php echo $info['data_created'];?></span>
                </dd>
                <dd class="mb5 p0_10">
                    <em><?php echo $info['sum_qty'];?>개상품</em>
                    <span class="gray posab_pr20"><?php echo number_format($info['ord_price']);?>원</span>
                </dd>
            </dl>
<?php 
    
}
?>
            <div class="mt7 width_full">
                <a class="block height30 txt13 align_c l_height30 bg_custom1 orderlist_view_class"><span class="white bold">주문내역 더보기</span></a>
            </div>
        </section>
        <!-- //최근주문내역 -->
        
        <!-- 최근위시리스트 : 몇개까지 보여줄껀지... -->
        <section class="p15_0 p0_10 gray_line_b2 separate_line wish_list_section">
            <h3 class="pb10 mb10 txt14 black_line_b">최근위시리스트<h3>
            <!-- 첫줄 : 메인5번째 -->
            <!-- ul : 넓이값 = li넓이 * 한줄 상품갯수 + 우측마진값 * (한줄 상품갯수 - 1) -->
            <!-- ul : 높이값 = 높이 * 줄수 + 하단마진 * 줄수 -->
            <ul class="float_c" style="width:100%;height:508px;">
                <!-- 높이값 = li넓이(이미지넓이) + 80px -->
<?php
$cnt 
0;
for(
$i=0;$i<count($wish_array);$i++){
    
$info $wish_array[$i];
    
$href="{$j3_shop_url}/item.php?code={$info['code1']}";
    if(
$info['idx']!=''){
        
$img_width '150';
?>
                <li class="relative float_l mr10 mb10" style="width:<?php echo $img_width;?>px;height:<?php echo $img_width+90;?>px;">
                    <div class="sct_img"><a href='<?php echo $href;?>'><img src="<?php echo $thumb_file get_it_thumbnail($info['pcode'],$info['pic1'],$img_width,$img_width);?>" alt="제품이미지" style=""></a></div>
                    <div class="p0_5 pt5 txt13 bold"><a href='<?php echo $href;?>'><?php echo $info['pname']?></a></div>
                    <div class="p0_5 gray txt12"><a href='<?php echo $href;?>'><?php echo $info['remarks']?></a></div>
                    <div class="absolute ab_bot5_left p0_5"><a href='<?php echo $href;?>'>
                        <span class="mr5 gray2 txt10"><?php if($info['opt_mode']=='opt'){ echo "옵션"; } else if($info['opt_mode']=='addopt'){ echo "추가옵션"; }?></span>
                        <em class="txt16 bold"><?php if($info['opt_mode']==''){ echo number_format($info['saleprice']); } else { echo number_format($info['optprice']); }?></em><span class="txt10">원</span>
                    </a></div>
                </li>
<?php
        $cnt
++;
    }
}
?>
            </ul>
            <div class="mt7 width_full">
                <a class="block height30 txt13 align_c l_height30 bg_custom1 wishlist_view_class"><span class="white bold">위시리스트 더보기</span></a>
            </div>
            </div>
        </section>
        <!-- //최근위시리스트 -->
</div>
<script>
    section_list_left_align(".wish_list_section","wh");
</script>