/home/mjc1/public_html/j3demo/shop/ajax.opt_sel_get.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
<?php
include_once("./_common.php");

$pinfo product_info_get($code); // 제품정보 가져옴
if($pinfo['p_min_buy']>0){ $qty $pinfo['p_min_buy']; } else { $qty 1; }
if(
$ct_qty!=''){ $qty $ct_qty; } // 장바구니 변경에서 수정할때는 수량이 넘어와서 처리된다
if($pinfo['jego']<='0' || $pinfo['p_soldout']=='1'){
    if(
$mode==''){
        echo 
"0§§§";
    } else {
        echo 
"0§§§품절 상품 입니다.";
    }
} else {
?><?php echo $pinfo['code']."§§§";?>
                        <div id="sit_sel_option" class="mt10 gray_line2 sit_sel_option_class">
                            <input type='hidden' name='opt_code[]' value='<?php echo $pinfo['code'];?>' size=2>
                            <input type='hidden' name='opt_mode[]' value='<?php echo $mode;?>' size=2>
                            <input type='hidden' name='opt_price[]' value='<?php echo $pinfo['saleprice'];?>' size=2>
                            <input type='hidden' name='p_min_buy[]' value='<?php echo $pinfo['p_min_buy'];?>' size=2>
                            <input type='hidden' name='p_max_buy[]' value='<?php echo $pinfo['p_max_buy'];?>' size=2>
                            <input type='hidden' name='p_pack_buy[]' value='<?php echo $pinfo['p_pack_buy'];?>' size=2>
                            <input type='hidden' name='qty_default[]' value='<?php echo $qty;?>' size=2>
                            <input type='hidden' name='jego[]' value='<?php echo $pinfo['jego'];?>' size=2>
                            <input type='hidden' name='p_ev_code[]' value='<?php echo $ev_code;?>' size=2>
                            <dl id="sit_opt_list" class="p10_20">
                                <dt class="mb10">
                                    <span class="width400 ellipsis"><?php echo $pinfo['name'];?></span>
                                    <a class="float_r qtydel box25 opt_del_class list_opt_del_class" style="background:url('<?php echo $j3_img_url;?>/sub01/item.png') 0 -63px no-repeat;"><span class="screen_out">삭제</span></a>
                                </dt>
                                <dd class="float_l l_height25">
                                    <label class="screen_out">수량</label>
                                    <div class="relative box96_27 qtyArea">
                                        <input type="text" title="구매수량" name='qty[]' value="<?php echo $qty;?>" class="absolute ab_top_left27 box38_25 gray_line align_c">
                                        <a class="absolute box28_25 ab_top_left64 add_qty_class" style="background:url('<?php echo $j3_img_url;?>/sub01/item.png') 0 -39px no-repeat;"><span class="screen_out">증가</span></a>
                                        <a class="absolute box28_25 ab_top_left  minus_qty_class" style="background:url('<?php echo $j3_img_url;?>/sub01/item.png') 0 -15px no-repeat;"><span class="screen_out">감소</span></a>
                                    </div>
                                </dd>
                                <dd class="l_height25 align_r"><?php if($configshop['price_level']<=$cinfo['mb_lv']){  // 가격표시권한이 있을경우만 ?><span class="cost3"><?php echo number_format($pinfo['saleprice']);?></span>원<?php } else { echo "&nbsp;"; }?></dd>
                            </dl>
                        </div>
<?php
}
?>