diff --git a/css/default_shop.css b/css/default_shop.css index c1ce268fd..9cb4db43b 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -608,6 +608,10 @@ td.empty_table {padding:85px 0;text-align:center} #sit_rel .sct_last {margin:0 !important} /* 사용후기 모음 */ +#sps_sch {margin:0 0 10px} +#sps_sch a {display:inline-block;padding:0 8px;height:22px;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.9em} +#sps_sch .btn_submit {height:22px;vertical-align:middle} + #sps {zoom:1} #sps ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none} #sps li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9} @@ -616,19 +620,44 @@ td.empty_table {padding:85px 0;text-align:center} .sps_img {float:left;margin:0 10px 0 0;width:80px} .sps_img span {position:absolute;font-size:0;line-height:0} -.sps_section {float:left;width:630px} - #sps dl {margin:5px 0 10px;zoom:1} #sps dl:after {display:block;visibility:hidden;clear:both;content:""} #sps dt {float:left} #sps dd {float:left;margin:0 20px 0 5px} #sps dd img {position:relative;top:-2px} +.sps_section {float:left;width:630px} .sps_section p {padding:0;width:100%;height:20px;overflow:hidden} .sps_con_full {padding:0;height:auto !important} .sps_con_btn {margin:5px 0 0;text-align:right} .sps_con_btn button {margin:0;padding:5px;border:0;background:#565e60;color:#fff} +/* 상품문의 모음 */ +#sqa_sch {margin:0 0 10px} +#sqa_sch a {display:inline-block;padding:0 8px;height:22px;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.9em} +#sqa_sch .btn_submit {height:22px;vertical-align:middle} + +#sqa {zoom:1} +#sqa ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none} +#sqa li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9} +#sqa li:after {display:block;visibility:hidden;clear:both;content:""} + +.sqa_img {float:left;margin:0 10px 0 0;width:80px} +.sqa_img span {position:absolute;font-size:0;line-height:0} + +#sqa dl {margin:5px 0 10px;zoom:1} +#sqa dl:after {display:block;visibility:hidden;clear:both;content:""} +#sqa dt {float:left} +#sqa dd {float:left;margin:0 20px 0 5px} +#sqa dd img {position:relative;top:-2px} + +.sqa_section {float:left;width:630px} +.sqa_section .sqa_con {padding:10px;background:#f2f5f9;line-height:1.7em} +.sqa_section p {padding:0;width:100%;height:20px;overflow:hidden} +.sqa_con_full {padding:0;height:auto !important} +.sqa_con_btn {margin:5px 0 0;text-align:right} +.sqa_con_btn button {margin:0;padding:5px;border:0;background:#565e60;color:#fff} + /* 마이페이지 */ #smb_my {} diff --git a/css/mobile_shop.css b/css/mobile_shop.css index c50bf3275..3362fd936 100644 --- a/css/mobile_shop.css +++ b/css/mobile_shop.css @@ -282,27 +282,56 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none} #sit_rel .sct_img {width:230px;height:230px} /* 사용후기 모음 */ +#sps_sch {margin:0 0 10px} +#sps_sch a {display:inline-block;padding:0 8px;height:1.8em;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.8em} +#sps_sch .btn_submit {height:1.8em;vertical-align:middle;line-height:1.8em} + #sps {zoom:1} #sps ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none} #sps li {position:relative;padding:1em;border-bottom:1px solid #e9e9e9} #sps li:after {display:block;visibility:hidden;clear:both;content:""} -.sps_img {float:left;margin:0 1em 0 0;width:80px} +.sps_img {float:left;width:15%} .sps_img span {position:absolute;font-size:0;line-height:0} -.sps_section {float:left;width:630px} - #sps dl {margin:0.3em 0 1em;zoom:1} #sps dl:after {display:block;visibility:hidden;clear:both;content:""} #sps dt {float:left} -#sps dd {float:left;margin:0 1.8em 0 0.3em} +#sps dd {float:left;margin:0 1.5em 0 0.3em} #sps dd img {position:relative;top:-2px} +.sps_section {float:right;width:80%} .sps_section p {padding:0;width:100%;height:1.8em;overflow:hidden} .sps_con_full {padding:0;height:auto !important} .sps_con_btn {margin:0.3em 0 0;text-align:right} .sps_con_btn button {margin:0;padding:0.3em;border:0;background:#565e60;color:#fff} +/* 상품문의 모음 */ +#sqa_sch {margin:0 0 10px} +#sqa_sch a {display:inline-block;padding:0 8px;height:1.8em;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.8em} +#sqa_sch .btn_submit {height:1.8em;vertical-align:middle;line-height:1.8em} + +#sqa {zoom:1} +#sqa ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none} +#sqa li {position:relative;padding:1em;border-bottom:1px solid #e9e9e9} +#sqa li:after {display:block;visibility:hidden;clear:both;content:""} + +.sqa_img {float:left;width:15%} +.sqa_img span {position:absolute;font-size:0;line-height:0} + +#sqa dl {margin:0.3em 0 1em;zoom:1} +#sqa dl:after {display:block;visibility:hidden;clear:both;content:""} +#sqa dt {float:left} +#sqa dd {float:left;margin:0 1.5em 0 0.3em} +#sqa dd img {position:relative;top:-2px} + +.sqa_section {float:right;width:80%} +.sqa_section .sqa_con {padding:1em;background:#f2f5f9;line-height:1.7em} +.sqa_section p {padding:0;width:100%;height:1.8em;overflow:hidden} +.sqa_con_full {padding:0;height:auto !important} +.sqa_con_btn {margin:0.3em 0 0;text-align:right} +.sqa_con_btn button {margin:0;padding:0.3em;border:0;background:#565e60;color:#fff} + /* 마이페이지 */ #smb_my {} diff --git a/mobile/shop/item.php b/mobile/shop/item.php index b7c911902..606d4030a 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -130,6 +130,16 @@ if ($row['it_id']) { $next_href2 = ''; } +// 관리자가 확인한 사용후기의 갯수를 얻음 +$sql = " select count(*) as cnt from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' "; +$row = sql_fetch($sql); +$item_use_count = $row['cnt']; + +// 상품문의의 갯수를 얻음 +$sql = " select count(*) as cnt from `{$g4['shop_item_qa_table']}` where it_id = '{$it_id}' "; +$row = sql_fetch($sql); +$item_qa_count = $row['cnt']; + // 관련상품의 갯수를 얻음 $sql = " select count(*) as cnt from {$g4['shop_item_relation_table']} a @@ -139,20 +149,6 @@ $row = sql_fetch($sql); $item_relation_count = $row['cnt']; ?> - -
- - @@ -517,7 +513,7 @@ else