/home/mjc1/public_html/j3demo/skinm/footer/hd_float90.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
<?php
Global $config$configshop;
$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
strpos($_SERVER['SCRIPT_NAME'],"orderform.php")>|| strpos($_SERVER['SCRIPT_NAME'],"cart.php")>|| strpos($_SERVER['SCRIPT_NAME'],"orderresult.php")>0){
    
$right_show "N";
} else {
    
$right_show "Y";
}

if(
$right_show=="Y"){

    if(
$skin_css!=''){
        echo 
$skin_css;
    } else {
?>
<style>
/*우측 장바구니*/
#right_wrap {position:fixed;top:0px;bottom:0px;z-index:9999;width:248px;border-left:1px solid #44444a;background: #fff;}
.right_wrap{right:0px;transition: All 1s ease; -webkit-transition: All 1s ease; -moz-transition: All 1s ease; -o-transition: All 1s ease;}

/*우측-주문리스트*/
#right_wrap .right_cart_list  {position: relative;width: 100%;height: 100%;overflow-y: auto;overflow-x: hidden;padding:10px;}
#right_wrap .right_cart_list h2{color:#e75348;}
#right_wrap .right_cart_list ul li{overflow: hidden;width: 364px;position:relative;}
#right_wrap .right_cart_list ul li:first-child{margin-top:8px;}
#right_wrap li .cart_info{overflow: hidden;float: left;width: 225px;padding:10px 5px;border-top: 1px dotted #909090;background:#fff;}
#right_wrap li:last-child .cart_info{border-top: 1px dotted #909090;border-bottom: 0;}
#right_wrap .cart_info_img{float:left}
#right_wrap .cart_info_img img{width:50px;height:50px;}
.cart_info_pro{float:left;padding-left: 15px;}
.cart_info_pro a{width:150px;display: block;text-decoration: none;color: #565656;font-size: 12px;font-weight: 400;text-align: left; overflow: hidden; white-space: normal;word-wrap: break-word;display: -webkit-box; -webkit-line-clamp: 2;-webkit-box-orient: vertical;height:30px;}
#right_wrap .cart_info_img .cart_info_pay{margin-left: 15px;  height: 20px;width: 100px;padding: 0 25px;vertical-align: top; position: relative;display: inline-block;border: 1px solid #c1c1c1;}
.cart_info_pay{height: 20px;width: 60px;padding: 0 25px;vertical-align: top;position: relative;display: inline-block;border: 1px solid #c1c1c1;}
.cart_info_pay input{font-size: 13px;text-align: center; text-indent: 0;vertical-align: top;height: 100%;border: 0;width: 100%;font-weight: 600;}
.cart_info_pay .pay_minus{border: none; top: 0;bottom: 0;width: 20px;position: absolute;    left: 0;border-right: 1px solid #e2e2e2;background: url('../img/sct_minus.png')#efefef no-repeat;    margin: 0;background-size:20px;}
.cart_info_pay .pay_plus{ border: none; top: 0;bottom: 0;width: 20px;position: absolute;    right: 0;border-left: 1px solid #e2e2e2; background: url('../img/sct_plus.png')#efefef no-repeat;    margin: 0;background-size:20px;}
.cart_info_close{position:absolute;top:45px; left:200px; width: 30px;height: 22px;margin: 0;padding: 0;background: #e75348;border: none;line-height:22px;color:#fff;font-size:12px;margin-top:-4px;}
.cart_info_close img{margin-top: -3px;}
/*우측-하단*/
.right_cart_total{background: #fff;text-align:center;padding-bottom:30px;padding-right:15px;}
.right_cart_total p{padding: 10px 0;border-top: 3px solid #000;font-weight:600;text-align:left;}
.right_cart_total span{float:right;font-weight:600;color:#e75348;font-size:18px;    font-family: Verdana;}
.right_cart_total em{float:right;font-size:14px;color:#e75348;}
.total_order{width: 95%;height: 40px;font-size: 16px;font-weight: 600;background: #e75348;color: #fff;border: none;border-radius:5px;}
.right_cart_footer{position:absolute;bottom:0;background:#eee;}


#right_wrap .top_btn {width: 248px;text-align: center;background: #444;color: #fff;font-weight:600;font-size:14px;padding: 10px 0;border:none;}
#right_wrap .top_btn span {line-height:48px;font-weight:600;}

.cart_close{position: absolute;left: -46px;top: 50%;cursor: pointer;width:46px;height:96px;background:url('<?php echo $cur_img_url;?>/right_box_close.png')}

.mini{right:-250px;transition: All 1s ease; -webkit-transition: All 1s ease; -moz-transition: All 1s ease; -o-transition: All 1s ease; }
.mini .cart_close{background:url('<?php echo $cur_img_url;?>/right_box_open.png')}
.right_cart_none{overflow: hidden;margin-top: 8px;text-align:center;padding:150px 0 0;font-size:14px;position:relative;}
#right_cart_id { min-height:100px; }
</style>
<?php }?>
    <!--우측-주문리스트-->
<div id="right_wrap" class="class_skin_idx_<?php echo $sk_idx;?> right_wrap <?php if($_COOKIE['right_cart_view']=='N'){ echo "mini"; }?>">
    <div class="right_cart_list">
        <h2>주문리스트</h2>
        <!--주문이 없을경우-->
        <div class="right_cart_none none">
            "최근 주문한<br>정보가 없습니다."
        </div>
        <!--주문할경우-->
        <ul id='right_cart_id'></ul>

        <!--총금액-->
        <div class="right_cart_total">
            <p>총금액<em>원</em><span class='right_tot_amt'>0</span</p>
            <!--주문하기-->
        </div>
        <button class="total_order">주문하기</button>
    </div>
    
    <!--우측메뉴 숨기기 버튼-->
    <div class="cart_close"><a href="#"></a></div>
</div>
<script>
$(function(){
    $(".cart_close").click(function () {
        $(".right_wrap").toggleClass('mini');
        removeClass = false;
        if($(".right_wrap").hasClass("mini")){
            setsave("right_cart_view","N",31);
        } else {
            setsave("right_cart_view","Y",31);
        }
    });

    $(".total_order").click(function(){
        if(confirm("주문하시겠습니까?")){
            form_data = "order_mode=all";
            $.ajax({type:"post", url:"../shop/ajax.cart_order_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.href='orderform.php?order_mode=all'
                }
            },
            error:function(rtn,status,error){    alert(error);        }
        });
        }
    });

    right_cart_get(); // 이것관련 파일은 common.js에 잇음
});

</script>
<?php
// right_show = "Y"
?>