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
|
<?php Global $config, $configshop; $cur_img_url = $j3_img_url."/".$sk['sk_img_path'];
if(strpos($_SERVER['SCRIPT_NAME'],"orderform.php")>0 || strpos($_SERVER['SCRIPT_NAME'],"cart.php")>0 || strpos($_SERVER['SCRIPT_NAME'],"orderresult.php")>0){ $right_show = "N"; } else { $right_show = "Y"; }
if($right_show=="Y"){
/*$where2 = " and a.od_id = '{$od_id}' and a.ct_state in (0)"; $list_num = 9999; if($_COOKIE['page_line']!=''){ $list_num = $_COOKIE['page_line']; } if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $cart_array = prod_cart_list_get($id_ccode, $where2, $page, $list_num);*/
if(strpos($_SERVER['SCRIPT_NAME'],'index.php')>0){ $index_main = "Y"; } $stv = $_SESSION['stv']; $stv_img = $_SESSION['stv_img']; $stv_url = $_SESSION['stv_url'];
//_pr($_SESSION);
if($configshop['header_fixed']>=2){ $configshop['header_fixed']; }
if($skin_css!=''){ echo $skin_css; } else { ?> <style> #right_wrap {position:fixed;top:0px;bottom:0px;z-index:9999;width:248px;height:100%;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 .main_login {padding:20px 0;color:#44444a;text-align:center;background:#eee;height: 145px;border-bottom: 3px solid #44444a;} #right_wrap .main_login p {margin:10px 0 15px;font-size:14px;color:#44444a;} #right_wrap .main_login h1 {margin:0 0 10px;font-size:1.25em;color:#44444a;} #right_wrap .main_login .main_login_btn {display:block;margin:0 auto;width:180px;height:28px;line-height:28px;color:#FFF;background:#e75348} /*우측-로그아웃*/ #right_wrap .main_logout {padding:20px 0;color:#44444a;text-align:center;background:#eee;height: 145px;border-bottom: 3px solid #44444a;} #right_wrap .main_logout p {margin:10px 0 15px;font-size:13px;color:#44444a;} #right_wrap .main_logout h1 {margin:0 0 10px;font-size:1.25em;color:#44444a;} #right_wrap .main_logout .main_logout_btn {display:block;margin:0 auto;width:180px;height:28px;line-height:28px;color:#FFF;background:#44444a} /*우측-주문리스트*/ #right_wrap .right_cart_list {padding:10px 0 10px 10px;/*max-height:535px;*/position:relative;height:100%;} #right_wrap .right_cart_list h2{color:#e75348;} #right_wrap .right_cart_list ul{max-height: 420px;overflow-y: auto; overflow-x: hidden;} #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: 1px dotted #909090;} #right_wrap .cart_info_img{float:left} #right_wrap .cart_info_img img{width:50px;height:50px;} .cart_info_pro{float:left;width:145px;padding-left: 15px;} .cart_info_pro a{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: 100px;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('<?php echo $cur_img_url;?>/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('<?php echo $cur_img_url;?>/sct_plus.png')#efefef no-repeat; margin: 0;background-size:20px;} .cart_info_close{position: absolute;top: 5px; right: 145px;width: 20px;height: 20px;margin: 0;padding: 0;background: #e75348;border: none;line-height:20px;color:#fff;display:none;} .cart_info:hover .cart_info_close{display:block;} .cart_info_close img{margin-top: -3px;} /*우측-하단*/ .right_cart_total{background: #fff;text-align:center;padding-bottom:10px;} .right_cart_total p{padding: 10px 0;border-top: 3px solid #000;font-weight:600;text-align:left;margin:0 10px;} .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;} .cart_footer_menu{padding:5px} .cart_footer_menu a{display: block;float: left;margin-right: -1px;padding: 5px 0;width: 112px;text-align: center;font-weight: 400;border: 1px solid #44444a;background: #fff;margin: 3px;font-size: 12px;} .cart_footer_menu a img{margin-right:2px;margin-top:-1px;} .cart_foote_cs{margin:10px;} .cart_foote_cs h4{font-size:16px} .cart_foote_cs h5{font-size: 26px;font-weight: 600;margin: 15px 0;color: #60b23b;} .cart_foote_cs p{line-height: 22px;font-size: 12px;}
#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: -54px;top: 400px;cursor: pointer;width:53px;height:111px;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;} </style> <?php }?>
<!--우측-주문리스트--> <div id="right_wrap" class="right_wrap class_skin_idx_<?php echo $sk_idx;?> <?php if($_COOKIE['right_cart_view']=='N'){ echo "mini"; }?>"> <!--로그인--> <?php if($id_ccode==''){ ?> <div class="main_login"> <h1>LOGIN</h1> <p>다양한 서비스를 이용하시려면<br> 로그인을 해주세요.</p> <a class="main_login_btn hdgnb_login_class">로그인</a> </div> <?php } else { ?> <!--로그아웃--> <div class="main_logout"> <h1><?php echo $id_cust;?>님</h1> <p><?php echo $id_cust;?>님 환영합니다.<br><?php echo $config['shop_title']; ?>를 이용해주셔서 감사합니다.</p> <a class="main_logout_btn hdgnb_logout_class">로그아웃</a> </div> <?php } ?> <div class="right_cart_list"> <h2>장바구니리스트</h2> <!--주문이 없을경우--> <div class="right_cart_none none"> "최근 주문한<br>정보가 없습니다." </div> <!--주문할경우--> <ul id='right_cart_id'> <!-- 장바구니 상품들이 들어가는곳 --> </ul> </div>
<div class="right_cart_footer"> <!--총금액--> <div class="right_cart_total"> <p>총금액<em>원</em><span class='right_tot_amt'>0</span></p> <!--주문하기--> <button class="total_order">주문하기</button> </div> <!--간편메뉴--> <div class="cart_footer_menu"> <a class="hdgnb_cart_class"><img src="<?php echo $cur_img_url;?>/right_box_icon1.png">장바구니</a> <a class="hdgnb_order_class"><img src="<?php echo $cur_img_url;?>/right_box_icon2.png">주문리스트</a> <a class="hdgnb_wish_class"><img src="<?php echo $cur_img_url;?>/right_box_icon3.png">위시리스트</a> <a class="hdgnb_mypage_class"><img src="<?php echo $cur_img_url;?>/right_box_icon4.png">마이페이지</a> </div> <!--고객센터--> <div class="float_l"> <div class="cart_foote_cs"> <h4>고객센터</h4> <h5><?php echo $configshop['telno1'];?></h5> <P><?php echo nl2br($configshop['work_time']);?></P> </div> </div> <button href="#" class="top_btn">TOP</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); } });
$( ".top_btn" ).click(function() { $('html,body').animate({scrollTop: 0}, 1000); });
$(".total_order").click(function(){ if("주문하시겠습니까?"){ 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); } }); } });
if(right_cart_get()==true){ $v = $(".right_cart_list").outerHeight(); $v2 = $(".right_cart_footer").outerHeight(); $v3 = parseInt($v)-parseInt($v2)-180; alert($v+" "+$v2+" "+$v3); }
/*setTimeout(function(){ $v = $(".right_cart_list").outerHeight(); $v2 = $(".right_cart_footer").outerHeight(); $v3 = parseInt($v)-parseInt($v2)-180; alert($v+" "+$v2+" "+$v3); //$("#right_wrap .right_cart_list ul").css("max-height",$v3+"px"); },1000);*/
}); </script> <?php } // right_show = "Y" ?>
|