From abfa90e682594c10fd35b6d8bd725a32f7ebac55 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 3 Dec 2013 13:11:53 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=EC=87=BC=ED=95=91?= =?UTF-8?q?=EB=AA=B0:=20table=20->=20ul=20=EB=B3=80=EA=B2=BD=20:=20?= =?UTF-8?q?=EC=A3=BC=EB=AC=B8=EC=84=9C=EC=9E=91=EC=84=B1=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default_shop.css | 10 ++-- css/mobile_shop.css | 43 ++++++++++---- mobile/shop/cart.php | 4 +- mobile/shop/orderform.php | 114 +++++++++++++++++--------------------- shop/cart.php | 4 +- shop/orderform.php | 32 +++++------ shop/orderitemcoupon.php | 6 +- 7 files changed, 110 insertions(+), 103 deletions(-) diff --git a/css/default_shop.css b/css/default_shop.css index 13ff508a6..42f91b0a3 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -494,10 +494,10 @@ fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7 /* 장바구니 */ #sod_bsk {} -.sod_bsk_img {width:90px;text-align:center} -.sod_bsk_itopt {margin:5px 0;border:1px solid #e9e9e9;border-bottom:0;background:#f2f5f9} -.sod_bsk_itopt ul {margin:0;padding:0;list-style:none} -.sod_bsk_itopt li {padding:3px;border-bottom:1px solid #e9e9e9} +.sod_img {width:90px;text-align:center} +.sod_opt {margin:5px 0;border:1px solid #e9e9e9;border-bottom:0;background:#f2f5f9} +.sod_opt ul {margin:0;padding:0;list-style:none} +.sod_opt li {padding:3px;border-bottom:1px solid #e9e9e9} .sod_option_btn .mod_options {margin:0;padding:3px 0;width:100%;border:0;background:#333;color:#fff;cursor:pointer} #sit_opt_added {margin:0;padding:0;border:1px solid #e9e9e9;border-bottom:0;background:#fff;list-style:none} @@ -531,7 +531,7 @@ fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7 #display_setup_message strong {display:block;margin:0 0 10px} #sod_list {position:relative} -#sod_list #it_coupon_frm {z-index:10000;position:absolute;top:0;left:99px;padding:20px;width:500px;height:auto !important;height:500px;max-height:500px;border:1px solid #000;background:#f2f5f9;overflow-y:scroll;overflow-x:none} +#sod_list #cp_frm {z-index:10000;position:absolute;top:0;left:99px;padding:20px;width:500px;height:auto !important;height:500px;max-height:500px;border:1px solid #000;background:#f2f5f9;overflow-y:scroll;overflow-x:none} #sod_frm_orderer {margin:20px 0 40px} diff --git a/css/mobile_shop.css b/css/mobile_shop.css index 5ba9c131f..81efe5759 100644 --- a/css/mobile_shop.css +++ b/css/mobile_shop.css @@ -193,10 +193,10 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none} /* 장바구니 */ #sod_bsk {} -.sod_bsk_img {width:100px;text-align:center} -.sod_bsk_itopt {margin:5px 0;border-top:1px dashed #e9e9e9;background:#f2f5f9} -.sod_bsk_itopt ul {margin:0;padding:0;list-style:none} -.sod_bsk_itopt li {margin:0 0 1px;padding:5px} +.sod_img {width:100px;text-align:center} +.sod_opt {border-top:1px dashed #e9e9e9;background:#f2f5f9} +.sod_opt ul {margin:0;padding:0;list-style:none} +.sod_opt li {padding:8px} .sod_option_btn .mod_options {margin:0 0 10px;padding:5px 0;width:100%;border:0;background:#333;color:#fff} #sod_bsk_list {position:relative} @@ -236,9 +236,27 @@ html.no-overflowscrolling #mod_option_frm {height:auto;max-height:10000px !impor #sod_frm {} #sod_frm h2 {margin:0 0 10px} -#sod_list {position:relative} -#sod_list #it_coupon_frm {z-index:10000;position:absolute;top:0;left:0;padding:10px;width:278px;height:auto !important;height:480px;max-height:480px;border:1px solid #c9c9c9;background:#f2f5f9;overflow-y:scroll} -html.no-overflowscrolling #it_coupon_frm {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */ +#sod_list {position:relative;margin:0;padding:0;list-style:none} +#sod_list .sod_li {position:relative;padding:5px 0} +#sod_list .sod_li:nth-of-type(1) {border-top:1px solid #e9e9e9} +#sod_list .sod_li:after {display:block;visibility:hidden;clear:both;content:""} +#sod_list .li_name {margin:0 0 15px} +#sod_list .li_name strong {display:inline-block;padding:8px 0 10px;font-size:1.167em} +#sod_list .li_prqty {margin:0 0 5px;padding:0 0 15px;border-bottom:1px solid #e9e9e9} +#sod_list .li_prqty:after {display:block;visibility:hidden;clear:both;content:""} +#sod_list .li_prqty span {font-weight:bold} +#sod_list .li_prqty span span {font-weight:normal} +#sod_list .prqty_price {float:left;padding:0 2% 0 0;width:48%;border-right:1px solid #e9e9e9;text-align:right} +#sod_list .prqty_qty {float:right;width:48%;text-align:left} +#sod_list .li_cp {margin:5px 0 0} +#sod_list .li_cp .cp_btn {display:block;margin:0;padding:10px 0;width:100%;border:0;background:#ff882a;color:#fff;font-weight:bold} +#sod_list .li_total {position:relative} +#sod_list .total_img {position:absolute;top:0;left:0} +#sod_list .total_span {display:block;position:relative;padding:5px 0;text-align:right} +#sod_list .total_span span {position:absolute;top:5px;left:0} +#sod_list .total_price {border-bottom:1px solid #e9e9e9} +#sod_list #cp_frm {z-index:10000;position:absolute;top:0;left:0;padding:10px;width:278px;height:auto !important;height:480px;max-height:480px;border:1px solid #c9c9c9;background:#f2f5f9;overflow-y:scroll} +html.no-overflowscrolling #cp_frm {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */ #sod_frm_deli {position:relative;line-height:2em} #sod_frm_deli #order_address {display:block;padding:5px 0;background:#000;color:#fff;text-align:center} @@ -256,10 +274,13 @@ html.no-overflowscrolling #it_coupon_frm {height:auto;max-height:10000px !import #sod_frm_pay #sc_coupon_frm, #sod_frm_pay #od_coupon_frm {z-index:10000;position:absolute;top:0;left:0;padding:20px;width:320px;height:auto !important;height:480px;max-height:480px;border:1px solid #000;background:#f2f5f9;overflow-y:scroll} html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_frm {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */ -#sod_frm_paysel {margin:0 0 15px;padding:10px;border:1px solid #e9e9e9;background:#f2f5f9;text-align:center} -#sod_frm_paysel legend {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden} -#sod_frm_paysel .frm_input {background:#fff} -#sod_frm_paysel div {margin:5px 0 0} +#sod_frm_paysel {margin:0 0 15px} +#sod_frm_paysel ul {margin:0;padding:0;border:1px solid #e9e9e9;background:#f2f5f9;list-style:none} +#sod_frm_paysel ul:after {display:block;visibility:hidden;clear:both;content:""} +#sod_frm_paysel li {float:left;padding:10px 2%;width:46%} +#sod_frm_paysel #settle_bank {padding:10px;background:#dbdfe2;line-height:2em} +#sod_frm_paysel #settle_bank label {display:inline-block;margin:0 10px 0 0;font-weight:bold} +#sod_frm_paysel #settle_bank .frm_input {background:#fff;text-align:center} #sod_frm_escrow {margin:30px 0 0} diff --git a/mobile/shop/cart.php b/mobile/shop/cart.php index a0d1773ec..11cc2643a 100644 --- a/mobile/shop/cart.php +++ b/mobile/shop/cart.php @@ -75,7 +75,7 @@ include_once(G5_MSHOP_PATH.'/_head.php'); $it_options = print_item_options($row['it_id'], $s_cart_id); if($it_options) { $mod_options = '
'; - $it_name .= '
'.$it_options.'
'; + $it_name .= '
'.$it_options.'
'; } $point = $sum['point']; @@ -83,7 +83,7 @@ include_once(G5_MSHOP_PATH.'/_head.php'); ?> - + diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index c72f2cf41..305580a6a 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -37,22 +37,7 @@ ob_start(); ?>

주문하실 상품을 확인하세요.

-
- - - - - - - - - - - - - - - + - - - - - - - - - - +
  • + + + + + + + + +
    +
    + 판매가 + 수량 +
    +
    + + 주문금액 + 적립포인트 +
    + +
  • '; - echo '결제방법 선택'; + echo '
      '; } // 무통장입금 사용 if ($default['de_bank_use']) { $multi_settle++; - echo ' '.PHP_EOL; + echo '
    • '.PHP_EOL; $checked = ''; } // 가상계좌 사용 if ($default['de_vbank_use']) { $multi_settle++; - echo ' '.PHP_EOL; + echo '
    • '.PHP_EOL; $checked = ''; } // 계좌이체 사용 if ($default['de_iche_use']) { $multi_settle++; - echo ' '.PHP_EOL; + echo '
    • '.PHP_EOL; $checked = ''; } // 휴대폰 사용 if ($default['de_hp_use']) { $multi_settle++; - echo ' '.PHP_EOL; + echo '
    • '.PHP_EOL; $checked = ''; } // 신용카드 사용 if ($default['de_card_use']) { $multi_settle++; - echo ' '.PHP_EOL; + echo '
    • '.PHP_EOL; $checked = ''; } + echo '
    '; + $temp_point = 0; // 회원이면서 포인트사용이면 if ($is_member && $config['cf_use_point']) @@ -726,7 +712,7 @@ ob_end_clean(); } if ($default['de_bank_use'] || $default['de_vbank_use'] || $default['de_bank_use'] || $default['de_bank_use'] || $default['de_bank_use']) { - echo ''; + echo '
    '; } if ($multi_settle == 0) @@ -832,10 +818,10 @@ $(function() { var $cp_row_el; var zipcode = ""; - $(".it_coupon_btn").click(function() { + $(".cp_btn").click(function() { $cp_btn_el = $(this); $cp_row_el = $(this).closest("tr"); - $("#it_coupon_frm").remove(); + $("#cp_frm").remove(); var it_id = $cp_btn_el.closest("tr").find("input[name^=it_id]").val(); $.post( @@ -885,7 +871,7 @@ $(function() { } } - var $s_el = $cp_row_el.find(".ct_sell_price");; + var $s_el = $cp_row_el.find(".total_price");; sell_price = parseInt($cp_row_el.find("input[name^=it_price]").val()); sell_price = sell_price - parseInt(price); if(sell_price < 0) { @@ -897,22 +883,22 @@ $(function() { $cp_row_el.find("input[name^=cp_price]").val(price); calculate_total_price(); - $("#it_coupon_frm").remove(); + $("#cp_frm").remove(); $cp_btn_el.text("변경").focus(); - if(!$cp_row_el.find(".it_coupon_cancel").size()) - $cp_btn_el.after(""); + if(!$cp_row_el.find(".cp_cancel").size()) + $cp_btn_el.after(""); }); - $("#it_coupon_close").live("click", function() { - $("#it_coupon_frm").remove(); + $("#cp_close").live("click", function() { + $("#cp_frm").remove(); $cp_btn_el.focus(); }); - $(".it_coupon_cancel").live("click", function() { + $(".cp_cancel").live("click", function() { coupon_cancel($(this).closest("tr")); calculate_total_price(); - $("#it_coupon_frm").remove(); - $(this).closest("tr").find(".it_coupon_btn").text("적용").focus(); + $("#cp_frm").remove(); + $(this).closest("tr").find(".cp_btn").text("쿠폰적용").focus(); $(this).remove(); }); @@ -1117,7 +1103,7 @@ $(function() { function coupon_cancel($el) { - var $dup_sell_el = $el.find(".ct_sell_price"); + var $dup_sell_el = $el.find(".total_price"); var $dup_price_el = $el.find("input[name^=cp_price]"); var org_sell_price = $el.find("input[name^=it_price]").val(); diff --git a/shop/cart.php b/shop/cart.php index 9f81eda9f..4bc8d7320 100644 --- a/shop/cart.php +++ b/shop/cart.php @@ -94,7 +94,7 @@ include_once('./_head.php'); $it_options = print_item_options($row['it_id'], $s_cart_id); if($it_options) { $mod_options = '
    '; - $it_name .= '
    '.$it_options.'
    '; + $it_name .= '
    '.$it_options.'
    '; } $point = $sum['point']; @@ -102,7 +102,7 @@ include_once('./_head.php'); ?> - + - + - + @@ -1081,10 +1081,10 @@ $(function() { var $cp_row_el; var zipcode = ""; - $(".it_coupon_btn").click(function() { + $(".cp_btn").click(function() { $cp_btn_el = $(this); $cp_row_el = $(this).closest("tr"); - $("#it_coupon_frm").remove(); + $("#cp_frm").remove(); var it_id = $cp_btn_el.closest("tr").find("input[name^=it_id]").val(); $.post( @@ -1134,7 +1134,7 @@ $(function() { } } - var $s_el = $cp_row_el.find(".ct_sell_price");; + var $s_el = $cp_row_el.find(".total_price");; sell_price = parseInt($cp_row_el.find("input[name^=it_price]").val()); sell_price = sell_price - parseInt(price); if(sell_price < 0) { @@ -1146,22 +1146,22 @@ $(function() { $cp_row_el.find("input[name^=cp_price]").val(price); calculate_total_price(); - $("#it_coupon_frm").remove(); + $("#cp_frm").remove(); $cp_btn_el.text("변경").focus(); - if(!$cp_row_el.find(".it_coupon_cancel").size()) - $cp_btn_el.after(""); + if(!$cp_row_el.find(".cp_cancel").size()) + $cp_btn_el.after(""); }); - $("#it_coupon_close").live("click", function() { - $("#it_coupon_frm").remove(); + $("#cp_close").live("click", function() { + $("#cp_frm").remove(); $cp_btn_el.focus(); }); - $(".it_coupon_cancel").live("click", function() { + $(".cp_cancel").live("click", function() { coupon_cancel($(this).closest("tr")); calculate_total_price(); - $("#it_coupon_frm").remove(); - $(this).closest("tr").find(".it_coupon_btn").text("적용").focus(); + $("#cp_frm").remove(); + $(this).closest("tr").find(".cp_btn").text("적용").focus(); $(this).remove(); }); @@ -1362,7 +1362,7 @@ $(function() { function coupon_cancel($el) { - var $dup_sell_el = $el.find(".ct_sell_price"); + var $dup_sell_el = $el.find(".total_price"); var $dup_price_el = $el.find("input[name^=cp_price]"); var org_sell_price = $el.find("input[name^=it_price]").val(); diff --git a/shop/orderitemcoupon.php b/shop/orderitemcoupon.php index 9bc7b4a86..7bf6ab17b 100644 --- a/shop/orderitemcoupon.php +++ b/shop/orderitemcoupon.php @@ -40,7 +40,7 @@ $count = mysql_num_rows($result); ?> -
    +
    0) { ?>
    상품이미지상품명
    총수량판매가쿠폰소계포인트
    - -
    - - - - - - - - - -
    diff --git a/shop/orderform.php b/shop/orderform.php index 1cd221c7b..b1225a84d 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -257,7 +257,7 @@ function get_intall_file() $it_name = '' . stripslashes($row['it_name']) . ''; $it_options = print_item_options($row['it_id'], $s_cart_id); if($it_options) { - $it_name .= '
    '.$it_options.'
    '; + $it_name .= '
    '.$it_options.'
    '; } // 복합과세금액 @@ -298,14 +298,14 @@ function get_intall_file() } if($cp_count) { - $cp_button = ''; + $cp_button = ''; $it_cp_count++; } } ?>
    @@ -320,7 +320,7 @@ function get_intall_file()
    @@ -87,11 +87,11 @@ $count = mysql_num_rows($result); 사용할 수 있는 쿠폰이 없습니다.

    '; + echo '
    사용할 수 있는 쿠폰이 없습니다.
    '; } ?>
    - +
    \ No newline at end of file