/home/mjc1/public_html/j3demo/shopm/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
<?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="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 class="mt15 p0_10 gray_line">
                                <dt class="relative txt14 bold l_height32"><?php echo $pinfo['name'];?>
                                    <button class="absolute ab_top_right box32 none_line none_bg opt_del_class"><img src="<?php echo $j3_img_url;?>/ico_clear.png" alt="전체삭제" class="box_full"></button>
                                </dt>
                                <dd class="float_l pb10 height26">
                                    <label class="screen_out">수량</label>
                                    <div class="relative width100 height24 l_height24 gray_line">
                                        <input type="text" title="구매수량" name='qty[]' value="<?php echo $qty;?>" class="absolute ab_top_left25 width50 height24 align_c none_line">
                                        <a class="absolute ab_top_right box24 gray_line_l add_qty_class" style="background:url('<?php echo $j3_img_url;?>/item.png') 0px -38px no-repeat;"><span class="screen_out">증가</span></a>
                                        <a class="absolute ab_top_left box24 gray_line_r minus_qty_class" style="background:url('<?php echo $j3_img_url;?>/item.png') 0px -15px no-repeat;"><span class="screen_out">감소</span></a>
                                    </div>
                                </dd>
                                <dd class="pb10 height26 align_r txt17 bold l_height24"><?php if($configshop['price_level']<=$cinfo['mb_lv']){  // 가격표시권한이 있을경우만 ?><?php echo number_format($pinfo['saleprice']);?><span class="txt12">원<?php } else { echo "&nbsp;"; }?></span></dd>
                            </dl>
                        </div>
<?php
}
?>