From d3656b787ade0eea715a1dfd48341569bf84b03b Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 24 May 2013 15:07:59 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=EC=9D=98=20=EC=88=98?= =?UTF-8?q?=EB=9F=89=20=ED=95=84=EB=93=9C=20=EB=B0=8F=20=EA=B4=80=EB=A0=A8?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/item.php | 105 ++++---------------------------------------------- 1 file changed, 7 insertions(+), 98 deletions(-) diff --git a/shop/item.php b/shop/item.php index cef50f4c7..d4b0aebae 100644 --- a/shop/item.php +++ b/shop/item.php @@ -286,17 +286,15 @@ else - - 원 - + - + 판매가격 - 원 - + 원 + @@ -311,10 +309,10 @@ else - + 포인트 - 점 - + 점 + @@ -604,15 +602,6 @@ else
- - - 수량 - - - - - - @@ -837,86 +826,6 @@ else $(".item_relation_count").text(""); }); - function qty_add(num) - { - var f = document.fitem; - var qty = parseInt(f.ct_qty.value); - if (num < 0 && qty <= 1) - { - alert("수량은 1 이상만 가능합니다."); - qty = 1; - } - else if (num > 0 && qty >= 9999) - { - alert("수량은 9999 이하만 가능합니다."); - qty = 9999; - } - else - { - qty = qty + num; - } - - f.ct_qty.value = qty; - - amount_change(); - } - - function get_amount(data) - { - var str = data.split(";"); - var num = parseInt(str[1]); - if (isNaN(num)) { - return 0; - } else { - return num; - } - } - - function amount_change() - { - var basic_amount = parseInt(""); - var basic_point = parseFloat(""); - var cust_amount = parseFloat(""); - - var f = document.fitem; - var opt1 = 0; - var opt2 = 0; - var opt3 = 0; - var opt4 = 0; - var opt5 = 0; - var opt6 = 0; - var ct_qty = 0; - - if (typeof(f.ct_qty) != 'undefined') - ct_qty = parseInt(f.ct_qty.value); - - if (typeof(f.it_opt1) != 'undefined') opt1 = get_amount(f.it_opt1.value); - if (typeof(f.it_opt2) != 'undefined') opt2 = get_amount(f.it_opt2.value); - if (typeof(f.it_opt3) != 'undefined') opt3 = get_amount(f.it_opt3.value); - if (typeof(f.it_opt4) != 'undefined') opt4 = get_amount(f.it_opt4.value); - if (typeof(f.it_opt5) != 'undefined') opt5 = get_amount(f.it_opt5.value); - if (typeof(f.it_opt6) != 'undefined') opt6 = get_amount(f.it_opt6.value); - - var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6; - var point = parseInt(basic_point); - - if (typeof(f.it_price) != 'undefined') - f.it_price.value = amount; - - if (typeof(f.disp_sell_price) != 'undefined') - f.disp_sell_price.value = number_format(String(amount * ct_qty)); - - if (typeof(f.disp_cust_price) != 'undefined') - f.disp_cust_price.value = number_format(String(cust_amount * ct_qty)); - - if (typeof(f.it_point) != 'undefined') { - f.it_point.value = point; - f.disp_point.value = number_format(String(point * ct_qty)); - } - } - - - // 바로구매 또는 장바구니 담기 function fitemcheck(f, act) {