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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
<?php Global $bankbook_array, $custinfo, $cur_pt, $max_use_pt, $max_use_pt, $od_id, $list_array, $first_deli_info;
qstr_extract($_SERVER['QUERY_STRING']); // $qstr을 $_GET변수에 넣는다. extract($_GET); // $_GET를 변수로 풀어준다. $cate = urldecode($cate);
$cur_img_url = $j3_img_url."/".$sk['sk_img_path'];
$tot_deli_pirce = $list_array[0]['tot_deli_price']; // 전체배송비 가져옴
if($skin_css!=''){ echo $skin_css; } else { ?> <!-- 상단 카테고리 내 위치 --> <style>
</style> <?php }?>
<style> .bank_add_info_class { display:none; } </style> <div class="class_skin_idx_<?php echo $sk_idx;?>"> <h1 class="p15_0 align_c">주문서작성</h1>
<!-- 상품내역 --> <section class="pb15 p0_10 gray_line_b2"> <h3 class="pb10 txt14 black_line_b">상품내역</h3> <form name='cart_list_form' id='cart_list_form' method='post' onsubmit='return false;'> <input type='hidden' name='sel_del' id='sel_del' value=''> <?php $cnt = 0; $idx_list = ""; if($configshop['deli_type']=='f'){ $deli_price = "무료배송"; } $all_price = 0; $all_point = 0; $not_free_deli_price = 0; for($i=0;$i<count($list_array);$i++){ $info = $list_array[$i]; $idx_list .= $info['idx'].","; if($info['idx']!=''){ $opt_name = ""; $addopt_name = ""; $t_qty = $info['ct_qty']; $t_point = $info['ct_qty']*$info['ct_point']; /*if($info['opt_mode']!=''){ $t_price = $info['ct_qty']*$info['opt_price']; } else { $t_price = $info['ct_qty']*$info['ct_price']; }*/ $t_price = $info['ct_tot_amt'];
$ii = $i+1;
if($info['opt_mode']=='opt'){ $opt_name = $info['opt_name']."({$buho}".number_format($info['opt_price']).")<br>"; } else if($info['opt_mode']=='addopt'){ $addopt_name = $info['opt_name']."({$buho}".number_format($info['opt_price']).")<br>"; } if($info['opt_mode']!=''){ // 옵션상품일경우 옵션정보를 받아온다. if($info['opt_price']>0){ $buho = "+"; } else { $buho = ""; } }
while($list_array[$ii]['pcode']==$info['pcode'] && $list_array[$ii]['ev_code']==$info['ev_code']){ // 단일 상품이 아닌 여러옵션이나 추가옵션있는지 확인한다. $nextinfo = $list_array[$ii]; $idx_list .= $nextinfo['idx'].","; $t_qty += $nextinfo['ct_qty']; if($nextinfo['opt_price']>0){ $buho = "+"; } else { $buho = ""; } if($nextinfo['opt_mode']=='opt'){ $opt_name .= $addtitle." ".$nextinfo['opt_name']."({$buho}".number_format($nextinfo['opt_price']).")<br>"; } else { $addopt_name .= "(추가) ".$nextinfo['opt_name']."({$buho}".number_format($nextinfo['opt_price']).")<br>"; } //$t_price += $nextinfo['ct_qty']*$nextinfo['opt_price']; $t_price += $nextinfo['ct_tot_amt']; $t_point += $nextinfo['ct_qty']*$nextinfo['ct_point'];
if($ii==100){ break; } $ii++; } $i=$ii-1;
$it_href = $j3_shop_url."/item.php?code=".$info['code1']; $all_price += $t_price; $all_point += $t_point;
if($deli_price=="무료배송"){ $p_deli_price = $deli_price; } else { if($info['ct_deli_type']=='1'){ $p_deli_price = "무료배송"; } else { $p_deli_price = "금액에따른 차등"; $not_free_deli_price += $t_price; } }
$info['jego'] = product_jego_get($info['pcode']); // 재고 받아옴 ?> <!-- 상품1개 --> <table class="width_full txt13 align_l gray_line_b"> <colgroup> <col class="width100"><col> </colgroup> <tbody> <tr> <td class="p7_0 align_c"> <input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'> <input type='hidden' name='od_ids[]' value='<?php echo $od_id;?>'> <input type='hidden' name='pcode[]' value='<?php echo $info['pcode'];?>'> <input type='hidden' name='jego[]' value='<?php echo $info['jego'];?>'> <input type='hidden' name='p_min_buy[]' value='<?php echo $info['p_min_buy'];?>'> <input type='hidden' name='p_max_buy[]' value='<?php echo $info['p_max_buy'];?>'> <img src="<?php echo $thumb_file = get_it_thumbnail($info['pcode'],$info['pic1'],80,80);?>" alt="제품이미지" class=""> </td> <td class="p7_0 txt15 bold valign_t"><?php echo $info['ct_name'];?><p class="mt5 txt13"><?php echo $info['norm'];?></p></td> </tr> </tbody>
<tfoot> <tr> <td colspan="2" class="p7_0 p0_10 bg_gray"> <?php echo $opt_name;?> <?php if($addopt_name!=''){?> <p class="gray2 bold"><?php echo $addopt_name;?></p> <?php }?> </td> </tr> <tr> <td colspan="2" class="p0_10 txt12 bg_gray"><em class="txt17 bold"><?php echo number_format($t_price);?></em>원 (<em class="txt14 bold"><?php echo $t_qty;?></em>개)</td> </tr> <tr> <td colspan="2" class="p0_10 txt13 bg_gray l_height32"> <span>배송비 : <em class="txt14 bold"><?php echo $p_deli_price; ?></em></span> <span class="float_r">포인트 : <em class="txt15 bold"><?php echo number_format($t_point);?></em></span> </td> </tr> </tfoot> </table> <!-- //상품1개 --> <?php $cnt++; } }
if($tot_deli_pirce>0){ $deli_price_title = "(+)".number_format($tot_deli_pirce); $deli_price_title2 = number_format($tot_deli_pirce); } else { $deli_price_title = "0"; $deli_price_title2 = "0"; } $total_price = $all_price+$tot_deli_pirce;
if($configshop['po_use']=='1' && $custinfo['pt_index']=='1'){ // 포인트 사용이며 거래처의 포인트 적립이 거래처별일경우 $pt_cash = round($all_price*$custinfo['pt_cash']/100); $pt_card = round($all_price*$custinfo['pt_card']/100); } ?>
</form> <?php if($configshop['po_use']=='1' && $custinfo['pt_index']==2){ // 포인트 사용시이면서 상품별 포인트인경우?> <p class='pt10 txt14'>구매확정 시 <span class="custom2 cost3"><?php echo number_format($all_point);?></span> 포인트 적립</p> <?php } ?> </section> <!-- //상품내역 -->
<!-- 결제액 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2">상품합계</h3> <table class="m10_0 float_c width_96 txt14 l_height24"> <colgroup> <col class="width_30"><col class="width_70"> </colgroup> <tr> <th class="pl10 gray3 align_l">총 상품금액</th> <td class="pr10 align_r"><em class="custom1 txt17 bold"><?php echo number_format($all_price);?></em>원</td> </tr> <tr> <th class="pl10 gray3 align_l">배송비</th> <td class="pr10 align_r"><em class="black txt17 bold"><?php echo $deli_price_title;?></em>원</td> </tr> <tr> <th class="pl10 gray3 align_l l_height35 bg_gray">결제금액</th> <td class="pr10 align_r l_height35 bg_gray"><em class="red txt17 bold"><?php echo number_format($total_price);?></em>원</td> </tr> </table> </section> <!-- //결제액 --> <form name='order_form' id='order_form' method='post' onsubmit='return false;' action=""> <input type='hidden' name='od_id' value='<?php echo $od_id?>'> <input type='hidden' name='idx_list' value='<?php echo substr($idx_list,0,strlen($idx_list)-1);?>'> <input type='hidden' name='cur_pt' value='<?php echo $cur_pt;?>'> <input type='hidden' name='max_use_pt' value='<?php echo $max_use_pt;?>'> <input type='hidden' name='min_use_pt' value='<?php echo $configshop['po_minpoint'];?>'> <input type='hidden' name='all_price' value='<?php echo $all_price;?>'> <input type='hidden' name='ori_deli_price' value='<?php echo number($deli_price_title2);?>'> <input type='hidden' name='ori_deli_price2' value='0'> <input type='hidden' name='deli_price' value='<?php echo number($deli_price_title2);?>'> <input type='hidden' name='deli_price2' value='0'> <!-- 배송지정보 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2">배송지정보</h3> <div class="p5_0 p0_10"> <?php if($configshop['visit_take']=='1'){?> <dl class="mb5 vt_class1"> <dt class="height24 txt14 align_l bold l_height24">배송유형</dt> <dd> <select name='visit_take' id='visit_take'> <option value='0'>택배배송</option> <option value='1'>방문수령</option> </select> </dd> </dl> <dl class="mb5 vt_class2" style='display:none;'> <dt class="height24 txt14 align_l bold l_height24">방문수령일자</dt> <dd> <select name='visit_take_day' id='visit_take_day'> <?php $ssdate = $configshop['visit_take_day']; for($i=0;$i<10;$i++){ $ssdate = $ssdate+$i; $stt_date = date("Y-m-d",strtotime("+".$ssdate." day ".date("Y-m-d"))); echo "<option value='{$stt_date}'>{$stt_date}</option>"; } ?> </select> </dd> </dl> <?php } ?> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">배송지선택</dt> <dd class="float_l mr10"><input type="radio" id="addr_same" class="mr5 box17 addr_fill_sender"><label for="addr_same" class="txt14">주문자와 동일</label></dd> <?php if($first_deli_info['deli_name']!=''){ // 기본배송지가 있으면 보여줌?> <dd class="float_l mr10"><input type="radio" id="addr_default" class="mr5 box17 add_fill_first" value='<?php echo $first_deli_info['idx'];?>'><label for="addr_default" class="txt14">기본배송지(<?php echo $first_deli_info['deli_name'];?>)</label></dd> <?php }?> <dd class="float_l mr10"><input type="radio" id="addr_new" class="mr5 box17 addr_fill_new"><label for="addr_new" class="txt14">신규배송지</label></dd> <dd><input type="button" value="배송지목록" class="p0_10 height24 txt14 bold l_height24 gray_line bg_white add_list_show"></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">배송지명</dt> <dd><input type="text" name='deli_name' class="pl10 width_96 height35 gray_line"></dd> <dd class="mt3"><input type="checkbox" name='add_deli_name' id="ad_default" class="mr5 box17"><label for="ad_default" class="txt14">배송지목록 추가</label></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">이름</dt> <dd><input type="text" name='consignee_name' class="pl10 width_96 height35 gray_line" required></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">전화번호</dt> <dd><input type="text" name='consignee_telno' class="pl10 width_96 height35 gray_line" ></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">휴대폰번호</dt> <dd><input type="text" name='consignee_hpno' class="pl10 width_96 height35 gray_line" required></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">주소</dt> <dd> <p class="mb5"><input type="text" name='consignee_zipcode' id='consignee_zipcode' placeholder="우편번호" class="mr5 pl10 width_70 height35 bg_gray gray_line" readonly><input type="button" value="주소검색" class="mt_1 width_quarter height37 white align_c bg_custom2 none_line r_zipcode_class"></p> <p class="mb5"><input type="text" name='consignee_addr_m' id='consignee_addr_m' placeholder="기본주소" class="pl10 width_96 height35 gray_line" required></p> <p><input type="text" name='consignee_addr_d' id='consignee_addr_d' placeholder="상세주소" class="pl10 width_96 height35 gray_line" required></p> <div id="post_wrap1" style="display:none;border:1px solid;width:350px;height:300px;margin:5px 0;position:relative"> <img src="//t1.daumcdn.net/postcode/resource/images/close.png" id="btnFoldWrap" style="cursor:pointer;position:absolute;right:0px;top:-1px;z-index:1" onclick="foldDaumPostcode()" alt="접기 버튼"> </div> </dd> </dl>
<dl> <dt class="height24 txt14 align_l bold l_height24">배송메모</dt> <dd><textarea name='transport_msg' class="pl10 width_96 height80 gray_line"></textarea></dd> </dl> </div>
<p class="p0_10 mb5 custom2 txt12"><span class="mr5 block float_l box14 circle white align_c bold bg_custom2">!</span>2016년 8월 1일부터는 5자리 우편번호 사용이 의무화됩니다. 이용에 불편함이 없도록 하시길 바랍니다.</p> <p class="p0_10 mb10 custom2 txt12"><span class="mr5 block float_l box14 circle white align_c bold bg_custom2">!</span>도서산간 지역의 경우 배송비가 추가 과금될 수 있습니다.</p> </section> <!-- //배송지정보 -->
<!-- 배송지정보 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2 toggle_sender_info">주문자 정보 ▼</h3> <div class="p5_0 p0_10 screen_out sender_deli_info"> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">이름</dt> <dd><input type="text" name='s_name' class="pl10 width_96 height35 gray_line" value="<?php echo $custinfo['comp_name'];?>" required></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">전화번호</dt> <dd><input type="text" name='s_telno' class="pl10 width_96 height35 gray_line" value="<?php echo $custinfo['telno'];?>"></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">휴대폰번호</dt> <dd><input type="text" name='s_hpno' class="pl10 width_96 height35 gray_line" value="<?php echo $custinfo['hpno'];?>" required></dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">주소</dt> <dd> <p class="mb5"><input type="text" name='s_zipcode' id='s_zipcode' placeholder="우편번호" class="mr5 pl10 width_70 height35 bg_gray gray_line" value="<?php echo $custinfo['zipcode'];?>"><input type="button" value="주소검색" class="mt_1 width_quarter height37 white align_c bg_custom2 none_line s_zipcode_class"></p> <p class="mb5"><input type="text" name='s_addr_m' id='s_addr_m' placeholder="기본주소" class="pl10 width_96 height35 gray_line" value="<?php echo $custinfo['addr_m'];?>"></p> <p><input type="text" name='s_addr_d' id='s_addr_d' placeholder="상세주소" class="pl10 width_96 height35 gray_line" value="<?php echo $custinfo['addr_d'];?>"></p> <div id="post_wrap2" style="display:none;border:1px solid;width:350px;height:300px;margin:5px 0;position:relative"> <img src="//t1.daumcdn.net/postcode/resource/images/close.png" id="btnFoldWrap" style="cursor:pointer;position:absolute;right:0px;top:-1px;z-index:1" onclick="foldDaumPostcode()" alt="접기 버튼"> </div> </dd> </dl> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24"><img src="<?php echo $j3_url;?>/img/mobile/ico_join.png" alt="필수" class="height24">이메일</dt> <dd><input type="text" name='s_email' class="pl10 width_96 height35 gray_line" required value="<?php echo $custinfo['email'];?>"></dd> </dl> </div>
</section> <!-- //배송지정보 -->
<!-- 구매할인 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2">할인 및 포인트</h3> <table class="m10_0 float_c width_96 txt14 l_height24"> <colgroup> <col class="width_triple"><col class="width_66"> </colgroup> <tbody> <!--<tr> <th scope="row" class="p5_0 align_l">상품/거래처할인</th> <td class="p5_0"><input type="text" placeholder="0" class="pr10 width_96 height35 align_r gray_line" value="400"></td> </tr>--> <?php if($configshop['po_use']=='1' && $cur_pt>0){?> <tr> <th scope="row" class="p5_0 align_l">포인트</th> <td class="p5_0"><input type="text" name='use_pt' value='0' placeholder="0" class="pr10 width_96 height35 align_r gray_line point_use_class"></td> </tr> <tr> <td colspan="2" class="gray txt13">(사용가능 포인트 : <span class="custom2 bold"><?php echo number_format($cur_pt);?></span>점) 최대 <span class="custom1 bold"><?php echo number_format($max_use_pt);?></span>점까지 사용가능</td> </tr> <?php }?> </tbody> </table> </section> <!-- //구매할인 -->
<!-- 최종결제금액 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2">최종결제금액</h3> <table class="m10_0 float_c width_96 txt14 l_height24"> <colgroup> <col class="width_30"><col class="width_70"> </colgroup> <tbody> <tr> <th class="pl10 gray3 align_l l_height35 bg_gray">결제금액</th> <td class="pr10 align_r l_height35 bg_gray"><em class="red txt17 bold pay_price_class">0</em>원</td> </tr> </tbody> <tfoot> <tr> <th class="pl10 gray3 align_l">총 상품금액</th> <td class="pr10 align_r"><em class="gray txt15 bold"><?php echo number_format($all_price);?></em>원</td> </tr> <tr> <th class="pl10 gray3 align_l">배송비</th> <td class="pr10 align_r">(+) <em class="gray txt15 bold cost_class"><?php echo $deli_price_title2;?></em>원</td> </tr> <tr> <th class="pl10 gray3 align_l">도서/산간 배송비</th> <td class="pr10 align_r">(+) <em class="gray txt15 bold sendcost_class">0</em>원</td> </tr> <?php if($configshop['po_use']=='1' && $cur_pt>0){?> <tr> <th class="pl10 gray3 align_l">포인트</th> <td class="pr10 align_r">(-) <em class="gray txt15 bold pt_use_class">0</em>원</td> </tr> <?php }?> </tfoot> </table> </section> <!-- //최종결제금액 --> <style> .flex_1{flex:1;} </style> <!-- 결제정보 --> <section class="gray_line_b2 separate_line"> <h3 class="p0_10 txt14 l_height35 gray_line_b2">결제정보</h3> <!--탭메뉴--> <div class="m10_0 m0_10 gray_line"> <div class="tab_navi mb10 flex"> <input type="hidden" id="pay_bank" name='pay_type' value='' class="v_align_m"> <?php if($configshop['bank_use']=='1'){?><a value='1' title='무통장' class="in_block width_25 height30 align_c gray_line_r gray_line_b bg_gray flex_1"><span class="txt13 l_height30">무통장입금</span></a><?php }?><?php if($configshop['card_use']=='1'){?><a value='2' title='카드' class="in_block width_25 height30 align_c gray_line_r gray_line_b bg_gray flex_1"><span class="txt13 l_height30">신용카드</span></a><?php }?><?php if($configshop['iche_use']=='1'){?><a value='3' title='계좌이체' class="in_block width_25 height30 align_c gray_line_r gray_line_b bg_gray flex_1"><span class="txt13 l_height30">계좌이체</span></a><?php }?><?php if($configshop['virtual_use']=='1'){?><a value='4' title='가상계좌' class="in_block width_25 height30 align_c gray_line_b bg_gray flex_1"><span class="txt13 l_height30">가상계좌</span></a><?php }?> </div> <div class="tab_cont mb10"> <div class="span_class mt_1" id="tab1" style="display:none;"> <?php if($configshop['bank_use']=='1'){?> <h4 class="screen_out">무통장입금</h4> <table class="float_c width_96 txt14 l_height24"> <colgroup> <col class="width_quarter"><col class="width_70"> </colgroup> <tbody> <tr> <th scope="row" class="p5_0 align_l">입금은행</th> <td class="p5_0"> <select id="bankbook_id" name='bankbook' title="옵션선택" class="width_96 height30 gray3 gray_line"> <option value=''>선택해 주세요. </option> <?php foreach($bankbook_array as $key=>$v){ echo "<option value='{$v['bank_name']}_{$v['acntnumber']}_{$v['accountholder']}^{$v['nidx']}'>{$v['bank_name']} {$v['acntnumber']} {$v['accountholder']}</option>"; } ?> </select> </td> </tr> <tr> <th scope="row" class="p5_0 align_l">입금자명 </th> <td class="p5_0"><input type="text" name='income_name' placeholder="입금자명 입력하세요." class="pr12 width_90 height26 align_r gray_line"></td> </tr> </tbody> </table> <?php }?> </div> <div class="span_class" id="tab2" style="display:none;"> <h4 class="screen_out">신용카드</h4> </div> <div class="span_class" id="tab3" style="display:none;"> <h4 class="screen_out">계좌이체</h4> </div> <div class="span_class" id="tab4" style="display:none;"> <h4 class="screen_out">가상계좌</h4> </div> </div><!--//tab_cont-->
</div> <!--//탭메뉴--> </section> <!-- //결제정보 --> </form> <section class="p15_0 p0_10 height35 bg_gray"> <input type="submit" value="주문하기" class="float_l mr5 width_49 height37 white txt15 l_height37 none_line bg_custom3 pointer order_process_class"/> <input type="submit" value="취소" class="float_l width_49 height37 txt15 l_height35 gray_line4 bg_white pointer cancel_order_class"/> </section> </div> <script> $(function(){ $(".tab_navi a").click(function () { var tab_id = $(this).attr("value"); $(".tab_cont .span_class").hide(); $(".tab_cont #tab"+tab_id).show(); });
if('<?php echo $_GET['tab_cont']?>'!=''){ show_next_tab('<?php echo $_GET['tab_cont']?>'); }
$(".tab_navi a").click(function(){ $(".tab_navi a").addClass("bg_gray").removeClass("bg_white"); $(this).addClass("bg_white").removeClass("bg_gray"); $v = $(this).attr("title"); $("#pay_bank").val($v); }); }); function show_next_tab(v){ $(".tab_cont .span_class").hide(); $(".tab_cont #tab"+v).show(); $("html,body").animate({scrollTop:0},100); } </script>
|