From f608ca01ddec0d56a340bf423fd511a976a74d53 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 4 Nov 2013 13:44:03 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=ED=86=B5=EC=87=BC=ED=95=91=EB=AA=B0:?= =?UTF-8?q?=20tbl=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default_shop.css | 64 +- css/mobile_shop.css | 98 +-- mobile/shop/cart.php | 188 ++--- mobile/shop/itemrecommend.php | 43 +- mobile/shop/mypage.php | 70 +- mobile/shop/orderaddress.php | 85 +-- mobile/shop/orderform.php | 763 ++++++++++---------- mobile/shop/orderinquiry.sub.php | 82 ++- mobile/shop/orderinquiryview.php | 598 +++++++-------- mobile/shop/personalpayform.php | 42 +- mobile/shop/personalpayresult.php | 166 ++--- mobile/shop/wishlist.php | 120 +-- mobile/skin/shop/basic/itemqaform.skin.php | 34 +- mobile/skin/shop/basic/itemuseform.skin.php | 98 +-- shop/cart.php | 202 +++--- shop/coupon.php | 98 +-- shop/itemrecommend.php | 23 +- shop/mypage.php | 70 +- shop/orderaddress.php | 85 +-- shop/ordercoupon.php | 80 +- shop/orderform.php | 743 +++++++++---------- shop/orderinquiry.sub.php | 90 +-- shop/orderinquiryview.php | 336 ++++----- shop/orderitemcoupon.php | 80 +- shop/ordersendcostcoupon.php | 86 +-- shop/personalpayform.php | 42 +- shop/personalpayresult.php | 158 ++-- shop/search.php | 74 +- shop/taxsave_kcp.php | 152 ++-- shop/wishlist.php | 115 +-- skin/poll/shop_basic/poll_result.skin.php | 45 +- skin/shop/basic/itemqaform.skin.php | 34 +- skin/shop/basic/itemuseform.skin.php | 98 +-- 33 files changed, 2583 insertions(+), 2479 deletions(-) diff --git a/css/default_shop.css b/css/default_shop.css index 8d53eed07..923b0f006 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -244,37 +244,37 @@ button.btn_frmline2 {font-size:1em;cursor:pointer} .btn_list input, .btn_list button {background: none repeat scroll 0 0 #617D46;border: 0 none;color: #FFFFFF;height: 28px;line-height: 2.2em;padding: 0 15px;vertical-align: middle} /* 기본테이블 */ -.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0} -.basic_tbl caption {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden} -.basic_tbl thead th {padding:12px 0 8px;background:#565e60;color:#fff} -.basic_tbl thead a {color:#fff} -.basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ -.basic_tbl tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff} -.basic_tbl tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center} -.basic_tbl td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all} -.basic_tbl a {} -.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */ -td.empty_table {padding:85px 0;text-align:center} +.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0} +.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left} -.empty_list {padding:85px 0;text-align:center} - -/* 필수입력 */ -.required {background:url('../img/wrest.gif') #f5f6fa top right no-repeat !important} +.tbl_head01 {margin:0 0 10px} +.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden} +.tbl_head01 thead th {padding:12px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em} +.tbl_head01 thead a {color:#383838} +.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ +.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center} +.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9} +.tbl_head01 td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all} +.tbl_head01 a {} +.tbl_head01 .empty_table {padding:50px 0;text-align:center} /* 폼 테이블 */ -.frm_tbl {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} -.frm_tbl caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left} -.frm_tbl th {padding-left:10px;width:100px;border-top:1px solid #eee;border-bottom:1px solid #eee;font-weight:normal;text-align:left} -.frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent} -.frm_tbl textarea, .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f5f6fa;vertical-align:middle} -.frm_tbl textarea {width:90%;height:150px} -.frm_address {display:block;margin-top:5px} -.frm_file {display:block;margin-bottom:5px} -.frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent} -.frm_tbl #captcha input {margin-left:5px;text-align:center} -.frm_tbl a {text-decoration:none} +.tbl_frm01 {margin:0 0 20px} +.tbl_frm01 table {width:100%;border-collapse:collapse;border-spacing:0} +.tbl_frm01 th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left} +.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent} +.tbl_frm01 textarea, .tbl_frm01 .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle} +.tbl_frm01 textarea {width:98%;height:100px} +/* +.tbl_frm01 #captcha {margin:0;padding:0;border:0;background:transparent} +.tbl_frm01 #captcha input {margin-left:5px;text-align:center} +*/ +.tbl_frm01 a {text-decoration:none} +.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em} +.tbl_frm01 .frm_address {display:block;margin-top:5px} +.tbl_frm01 .frm_file {display:block;margin-bottom:5px} -.frm_info {display:block;padding:0 0 5px;color:#666;line-height:1.3em} +fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle} /* 테이블 그리드 padding 0 5px 고려한 넓이 */ .grid_1 {width:40px} @@ -300,17 +300,17 @@ td.empty_table {padding:85px 0;text-align:center} .td_chk {width:30px;text-align:center} .td_group {width:100px;text-align:center} .td_board {width:120px;text-align:center} -.td_smallstat {width:50px;text-align:center} +.td_statsmall {width:50px;text-align:center} .td_num {width:50px;text-align:center} -.td_bignum {width:100px;text-align:center} +.td_numbig {width:100px;text-align:center} .td_mb_id {width:100px;text-align:center} .td_nick {width:100px;text-align:center} .td_name {width:100px;text-align:left} -.td_smallname {width:50px;text-align:left} +.td_namesmall {width:50px;text-align:left} .td_date {width:60px;text-align:center} .td_datetime {width:110px;text-align:center} -.td_smallmng {width:50px;text-align:center} .td_mng {width:80px;text-align:center} +.td_mngsmall {width:50px;text-align:center} .td_default {width:60px;text-align:center} /* 새창 기본 스타일 */ @@ -823,5 +823,5 @@ td.empty_table {padding:85px 0;text-align:center} .sev_admin {text-align:right} /* 쿠폰 */ -#coupon .td_bignum {width:150px} +#coupon .td_numbig {width:150px} #coupon .td_datetime {width:180px} \ No newline at end of file diff --git a/css/mobile_shop.css b/css/mobile_shop.css index 430e745e7..34a4c14c9 100644 --- a/css/mobile_shop.css +++ b/css/mobile_shop.css @@ -3,16 +3,18 @@ /* 초기화 */ html {overflow-y:scroll} -body {margin:0;padding:0;background:#fff;color:#000;font-size:0.75em;font-family:"dotum"} +body {margin:0;padding:0;font-size:0.75em} html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0} -h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:"dotum"} +h1, h2, h3, h4, h5, h6 {font-size:1em} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} header ul, nav ul, footer ul {margin:0;padding:0;list-style:none} +legend {position:absolute;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden} label, input, select, img {vertical-align:middle} -input {margin:0;padding:0;border-radius:0;font-family:"dotum";-webkit-appearance:none} -button {border-radius:0;font-size:1em;font-family:"dotum"} -input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0 !important;font-size:1em} /* 모바일에서만 사용 */ -p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all} +input,button {margin:0;padding:0;font-size:1em} +input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0;font-size:1em;-webkit-appearance:none} +textarea, select {font-size:1em} +textarea {border-radius:0;-webkit-appearance:none} +p {margin:0;padding:1em 0;line-height:1.7em;word-break:break-all} hr {display:none} pre {overflow-x:scroll;font-size:1.1em} a:link, a:visited {color:#000;text-decoration:none} @@ -177,8 +179,8 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none} #sit_ov_btn {margin:0;padding:0;text-align:center;list-style:none} #sit_ov_btn li {display:inline-block;margin:0 0 0 1px} -#sit_ov_btn a {display:inline-block;padding:10px 0;width:80px;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em} -#sit_ov_btn input {margin:0;padding:10px 0;width:80px;border:0;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em} +#sit_ov_btn a {display:inline-block;padding:10px;font-size:0.95em;vertical-align:middle;text-align:center;text-decoration:none;letter-spacing:-0.1em} +#sit_ov_btn input {margin:0;padding:10px;border:0;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em} #sit_btn_buy {background:#ff5b89;color:#fff} #sit_btn_cart, #sit_btn_wish {background:#555;color:#fff} #sit_btn_rec {background:#888;color:#fff} @@ -364,7 +366,7 @@ html.no-overflowscrolling #mod_option_frm {height:auto;max-height:10000px !impor /* 위시리스트 */ #sod_ws {} -#sod_ws .basic_tbl a {padding-right:0;padding-left:0} +#sod_ws .tbl_head01 a {padding-right:0;padding-left:0} .sod_ws_img {width:90px;text-align:center} #sod_ws_act {text-align:center} @@ -378,26 +380,27 @@ html.no-overflowscrolling #it_coupon_frm {height:auto;max-height:10000px !import #sod_frm_orderer {margin:15px 0 30px} -#sod_frm_addr div {position:relative} /* 갤탭 position */ -#sod_frm_addr div div {position:absolute;top:-25px;left:185px;letter-spacing:-0.1em} +#sod_frm_addr div {display:inline-block} #sod_frm_same {margin:0 0 10px} -#sod_frm #od_memo {height:70px} - #sod_frm_pay {position:relative} -#sod_frm_pay .basic_tbl caption {font-size:0;line-height:0;overflow:hidden} -#sod_frm_pay .basic_tbl th {width:auto !important;font-weight:bold;text-align:center !important} -#sod_frm_pay .basic_tbl td {border-top:1px solid #e9e9e9 !important;border-bottom:1px solid #e9e9e9 !important;line-height:1.5em !important;word-break:break-all !important} +#sod_frm_pay .tbl_head01 caption {font-size:0;line-height:0;overflow:hidden} +#sod_frm_pay .tbl_head01 th {width:auto !important;font-weight:bold;text-align:center !important} +#sod_frm_pay .tbl_head01 td {border-top:1px solid #e9e9e9 !important;border-bottom:1px solid #e9e9e9 !important;line-height:1.5em !important;word-break:break-all !important} #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:#f5f6fa;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:#f5f6fa;text-align:center} #sod_frm_paysel legend {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden} -#settle_bank {margin:10px 0 0} +#sod_frm_paysel .frm_input {background:#fff} +#sod_frm_paysel div {margin:5px 0 0} #sod_frm_escrow {margin:30px 0 0} +#od_addr1, #od_addr2, #od_email, #od_b_addr1, #od_b_addr2 {width:100%} +#sod_frm #od_memo {height:70px} + /* 주문내역 */ #sod_v {} #sod_v .td_stat {width:100px} @@ -443,7 +446,7 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f #sod_fin_view {border:1px solid #e9e9e9} #sod_fin_view h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden} #sod_fin_view h3 {margin:0 0 10px} -#sod_fin_view .basic_tbl th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left} +#sod_fin_view .tbl_head01 th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left} #sod_fin_pay {padding:10px;border-bottom:1px solid #e9e9e9} @@ -471,7 +474,7 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f #scash {} #scash section {padding:10px 0} #scash h2 {margin:0 0 10px;text-align:center} -#scash .basic_tbl th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left} +#scash .tbl_head01 th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left} #scash_apply {padding:10px 0 15px;text-align:center} #scash_apply button {padding:10px;border:0;background:#565e60;color:#fff} #scash_copy {text-align:center} @@ -541,35 +544,34 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f .btn_admin:focus, .btn_admin:hover {text-decoration:none !important} /* 기본테이블 */ -.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0} -.basic_tbl caption {padding:0 0 10px;color:#777;text-align:left} -.basic_tbl thead th {padding:5px 0;background:#565e60;color:#fff} -.basic_tbl thead a {color:#fff} -.basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ -.basic_tbl tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff} -.basic_tbl tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center} -.basic_tbl td {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all} -.basic_tbl a {display:block;padding:5px;color:#000;text-decoration:none} -.bo_sideview td {} /* 사이드뷰 사용하는 테이블 셀 패딩값 */ -td.empty_table {padding:30px 0;text-align:center} +.tbl_wrap {margin:0 10px 10px} +.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0} +.tbl_wrap caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left} -/* 필수입력 */ -.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important} +.tbl_head01 {} +.tbl_head01 caption {padding:0 0 10px;color:#777;text-align:left} +.tbl_head01 thead th {padding:12px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em} +.tbl_head01 thead a {color:#383838} +.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ +.tbl_head01 tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff} +.tbl_head01 tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center} +.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9} +.tbl_head01 td {padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all} +.tbl_head01 .empty_table {padding:10px 0;text-align:center} /* 폼 테이블 */ -.frm_tbl {margin-bottom:15px;width:100%;border-collapse:collapse;border-spacing:0} -.frm_tbl caption {padding:10px;color:#4b8b99;font-weight:bold;text-align:left} -.frm_tbl th {padding-left:10px;width:110px;border-top:1px solid #eee;border-bottom:1px solid #eee;font-weight:normal;text-align:left} -.frm_tbl td {padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent} -.frm_tbl textarea, .frm_input {border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none} -.frm_tbl textarea {width:90%;height:100px} -.frm_address {display:block;margin-top:5px} -.frm_file {display:block;margin-bottom:5px} -.frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent} -.frm_tbl #captcha input {margin-left:5px;text-align:center} -.frm_tbl a {text-decoration:none} +.tbl_frm01 {} +.tbl_frm01 th {padding:10px 0;width:90px;border:1px solid #e9e9e9;border-left:0;text-align:left} +.tbl_frm01 td {padding:10px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent} +.tbl_frm01 textarea, .frm_input {border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none} +.tbl_frm01 textarea {width:100%;height:100px} +.tbl_frm01 a {text-decoration:none} +.tbl_frm01 .frm_address {display:block;margin-top:5px} +.tbl_frm01 .frm_file {display:block;margin-bottom:5px;width:100%} +.tbl_frm01 .frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em} -.frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em} +/* 필수입력 */ +.required, textarea.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important} /* 테이블 그리드 padding 0 5px 고려한 넓이 */ .grid_1 {width:40px} @@ -595,16 +597,16 @@ td.empty_table {padding:30px 0;text-align:center} .td_chk {width:50px;text-align:center} .td_group {width:100px;text-align:center} .td_board {width:120px;text-align:center} -.td_smallstat {width:50px;text-align:center} +.td_statsmall {width:50px;text-align:center} .td_num {width:50px;text-align:center} -.td_bignum {width:120px;text-align:center} +.td_numbig {width:120px;text-align:center} .td_mb_id {width:100px;text-align:center} .td_nick {width:100px;text-align:center} .td_name {width:100px;text-align:left} -.td_smallname {width:100px;text-align:left} +.td_namesmall {width:100px;text-align:left} .td_date {width:50px;text-align:center} .td_datetime {width:170px;text-align:center} -.td_smallmng {width:50px;text-align:center} +.td_mngsmall {width:50px;text-align:center} .td_mng {width:80px;text-align:center} .td_stat {text-align:center} diff --git a/mobile/shop/cart.php b/mobile/shop/cart.php index 3dd74e61f..df16af0af 100644 --- a/mobile/shop/cart.php +++ b/mobile/shop/cart.php @@ -10,104 +10,106 @@ include_once(G5_MSHOP_PATH.'/_head.php');
- - - - - - - - - - - - - - +
상품이미지상품명총수량판매가소계포인트
+ + + + + + + + + + + + + '$ctime' "; - } - $sql .= " group by a.it_id "; - $sql .= " order by a.ct_id "; - $result = sql_query($sql); - - $it_send_cost = 0; - - for ($i=0; $row=mysql_fetch_array($result); $i++) - { - // 합계금액 계산 - $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, - SUM(ct_point * ct_qty) as point, - SUM(ct_qty) as qty - from {$g5['g5_shop_cart_table']} - where it_id = '{$row['it_id']}' - and od_id = '$s_cart_id' "; - $sum = sql_fetch($sql); - - if ($i==0) { // 계속쇼핑 - $continue_ca_id = $row['ca_id']; + // $s_cart_id 로 현재 장바구니 자료 쿼리 + $sql = " select a.ct_id, + a.it_id, + a.it_name, + a.ct_price, + a.ct_point, + a.ct_qty, + a.ct_status, + a.ct_send_cost, + b.ca_id + from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) + where a.od_id = '$s_cart_id' "; + if($default['de_cart_keep_term']) { + $ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400)); + $sql .= " and a.ct_time > '$ctime' "; } + $sql .= " group by a.it_id "; + $sql .= " order by a.ct_id "; + $result = sql_query($sql); - $a1 = ''; - $a2 = ''; - $image = get_it_image($row['it_id'], 70, 70); + $it_send_cost = 0; - $it_name = $a1 . stripslashes($row['it_name']) . $a2; - $it_options = print_item_options($row['it_id'], $s_cart_id); - if($it_options) { - $mod_options = '
'; - $it_name .= '
'.$it_options.'
'; + for ($i=0; $row=mysql_fetch_array($result); $i++) + { + // 합계금액 계산 + $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, + SUM(ct_point * ct_qty) as point, + SUM(ct_qty) as qty + from {$g5['g5_shop_cart_table']} + where it_id = '{$row['it_id']}' + and od_id = '$s_cart_id' "; + $sum = sql_fetch($sql); + + if ($i==0) { // 계속쇼핑 + $continue_ca_id = $row['ca_id']; + } + + $a1 = ''; + $a2 = ''; + $image = get_it_image($row['it_id'], 70, 70); + + $it_name = $a1 . stripslashes($row['it_name']) . $a2; + $it_options = print_item_options($row['it_id'], $s_cart_id); + if($it_options) { + $mod_options = '
'; + $it_name .= '
'.$it_options.'
'; + } + + $point = $sum['point']; + $sell_price = $sum['price']; + ?> + + + + + + + + + + + + + '; + } else { + // 배송비 계산 + $send_cost = get_sendcost($s_cart_id, 0); } - - $point = $sum['point']; - $sell_price = $sum['price']; - ?> - - - - - - - - - - - - - '; - } else { - // 배송비 계산 - $send_cost = get_sendcost($s_cart_id, 0); - } - ?> - -
상품이미지상품명총수량판매가소계포인트
+ + + +
장바구니에 담긴 상품이 없습니다.
- - - -
장바구니에 담긴 상품이 없습니다.
+ ?> + + +
- - - - - - - - - - - - - - - - - - - -
+ +
+ + + + + + + + + + + + + + + + + + + +
+
diff --git a/mobile/shop/mypage.php b/mobile/shop/mypage.php index 1cb8ad891..ced95d4d5 100644 --- a/mobile/shop/mypage.php +++ b/mobile/shop/mypage.php @@ -59,43 +59,45 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {

최근 위시리스트

- - - - - - - - - - +
+
이미지상품명보관일시
+ + + + + + + + + - - - - - + + + + + - '; - ?> - -
이미지상품명보관일시
보관 내역이 없습니다.
+ if ($i == 0) + echo '보관 내역이 없습니다.'; + ?> + + +
diff --git a/mobile/shop/orderaddress.php b/mobile/shop/orderaddress.php index 5989d493a..6669edd6e 100644 --- a/mobile/shop/orderaddress.php +++ b/mobile/shop/orderaddress.php @@ -12,47 +12,50 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';

배송지 목록

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - 배송지명기본
배송지
이름전화번호주소관리
- - - >
- - - 삭제 -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 배송지명기본
배송지
이름전화번호주소관리
+ + + >
+ + + 삭제 +
+
+
diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index 74aefe710..bee761df4 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -36,185 +36,188 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정 ob_start(); ?>

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

- - - - - - - - - - - - - - +
상품이미지상품명총수량판매가쿠폰소계포인트
+ + + + + + + + + + + + + '$ctime' "; - } - $sql .= " group by a.it_id "; - $sql .= " order by a.ct_id "; - $result = sql_query($sql); + $goods = $goods_it_id = ""; + $goods_count = -1; - $good_info = ''; - $it_send_cost = 0; - $it_cp_count = 0; + // $s_cart_id 로 현재 장바구니 자료 쿼리 + $sql = " select a.ct_id, + a.it_id, + a.it_name, + a.ct_price, + a.ct_point, + a.ct_qty, + a.ct_status, + a.ct_send_cost, + b.ca_id, + b.ca_id2, + b.ca_id3, + b.it_notax + from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) + where a.od_id = '$s_cart_id' + and a.ct_select = '1' "; + if($default['de_cart_keep_term']) { + $ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400)); + $sql .= " and a.ct_time > '$ctime' "; + } + $sql .= " group by a.it_id "; + $sql .= " order by a.ct_id "; + $result = sql_query($sql); - $comm_tax_mny = 0; // 과세금액 - $comm_vat_mny = 0; // 부가세 - $comm_free_mny = 0; // 면세금액 - $tot_tax_mny = 0; + $good_info = ''; + $it_send_cost = 0; + $it_cp_count = 0; - for ($i=0; $row=mysql_fetch_array($result); $i++) - { - // 합계금액 계산 - $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, - SUM(ct_point * ct_qty) as point, - SUM(ct_qty) as qty - from {$g5['g5_shop_cart_table']} - where it_id = '{$row['it_id']}' - and od_id = '$s_cart_id' "; - $sum = sql_fetch($sql); + $comm_tax_mny = 0; // 과세금액 + $comm_vat_mny = 0; // 부가세 + $comm_free_mny = 0; // 면세금액 + $tot_tax_mny = 0; - if (!$goods) + for ($i=0; $row=mysql_fetch_array($result); $i++) { - //$goods = addslashes($row[it_name]); - //$goods = get_text($row[it_name]); - $goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']); - $goods_it_id = $row['it_id']; - } - $goods_count++; + // 합계금액 계산 + $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, + SUM(ct_point * ct_qty) as point, + SUM(ct_qty) as qty + from {$g5['g5_shop_cart_table']} + where it_id = '{$row['it_id']}' + and od_id = '$s_cart_id' "; + $sum = sql_fetch($sql); - // 에스크로 상품정보 - if($default['de_escrow_use']) { - if ($i>0) - $good_info .= chr(30); - $good_info .= "seq=".($i+1).chr(31); - $good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31); - $good_info .= "good_name=".addslashes($row['it_name']).chr(31); - $good_info .= "good_cntx=".$row['ct_qty'].chr(31); - $good_info .= "good_amtx=".$row['ct_price'].chr(31); + if (!$goods) + { + //$goods = addslashes($row[it_name]); + //$goods = get_text($row[it_name]); + $goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']); + $goods_it_id = $row['it_id']; + } + $goods_count++; + + // 에스크로 상품정보 + if($default['de_escrow_use']) { + if ($i>0) + $good_info .= chr(30); + $good_info .= "seq=".($i+1).chr(31); + $good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31); + $good_info .= "good_name=".addslashes($row['it_name']).chr(31); + $good_info .= "good_cntx=".$row['ct_qty'].chr(31); + $good_info .= "good_amtx=".$row['ct_price'].chr(31); + } + + $a1 = ''; + $a2 = ''; + $image = get_it_image($row['it_id'], 50, 50); + + $it_name = $a1 . stripslashes($row['it_name']) . $a2; + $it_options = print_item_options($row['it_id'], $s_cart_id); + if($it_options) { + $it_name .= '
'.$it_options.'
'; + } + + // 복합과세금액 + if($default['de_tax_flag_use']) { + if($row['it_notax']) { + $comm_free_mny += $sum['price']; + } else { + $tot_tax_mny += $sum['price']; + } + } + + $point = $sum['point']; + $sell_price = $sum['price']; + + // 쿠폰 + if($is_member) { + $cp_button = ''; + $cp_count = 0; + + $sql = " select cp_id + from {$g5['g5_shop_coupon_table']} + where mb_id IN ( '{$member['mb_id']}', '전체회원' ) + and cp_start <= '".G5_TIME_YMD."' + and cp_end >= '".G5_TIME_YMD."' + and cp_minimum <= '$sell_price' + and ( + ( cp_method = '0' and cp_target = '{$row['it_id']}' ) + OR + ( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) ) + ) "; + $res = sql_query($sql); + + for($k=0; $cp=sql_fetch_array($res); $k++) { + if(is_used_coupon($member['mb_id'], $cp['cp_id'])) + continue; + + $cp_count++; + } + + if($cp_count) { + $cp_button = ''; + $it_cp_count++; + } + } + ?> + + + + + + + + + + + + '; + alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php'); + } else { + // 배송비 계산 + $send_cost = get_sendcost($s_cart_id); } - $a1 = ''; - $a2 = ''; - $image = get_it_image($row['it_id'], 50, 50); - - $it_name = $a1 . stripslashes($row['it_name']) . $a2; - $it_options = print_item_options($row['it_id'], $s_cart_id); - if($it_options) { - $it_name .= '
'.$it_options.'
'; - } - - // 복합과세금액 + // 복합과세처리 if($default['de_tax_flag_use']) { - if($row['it_notax']) { - $comm_free_mny += $sum['price']; - } else { - $tot_tax_mny += $sum['price']; - } + $comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1); + $comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny; } - - $point = $sum['point']; - $sell_price = $sum['price']; - - // 쿠폰 - if($is_member) { - $cp_button = ''; - $cp_count = 0; - - $sql = " select cp_id - from {$g5['g5_shop_coupon_table']} - where mb_id IN ( '{$member['mb_id']}', '전체회원' ) - and cp_start <= '".G5_TIME_YMD."' - and cp_end >= '".G5_TIME_YMD."' - and cp_minimum <= '$sell_price' - and ( - ( cp_method = '0' and cp_target = '{$row['it_id']}' ) - OR - ( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) ) - ) "; - $res = sql_query($sql); - - for($k=0; $cp=sql_fetch_array($res); $k++) { - if(is_used_coupon($member['mb_id'], $cp['cp_id'])) - continue; - - $cp_count++; - } - - if($cp_count) { - $cp_button = ''; - $it_cp_count++; - } - } - ?> - - - - - - - - - - - - '; - alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php'); - } else { - // 배송비 계산 - $send_cost = get_sendcost($s_cart_id); - } - - // 복합과세처리 - if($default['de_tax_flag_use']) { - $comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1); - $comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny; - } - ?> - -
상품이미지상품명총수량판매가쿠폰소계포인트
+ + + + + + + + + +
장바구니에 담긴 상품이 없습니다.
- - - - - - - - - -
장바구니에 담긴 상품이 없습니다.
+ ?> + + + @@ -342,191 +345,193 @@ ob_end_clean();

주문하시는 분

- - - - - - +
+
+ + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - -
- - 영,숫자 3~20자 (주문서 조회시 필요) -
+ + 영,숫자 3~20자 (주문서 조회시 필요) +
주소 - - - - - - - - - - - - -
주소 + + + - + + + + + + + + +
- - 이후로 배송 바랍니다. -
+ + + + + + 이후로 배송 바랍니다. + + + + + +

받으시는 분

- - - +
+ + '.PHP_EOL; - $addr_list .= ''.PHP_EOL; + // 주문자와 동일 + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; - // 기본배송지 - $sql = " select * - from {$g5['g5_shop_order_address_table']} - where mb_id = '{$member['mb_id']}' - and ad_default = '1' "; - $row = sql_fetch($sql); - if($row['ad_id']) { - $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; - $addr_list .= ''.PHP_EOL; - $addr_list .= ''.PHP_EOL; + // 기본배송지 + $sql = " select * + from {$g5['g5_shop_order_address_table']} + where mb_id = '{$member['mb_id']}' + and ad_default = '1' "; + $row = sql_fetch($sql); + if($row['ad_id']) { + $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; + } + + // 최근배송지 + $sql = " select * + from {$g5['g5_shop_order_address_table']} + where mb_id = '{$member['mb_id']}' + and ad_default = '0' + order by ad_id desc + limit 2 "; + $result = sql_query($sql); + for($i=0; $row=sql_fetch_array($result); $i++) { + $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; + $val2 = ''; + $addr_list .= ' '.PHP_EOL.$val2.PHP_EOL; + } + + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; + ?> + + + + + + + + + 최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')'; - $addr_list .= ' '.PHP_EOL.$val2.PHP_EOL; - } - - $addr_list .= ''.PHP_EOL; - $addr_list .= ''.PHP_EOL; - ?> - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - -
배송지선택 + + 배송지목록 +
+ + + +
배송지선택 - - 배송지목록 -
- - - -
주소 - - - - - - - - -
-
+ ?> +
주소 + + + - + + + + + - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + +

결제정보 입력

- - - 0) { ?> - - - - - - - - - - 0) { ?> - - - - - - - - - - - - - - - - - - -
주문할인쿠폰 - - -
주문할인금액0
배송비할인쿠폰 - - -
배송비할인금액0
총 주문금액
추가배송비0원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)
+
+ + + 0) { ?> + + + + + + + + + + 0) { ?> + + + + + + + + + + + + + + + + + + +
주문할인쿠폰 + + +
주문할인금액0
배송비할인쿠폰 + + +
배송비할인금액0
총 주문금액
추가배송비0원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)
+
결제포인트 : 점 ('.$point_unit.'점 단위로 입력하세요.)'; + echo '
결제포인트 : 점 ('.$point_unit.'점 단위로 입력하세요.)
'; echo '
회원님의 보유포인트('.display_point($member['mb_point']).')중 '.display_point($temp_point).'까지 사용 가능합니다.
'; $multi_settle++; } diff --git a/mobile/shop/orderinquiry.sub.php b/mobile/shop/orderinquiry.sub.php index 0facac7f4..85d94204e 100644 --- a/mobile/shop/orderinquiry.sub.php +++ b/mobile/shop/orderinquiry.sub.php @@ -6,46 +6,48 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가 - - - - - - - - - - - - +
+
주문번호주문일시주문금액쿠폰입금액
+ + + + + + + + + + + - - - - - - - + + + + + + + -'; -?> - -
주문번호주문일시주문금액쿠폰입금액
- - - ()
+ + + ()
주문 내역이 없습니다.
+ if ($i == 0) + echo '주문 내역이 없습니다.'; + ?> + + + \ No newline at end of file diff --git a/mobile/shop/orderinquiryview.php b/mobile/shop/orderinquiryview.php index fc29a92fa..558b6007a 100644 --- a/mobile/shop/orderinquiryview.php +++ b/mobile/shop/orderinquiryview.php @@ -61,57 +61,59 @@ include_once(G5_MSHOP_PATH.'/_head.php');

- - - - - - - - - - - - - +
옵션항목수량판매가소계포인트상태
+ + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - -
옵션항목수량판매가소계포인트상태
+ $st_count1++; + if($opt['ct_status'] == '주문') + $st_count2++; + } + ?> + + +

결제정보

- - - - - - - - - - - - - - +
+
주문번호
주문일시
+ + + + + + + + + + + + + - - - - - - - - - 0) - { - ?> - - - - - - - - - - - - - - - - - - - - - - - - 0) - { - ?> - - - - - - 0) - { - ?> - - - - - - - - + + + + + + + 0) { ?> - 현금영수증 확인하기 + + + + - 현금영수증을 발급하시려면 클릭하십시오. - - - - + + + + - -
주문번호
주문일시
결제방식
결제금액
결제일시
입금자명
입금계좌
영수증 - - 영수증 출력 - - 영수증 출력 - - -
포인트사용
취소/환불 금액
현금영수증 +
결제방식
결제금액
결제일시
+ + // 계좌정보 + if($disp_bank) + { + ?> + + 입금자명 + + + + 입금계좌 + + + + + 영수증 + + + 영수증 출력 + + 영수증 출력 + + + + + 0) + { + ?> + + 포인트사용 + + + + 0) + { + ?> + + 취소/환불 금액 + + + + + 현금영수증 + + + 현금영수증 확인하기 + + 현금영수증을 발급하시려면 클릭하십시오. + + + + + + +

주문하신 분

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
이 름
전화번호
핸드폰
주 소
E-mail
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
이 름
전화번호
핸드폰
주 소
E-mail
+
+

받으시는 분

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
이 름
전화번호
핸드폰
주 소
희망배송일 -
전하실 말씀 -
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
이 름
전화번호
핸드폰
주 소
희망배송일 +
전하실 말씀 +
+

배송정보

- - - - - - - +
+ + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - -
배송회사 [배송조회하기]
운송장번호
배송일시
고객센터 전화
배송회사 [배송조회하기]
운송장번호
배송일시
고객센터 전화
아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.
아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.
+ ?> + + +
@@ -517,7 +531,7 @@ include_once(G5_MSHOP_PATH.'/_head.php'); - + @@ -538,10 +552,10 @@ include_once(G5_MSHOP_PATH.'/_head.php'); 모의입금처리

관리자가 가상계좌 테스트를 한 경우에만 보입니다.

-
-
-
-

+
+
+
+

diff --git a/mobile/shop/personalpayform.php b/mobile/shop/personalpayform.php index f73d4639d..e2b0e661a 100644 --- a/mobile/shop/personalpayform.php +++ b/mobile/shop/personalpayform.php @@ -106,26 +106,28 @@ if($default['de_escrow_use']) {

개인결제정보

- - - - - - - - - - - - - - - - - - - -
결제금액
+
+ + + + + + + + + + + + + + + + + + + +
결제금액
+

결제정보

- - - - - - - - - - - - - - - - - 0) { ?> - - - - - - - - - +
주문번호
결제방식
결제금액
결제일시
+ + + + + + + + + + + + + + + + 0) { ?> + + + + + + + + + - - - - - + + + + + - - - - - - - - - + + + + + + + + + - - - + + - - - -
주문번호
결제방식
결제금액
결제일시
입금자명
입금계좌
입금자명
입금계좌
영수증 - - 영수증 출력 - +
영수증 + + 영수증 출력 + - 영수증 출력 - - -
+ if($pp['pp_settle_case'] == '신용카드') + { + ?> + 영수증 출력 + + + + + + + +
@@ -178,10 +180,10 @@ include_once(G5_MSHOP_PATH.'/_head.php'); 모의입금처리

관리자가 가상계좌 테스트를 한 경우에만 보입니다.

-
-
-
-

+
+
+
+

diff --git a/mobile/shop/wishlist.php b/mobile/shop/wishlist.php index 8b7b320e0..e7e2d825a 100644 --- a/mobile/shop/wishlist.php +++ b/mobile/shop/wishlist.php @@ -15,71 +15,73 @@ include_once(G5_MSHOP_PATH.'/_head.php'); - - - - - - - - - - - +
이미지상품명선택삭제
+ + + + + + + + + + + $image = get_it_image($row['it_id'], 70, 70); + $it_point = get_item_point($row); + ?> - - - - - - - + + + + + + '; - ?> - -
이미지상품명선택삭제
- - 보관일시 - - - 품절 - - - - - - - - - 삭제
+ + 보관일시 + + + 품절 + + + + + + + + + 삭제
보관함이 비었습니다.
+ if ($i == 0) + echo '보관함이 비었습니다.'; + ?> + + +
diff --git a/mobile/skin/shop/basic/itemqaform.skin.php b/mobile/skin/shop/basic/itemqaform.skin.php index d091a5060..408d8f6c2 100644 --- a/mobile/skin/shop/basic/itemqaform.skin.php +++ b/mobile/skin/shop/basic/itemqaform.skin.php @@ -13,22 +13,24 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - - - - - - - - - - - - - - - -
+
+ + + + + + + + + + + + + + + +
+
diff --git a/mobile/skin/shop/basic/itemuseform.skin.php b/mobile/skin/shop/basic/itemuseform.skin.php index c67fbcdf8..64471d026 100644 --- a/mobile/skin/shop/basic/itemuseform.skin.php +++ b/mobile/skin/shop/basic/itemuseform.skin.php @@ -13,54 +13,56 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - - - - - - - - - - - - - - - - - - - -
평가 -
    -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
-
+
+ + + + + + + + + + + + + + + + + + + +
평가 +
    +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
+
+
diff --git a/shop/cart.php b/shop/cart.php index 52489a331..26cb091f3 100644 --- a/shop/cart.php +++ b/shop/cart.php @@ -26,111 +26,113 @@ include_once('./_head.php');
- - - - - - - - - - - - - - +
상품이미지상품명총수량판매가소계포인트 - - -
+ + + + + + + + + + + + + '$ctime' "; - } - $sql .= " group by a.it_id "; - $sql .= " order by a.ct_id "; - $result = sql_query($sql); - - $it_send_cost = 0; - - for ($i=0; $row=mysql_fetch_array($result); $i++) - { - // 합계금액 계산 - $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, - SUM(ct_point * ct_qty) as point, - SUM(ct_qty) as qty - from {$g5['g5_shop_cart_table']} - where it_id = '{$row['it_id']}' - and od_id = '$s_cart_id' "; - $sum = sql_fetch($sql); - - if ($i==0) { // 계속쇼핑 - $continue_ca_id = $row['ca_id']; + // $s_cart_id 로 현재 장바구니 자료 쿼리 + $sql = " select a.ct_id, + a.it_id, + a.it_name, + a.ct_price, + a.ct_point, + a.ct_qty, + a.ct_status, + a.ct_send_cost, + b.ca_id, + b.ca_id2, + b.ca_id3 + from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) + where a.od_id = '$s_cart_id' "; + if($default['de_cart_keep_term']) { + $ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400)); + $sql .= " and a.ct_time > '$ctime' "; } + $sql .= " group by a.it_id "; + $sql .= " order by a.ct_id "; + $result = sql_query($sql); - $a1 = ''; - $a2 = ''; - $image = get_it_image($row['it_id'], 70, 70); + $it_send_cost = 0; - $it_name = $a1 . stripslashes($row['it_name']) . $a2; - $it_options = print_item_options($row['it_id'], $s_cart_id); - if($it_options) { - $mod_options = '
'; - $it_name .= '
'.$it_options.'
'; + for ($i=0; $row=mysql_fetch_array($result); $i++) + { + // 합계금액 계산 + $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, + SUM(ct_point * ct_qty) as point, + SUM(ct_qty) as qty + from {$g5['g5_shop_cart_table']} + where it_id = '{$row['it_id']}' + and od_id = '$s_cart_id' "; + $sum = sql_fetch($sql); + + if ($i==0) { // 계속쇼핑 + $continue_ca_id = $row['ca_id']; + } + + $a1 = ''; + $a2 = ''; + $image = get_it_image($row['it_id'], 70, 70); + + $it_name = $a1 . stripslashes($row['it_name']) . $a2; + $it_options = print_item_options($row['it_id'], $s_cart_id); + if($it_options) { + $mod_options = '
'; + $it_name .= '
'.$it_options.'
'; + } + + $point = $sum['point']; + $sell_price = $sum['price']; + ?> + + + + + + + + + + + + '; + } else { + // 배송비 계산 + $send_cost = get_sendcost($s_cart_id, 0); } - - $point = $sum['point']; - $sell_price = $sum['price']; - ?> - - - - - - - - - - - - '; - } else { - // 배송비 계산 - $send_cost = get_sendcost($s_cart_id, 0); - } - ?> - -
상품이미지상품명총수량판매가소계포인트 + + +
+ + + + + + +
장바구니에 담긴 상품이 없습니다.
- - - - - - -
장바구니에 담긴 상품이 없습니다.
+ ?> + + +

- - - - - - - - - - - +
쿠폰명적용대상할인금액사용기한
+ + + + + + + + + + + + + + + + + - - - - - - - '; - ?> - -
쿠폰명적용대상할인금액사용기한
~
~
사용할 수 있는 쿠폰이 없습니다.
+ if(!$cp_count) + echo '사용할 수 있는 쿠폰이 없습니다.'; + ?> + + +
diff --git a/shop/itemrecommend.php b/shop/itemrecommend.php index c8439b09d..d82b5a5a5 100644 --- a/shop/itemrecommend.php +++ b/shop/itemrecommend.php @@ -21,11 +21,12 @@ include_once(G5_PATH.'/head.sub.php');

-
- - - - + + + + +
+
@@ -45,14 +46,14 @@ include_once(G5_PATH.'/head.sub.php');
- -
- - 창닫기 -
-
+
+ + 창닫기 +
+ +
- - - - - - + + + + + + + + + + + 주소 + + + + - + + + + + + + + + + + + + + - - - - - - 이후로 배송 바랍니다. - - - - - + + + + + + 이후로 배송 바랍니다. + + + + + +
@@ -693,105 +698,107 @@ function get_intall_file()

받으시는 분

- - - +
+ + '.PHP_EOL; - $addr_list .= ''.PHP_EOL; + // 주문자와 동일 + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; - // 기본배송지 - $sql = " select * - from {$g5['g5_shop_order_address_table']} - where mb_id = '{$member['mb_id']}' - and ad_default = '1' "; - $row = sql_fetch($sql); - if($row['ad_id']) { - $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; - $addr_list .= ''.PHP_EOL; - $addr_list .= ''.PHP_EOL; + // 기본배송지 + $sql = " select * + from {$g5['g5_shop_order_address_table']} + where mb_id = '{$member['mb_id']}' + and ad_default = '1' "; + $row = sql_fetch($sql); + if($row['ad_id']) { + $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; + } + + // 최근배송지 + $sql = " select * + from {$g5['g5_shop_order_address_table']} + where mb_id = '{$member['mb_id']}' + and ad_default = '0' + order by ad_id desc + limit 2 "; + $result = sql_query($sql); + for($i=0; $row=sql_fetch_array($result); $i++) { + $val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject']; + $val2 = ''; + $addr_list .= ' '.PHP_EOL.$val2.PHP_EOL; + } + + $addr_list .= ''.PHP_EOL; + $addr_list .= ''.PHP_EOL; + ?> + + + + + + + + + 최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')'; - $addr_list .= ' '.PHP_EOL.$val2.PHP_EOL; - } - - $addr_list .= ''.PHP_EOL; - $addr_list .= ''.PHP_EOL; - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
배송지선택 + + 배송지목록 +
+ + + +
배송지선택 - - 배송지목록 -
- - - -
주소 - - - - - - - - - - - - -
+ ?> + + + + + + + + + + + + + + + 주소 + + + + - + + + + + + + + + + + + + + + + +
@@ -838,44 +845,46 @@ function get_intall_file()

결제정보

- - - 0) { ?> - - - - - - - - - - 0) { ?> - - - - - - - - - - - - - - - - - - -
주문할인쿠폰 - - -
주문할인금액0
배송비할인쿠폰 - - -
배송비할인금액0
총 주문금액
추가배송비0원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)
+
+ + + 0) { ?> + + + + + + + + + + 0) { ?> + + + + + + + + + + + + + + + + + + +
주문할인쿠폰 + + +
주문할인금액0
배송비할인쿠폰 + + +
배송비할인금액0
총 주문금액
추가배송비0원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)
+
- - - - - - - - - - - - - - +
+
주문서번호주문일시상품수주문금액쿠폰입금액미입금액
+ + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + -'; -?> - -
주문서번호주문일시상품수주문금액쿠폰입금액미입금액
- - - ()
+ + + ()
주문 내역이 없습니다.
+ if ($i == 0) + echo '주문 내역이 없습니다.'; + ?> + + + \ No newline at end of file diff --git a/shop/orderinquiryview.php b/shop/orderinquiryview.php index fb7bb1d49..8690fc252 100644 --- a/shop/orderinquiryview.php +++ b/shop/orderinquiryview.php @@ -76,57 +76,59 @@ if(openwin != null) {

- - - - - - - - - - - - - +
옵션항목수량판매가소계포인트상태
+ + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - -
옵션항목수량판매가소계포인트상태
+ $st_count1++; + if($opt['ct_status'] == '주문') + $st_count2++; + } + ?> + + +

결제정보

- +
+
@@ -364,131 +367,140 @@ if(openwin != null) {

주문하신 분

-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
이 름
전화번호
핸드폰
주 소
E-mail
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
이 름
전화번호
핸드폰
주 소
E-mail
+

받으시는 분

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
이 름
전화번호
핸드폰
주 소
희망배송일 -
전하실 말씀 -
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
이 름
전화번호
핸드폰
주 소
희망배송일 +
전하실 말씀 +
+

배송정보

- - - - - - - +
+ + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - -
배송회사 [배송조회하기]
운송장번호
배송일시
고객센터 전화
배송회사 [배송조회하기]
운송장번호
배송일시
고객센터 전화
아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.
아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.
+ ?> + + +
diff --git a/shop/orderitemcoupon.php b/shop/orderitemcoupon.php index 8f3736443..14a586a92 100644 --- a/shop/orderitemcoupon.php +++ b/shop/orderitemcoupon.php @@ -42,47 +42,49 @@ $count = mysql_num_rows($result);
0) { ?> - - - - - - - - - - - +
쿠폰 선택
쿠폰명할인금액적용
+ + + + + + + + + + $row['cp_maximum']) + $dc = $row['cp_maximum']; + ?> + + + + + + $row['cp_maximum']) - $dc = $row['cp_maximum']; - ?> - - - - - - - -
쿠폰 선택
쿠폰명할인금액적용
+ + + + +
- - - - -
+ ?> + + +
사용할 수 있는 쿠폰이 없습니다.

'; diff --git a/shop/ordersendcostcoupon.php b/shop/ordersendcostcoupon.php index 0eb6a146a..8dd972aa1 100644 --- a/shop/ordersendcostcoupon.php +++ b/shop/ordersendcostcoupon.php @@ -22,50 +22,52 @@ $count = mysql_num_rows($result);
0) { ?> - - - - - - - - - - - +
쿠폰 선택
쿠폰명할인금액적용
+ + + + + + + + + + $row['cp_maximum']) + $dc = $row['cp_maximum']; + + if($dc > $send_cost) + $dc = $send_cost; + ?> + + + + + + $row['cp_maximum']) - $dc = $row['cp_maximum']; - - if($dc > $send_cost) - $dc = $send_cost; - ?> - - - - - - - -
쿠폰 선택
쿠폰명할인금액적용
+ + + + +
- - - - -
+ ?> + + +
사용할 수 있는 쿠폰이 없습니다.

'; diff --git a/shop/personalpayform.php b/shop/personalpayform.php index 40a433ae9..585bc1ca4 100644 --- a/shop/personalpayform.php +++ b/shop/personalpayform.php @@ -347,26 +347,28 @@ function get_intall_file()

개인결제정보

- - - - - - - - - - - - - - - - - - - -
결제금액
+
+ + + + + + + + + + + + + + + + + + + +
결제금액
+

결제정보

- - - - - - - - - - - - - - - - - - - - - - - - - - +
주문번호
결제방식
결제금액
결제일시
+ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - + + + + + + + + + - - - + + - - - -
주문번호
결제방식
결제금액
결제일시
입금자명
입금계좌
입금자명
입금계좌
영수증 - - 영수증 출력 - +
영수증 + + 영수증 출력 + - 영수증 출력 - - -
+ if($pp['pp_settle_case'] == '신용카드') + { + ?> + 영수증 출력 + + + + + + + +
diff --git a/shop/search.php b/shop/search.php index 3f2e97c57..e90ecd36b 100644 --- a/shop/search.php +++ b/shop/search.php @@ -104,44 +104,46 @@ $total_count = $row['cnt']; $ca_temp = ''.$row2['ca_name'].' > '; } ?> - - - - - - - +
+
상품
이미지 - 상품명판매가격 - 포인트 -
+ + + + + + - - + - - - - - - - - -
상품
이미지 + 상품명판매가격 + 포인트 +
+ $image = get_it_image($row['it_id'], (int)($default['de_simg_width']), (int)($default['de_simg_height']), true); + ?> + + + + + + + + + + diff --git a/shop/taxsave_kcp.php b/shop/taxsave_kcp.php index 1f73fbe69..10d843b31 100644 --- a/shop/taxsave_kcp.php +++ b/shop/taxsave_kcp.php @@ -137,34 +137,36 @@ $amt_tax = (int)($amt_tot - $amt_sup);

주문정보

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
주문 번호
상품 정보
주문자 이름
주문자 E-Mail
주문자 전화번호
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
주문 번호
상품 정보
주문자 이름
주문자 E-Mail
주문자 전화번호
+
@@ -184,52 +186,54 @@ $amt_tax = (int)($amt_tot - $amt_sup); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
원 거래 시각
발행 용도 - 소득공제용        - 지출증빙용 -
- - - ("-" 생략) -
거래금액 총합
공급가액
봉사료
부가가치세
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
원 거래 시각
발행 용도 + 소득공제용        + 지출증빙용 +
+ + + ("-" 생략) +
거래금액 총합
공급가액
봉사료
부가가치세
+
diff --git a/shop/wishlist.php b/shop/wishlist.php index d561439f6..b6d5906a9 100644 --- a/shop/wishlist.php +++ b/shop/wishlist.php @@ -21,68 +21,71 @@ include_once('./_head.php'); - - - - - - - - - - - - +
선택이미지상품명보관일시삭제
+ + + + + + + + + + + + $image = get_it_image($row['it_id'], 70, 70); + $it_point = get_item_point($row); + ?> - - - - - - - - + + + + + + + '; - ?> - -
선택이미지상품명보관일시삭제
- - 품절 - - - - - - - - - 삭제
+ + 품절 + + + + + + + + + 삭제
보관함이 비었습니다.
+ if ($i == 0) + echo '보관함이 비었습니다.'; + ?> + + + +
diff --git a/skin/poll/shop_basic/poll_result.skin.php b/skin/poll/shop_basic/poll_result.skin.php index c2d310191..4e59d4de3 100644 --- a/skin/poll/shop_basic/poll_result.skin.php +++ b/skin/poll/shop_basic/poll_result.skin.php @@ -60,28 +60,31 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 - +

- - - - - - - - - - - - - - - - - - - -
자동등록방지
+ +
+ + + + + + + + + + + + + + + + + + + +
자동등록방지
+
diff --git a/skin/shop/basic/itemqaform.skin.php b/skin/shop/basic/itemqaform.skin.php index 692a17a38..428e67292 100644 --- a/skin/shop/basic/itemqaform.skin.php +++ b/skin/shop/basic/itemqaform.skin.php @@ -13,22 +13,24 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - - - - - - - - - - - - - - - -
+
+ + + + + + + + + + + + + + + +
+
diff --git a/skin/shop/basic/itemuseform.skin.php b/skin/shop/basic/itemuseform.skin.php index d95b308d8..f1c119202 100644 --- a/skin/shop/basic/itemuseform.skin.php +++ b/skin/shop/basic/itemuseform.skin.php @@ -13,54 +13,56 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - - - - - - - - - - - - - - - - - - - -
평가 -
    -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
  • - > - - -
  • -
-
+
+ + + + + + + + + + + + + + + + + + + +
평가 +
    +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
  • + > + + +
  • +
+
+