diff --git a/adm/shop_admin/itemuseform.php b/adm/shop_admin/itemuseform.php index d054ca59d..edefcc6bd 100644 --- a/adm/shop_admin/itemuseform.php +++ b/adm/shop_admin/itemuseform.php @@ -11,9 +11,19 @@ $sql = " select * left join {$g5['g5_shop_item_table']} c on (a.it_id = c.it_id) where is_id = '$is_id' "; $is = sql_fetch($sql); + if (!$is['is_id']) alert('등록된 자료가 없습니다.'); +// 사용후기 의 답변 필드 추가 +if (!isset($is['is_reply_subject'])) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_use_table']}` + ADD COLUMN `is_reply_subject` VARCHAR(255) NOT NULL DEFAULT '' AFTER `is_confirm`, + ADD COLUMN `is_reply_content` TEXT NOT NULL AFTER `is_reply_subject`, + ADD COLUMN `is_reply_name` VARCHAR(25) NOT NULL DEFAULT '' AFTER `is_reply_content` + ", true); +} + $name = get_sideview($is['mb_id'], get_text($is['is_name']), $is['mb_email'], $is['mb_homepage']); // 확인 @@ -67,6 +77,15 @@ $qstr .= ($qstr ? '&' : '').'sca='.$sca; 내용 + + + + + + 답변 내용 + + 확인 @@ -90,7 +109,7 @@ $qstr .= ($qstr ? '&' : '').'sca='.$sca; function fitemuseform_submit(f) { - + return true; } diff --git a/adm/shop_admin/itemuseformupdate.php b/adm/shop_admin/itemuseformupdate.php index 217d1fc7d..2f23961cb 100644 --- a/adm/shop_admin/itemuseformupdate.php +++ b/adm/shop_admin/itemuseformupdate.php @@ -16,7 +16,10 @@ if ($w == "u") $sql = "update {$g5['g5_shop_item_use_table']} set is_subject = '$is_subject', is_content = '$is_content', - is_confirm = '$is_confirm' + is_confirm = '$is_confirm', + is_reply_subject = '$is_reply_subject', + is_reply_content = '$is_reply_content', + is_reply_name = '".$member['mb_nick']."' where is_id = '$is_id' "; sql_query($sql); diff --git a/css/mobile_shop.css b/css/mobile_shop.css index f47ae8477..f30b0f597 100644 --- a/css/mobile_shop.css +++ b/css/mobile_shop.css @@ -159,11 +159,14 @@ ul,li{list-style:none;padding:0;margin:0;} #sps dd img {position:relative;top:-2px} .sps_section {margin-left:80px;display:block;} +.sps_section .is_use_reply{background:url('../mobile/shop/img/use_reply.png') no-repeat;text-indent:30px;line-height:1.5em} .sps_section p {padding:0;width:100%} .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} +.sps_reply .sps_img {text-align:right;width:70px} + /* 상품문의 모음 */ #sqa_sch {margin:10px 10px} #sqa_sch #sfl{height:24px} diff --git a/mobile/shop/img/use_reply.png b/mobile/shop/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/mobile/shop/img/use_reply.png differ diff --git a/mobile/skin/shop/basic/img/use_reply.png b/mobile/skin/shop/basic/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/mobile/skin/shop/basic/img/use_reply.png differ diff --git a/mobile/skin/shop/basic/itemuse.skin.php b/mobile/skin/shop/basic/itemuse.skin.php index 04a3cf7f9..b142c42c7 100644 --- a/mobile/skin/shop/basic/itemuse.skin.php +++ b/mobile/skin/shop/basic/itemuse.skin.php @@ -22,6 +22,9 @@ add_stylesheet('', $is_subject = conv_subject($row['is_subject'],50,"…"); //$is_content = ($row['wr_content']); $is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width); + $is_reply_name = !empty($row['is_reply_name']) ? get_text($row['is_reply_name']) : ''; + $is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : ''; + $is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : ''; $is_time = substr($row['is_time'], 2, 8); $is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id']; @@ -52,6 +55,21 @@ add_stylesheet('', " class="itemuse_delete btn01">삭제 + + +
+
답변
+
+ +
+
+ +
+
+ +
+
+ diff --git a/mobile/skin/shop/basic/itemuselist.skin.php b/mobile/skin/shop/basic/itemuselist.skin.php index 3505ec561..4478a9648 100644 --- a/mobile/skin/shop/basic/itemuselist.skin.php +++ b/mobile/skin/shop/basic/itemuselist.skin.php @@ -75,6 +75,37 @@ add_stylesheet('', + + +
  • +
    + + + + +
    + + +
    +

    + +
    +
    작성자
    +
    +
    + + + +
    +
    +
  • + + 0) echo ''; if ($i == 0) echo '

    자료가 없습니다.

    '; diff --git a/mobile/skin/shop/basic/style.css b/mobile/skin/shop/basic/style.css index 0edf9cb82..344379cf2 100644 --- a/mobile/skin/shop/basic/style.css +++ b/mobile/skin/shop/basic/style.css @@ -264,6 +264,13 @@ #sit_use_write li label {display:inline-block;width:80px} #sit_use_write_star {margin:0;padding:0;list-style:none} +.sit_use_reply{position:relative;border-top:1px dotted #bbb;margin:10px 0 0 ;padding:10px 0 0 40px} +.use_reply_icon{position:absolute;top:10px;left:5px;background:url('./img/use_reply.png') no-repeat 0 0; width:28px;height:17px;text-indent:-999px;overflow:hidden;} +.use_reply_tit{font-weight:bold;line-height:1.5em} +.use_reply_name{font-size:0.92em;color:#777;margin:5px 0} +.use_reply_p{padding:10px;background:#f2f2f2;line-height:1.5em} +.use_reply_p img{max-width:100%} + /* 상품 상세보기 - 상품문의 */ #sit_qa {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9} #sit_qa_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none} diff --git a/skin/shop/basic/img/use_reply.png b/skin/shop/basic/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/skin/shop/basic/img/use_reply.png differ diff --git a/skin/shop/basic/itemuse.skin.php b/skin/shop/basic/itemuse.skin.php index 320445065..70ad318fc 100644 --- a/skin/shop/basic/itemuse.skin.php +++ b/skin/shop/basic/itemuse.skin.php @@ -21,6 +21,9 @@ add_stylesheet('', $is_name = get_text($row['is_name']); $is_subject = conv_subject($row['is_subject'],50,"…"); $is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width); + $is_reply_name = !empty($row['is_reply_name']) ? get_text($row['is_reply_name']) : ''; + $is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : ''; + $is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : ''; $is_time = substr($row['is_time'], 2, 8); $is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id']; @@ -43,6 +46,7 @@ add_stylesheet('',
    +
    @@ -51,6 +55,21 @@ add_stylesheet('', " class="itemuse_delete btn01">삭제
    + + +
    +
    답변
    +
    + +
    +
    + +
    +
    + +
    +
    + diff --git a/skin/shop/basic/itemuselist.skin.php b/skin/shop/basic/itemuselist.skin.php index 92c3da8cc..7843b070f 100644 --- a/skin/shop/basic/itemuselist.skin.php +++ b/skin/shop/basic/itemuselist.skin.php @@ -75,6 +75,37 @@ add_stylesheet('', + + +
  • +
    + + + + +
    + +
    + +

    + +
    +
    작성자
    +
    +
    + + + +
    +
    +
  • + + 0) echo ''; if ($i == 0) echo '

    자료가 없습니다.

    '; diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index a3025c2f1..30b63286e 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -442,6 +442,12 @@ .sit_use_p {margin:0 0 10px;padding:10px;border:1px solid #e9e9e9;background:#fff} .sit_use_cmd {text-align:right} +.sit_use_reply{position:relative;border-top:1px dotted #bbb;margin:10px 0 0 ;padding:10px 0 0 40px} +.use_reply_icon{position:absolute;top:10px;left:5px;background:url('./img/use_reply.png') no-repeat 0 0; width:28px;height:17px;text-indent:-999px;overflow:hidden;} +.use_reply_tit{font-weight:bold;line-height:1.5em} +.use_reply_name{font-size:0.92em;color:#777;margin:5px 0} +.use_reply_p{padding:10px;border:1px solid #e9e9e9;background:#fff;line-height:1.5em} + #sit_use_wbtn {margin:0 0 5px;text-align:right} #sit_use_write {} @@ -506,16 +512,19 @@ #sps li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9} #sps li:after {display:block;visibility:hidden;clear:both;content:""} -.sps_img {float:left;margin:0 10px 0 0;width:80px} +.sps_img {float:left;margin:0 10px 0 0;width:70px} .sps_img span {position:absolute;font-size:0;line-height:0;overflow:hidden} +.sps_reply .sps_img {text-align:right;width:70px;} +.sps_reply .sps_section h2{background:url('./img/use_reply.png') no-repeat 0 0;text-indent:30px;line-height:1.5em;} + #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 {float:left;width:640px} .sps_section p {padding:0;width:100%} .sps_con_full {padding:0;height:auto !important} .sps_con_btn {margin:5px 0 0;text-align:right} diff --git a/theme/basic/css/mobile_shop.css b/theme/basic/css/mobile_shop.css index eed9c631f..e32701f16 100644 --- a/theme/basic/css/mobile_shop.css +++ b/theme/basic/css/mobile_shop.css @@ -158,11 +158,14 @@ ul,li{list-style:none;padding:0;margin:0;} #sps dd img {position:relative;top:-2px} .sps_section {margin-left:80px;display:block;} +.sps_section .is_use_reply{background:url('../mobile/shop/img/use_reply.png') no-repeat;text-indent:30px;line-height:1.5em} .sps_section p {padding:0;width:100%} .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} +.sps_reply .sps_img {text-align:right;width:70px} + /* 상품문의 모음 */ #sqa_sch {margin:10px 10px} #sqa_sch #sfl{height:24px} diff --git a/theme/basic/mobile/shop/img/use_reply.png b/theme/basic/mobile/shop/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/theme/basic/mobile/shop/img/use_reply.png differ diff --git a/theme/basic/mobile/skin/shop/basic/img/use_reply.png b/theme/basic/mobile/skin/shop/basic/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/theme/basic/mobile/skin/shop/basic/img/use_reply.png differ diff --git a/theme/basic/mobile/skin/shop/basic/itemuse.skin.php b/theme/basic/mobile/skin/shop/basic/itemuse.skin.php index 04a3cf7f9..b142c42c7 100644 --- a/theme/basic/mobile/skin/shop/basic/itemuse.skin.php +++ b/theme/basic/mobile/skin/shop/basic/itemuse.skin.php @@ -22,6 +22,9 @@ add_stylesheet('', $is_subject = conv_subject($row['is_subject'],50,"…"); //$is_content = ($row['wr_content']); $is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width); + $is_reply_name = !empty($row['is_reply_name']) ? get_text($row['is_reply_name']) : ''; + $is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : ''; + $is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : ''; $is_time = substr($row['is_time'], 2, 8); $is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id']; @@ -52,6 +55,21 @@ add_stylesheet('', " class="itemuse_delete btn01">삭제 + + +
    +
    답변
    +
    + +
    +
    + +
    +
    + +
    +
    + diff --git a/theme/basic/mobile/skin/shop/basic/itemuselist.skin.php b/theme/basic/mobile/skin/shop/basic/itemuselist.skin.php index 3505ec561..4478a9648 100644 --- a/theme/basic/mobile/skin/shop/basic/itemuselist.skin.php +++ b/theme/basic/mobile/skin/shop/basic/itemuselist.skin.php @@ -75,6 +75,37 @@ add_stylesheet('', + + +
  • +
    + + + + +
    + + +
    +

    + +
    +
    작성자
    +
    +
    + + + +
    +
    +
  • + + 0) echo ''; if ($i == 0) echo '

    자료가 없습니다.

    '; diff --git a/theme/basic/mobile/skin/shop/basic/style.css b/theme/basic/mobile/skin/shop/basic/style.css index 355cda586..839e589c0 100644 --- a/theme/basic/mobile/skin/shop/basic/style.css +++ b/theme/basic/mobile/skin/shop/basic/style.css @@ -264,6 +264,12 @@ #sit_use_write li label {display:inline-block;width:80px} #sit_use_write_star {margin:0;padding:0;list-style:none} +.sit_use_reply{position:relative;border-top:1px dotted #bbb;margin:10px 0 0 ;padding:10px 0 0 40px} +.use_reply_icon{position:absolute;top:10px;left:5px;background:url('./img/use_reply.png') no-repeat 0 0; width:28px;height:17px;text-indent:-999px;overflow:hidden;} +.use_reply_tit{font-weight:bold;line-height:1.5em} +.use_reply_name{font-size:0.92em;color:#777;margin:5px 0} +.use_reply_p{padding:10px;background:#f2f2f2;line-height:1.5em} + /* 상품 상세보기 - 상품문의 */ #sit_qa {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9} #sit_qa_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none} diff --git a/theme/basic/skin/shop/basic/img/use_reply.png b/theme/basic/skin/shop/basic/img/use_reply.png new file mode 100644 index 000000000..14a3908ad Binary files /dev/null and b/theme/basic/skin/shop/basic/img/use_reply.png differ diff --git a/theme/basic/skin/shop/basic/itemuse.skin.php b/theme/basic/skin/shop/basic/itemuse.skin.php index 320445065..70ad318fc 100644 --- a/theme/basic/skin/shop/basic/itemuse.skin.php +++ b/theme/basic/skin/shop/basic/itemuse.skin.php @@ -21,6 +21,9 @@ add_stylesheet('', $is_name = get_text($row['is_name']); $is_subject = conv_subject($row['is_subject'],50,"…"); $is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width); + $is_reply_name = !empty($row['is_reply_name']) ? get_text($row['is_reply_name']) : ''; + $is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : ''; + $is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : ''; $is_time = substr($row['is_time'], 2, 8); $is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id']; @@ -43,6 +46,7 @@ add_stylesheet('',
    +
    @@ -51,6 +55,21 @@ add_stylesheet('', " class="itemuse_delete btn01">삭제
    + + +
    +
    답변
    +
    + +
    +
    + +
    +
    + +
    +
    + diff --git a/theme/basic/skin/shop/basic/itemuselist.skin.php b/theme/basic/skin/shop/basic/itemuselist.skin.php index 92c3da8cc..7843b070f 100644 --- a/theme/basic/skin/shop/basic/itemuselist.skin.php +++ b/theme/basic/skin/shop/basic/itemuselist.skin.php @@ -75,6 +75,37 @@ add_stylesheet('', + + +
  • +
    + + + + +
    + +
    + +

    + +
    +
    작성자
    +
    +
    + + + +
    +
    +
  • + + 0) echo ''; if ($i == 0) echo '

    자료가 없습니다.

    '; diff --git a/theme/basic/skin/shop/basic/style.css b/theme/basic/skin/shop/basic/style.css index 4e254222a..a82584d99 100644 --- a/theme/basic/skin/shop/basic/style.css +++ b/theme/basic/skin/shop/basic/style.css @@ -442,6 +442,12 @@ .sit_use_p {margin:0 0 10px;padding:10px;border:1px solid #e9e9e9;background:#fff} .sit_use_cmd {text-align:right} +.sit_use_reply{position:relative;border-top:1px dotted #bbb;margin:10px 0 0 ;padding:10px 0 0 40px} +.use_reply_icon{position:absolute;top:10px;left:5px;background:url('./img/use_reply.png') no-repeat 0 0; width:28px;height:17px;text-indent:-999px;overflow:hidden;} +.use_reply_tit{font-weight:bold;line-height:1.5em} +.use_reply_name{font-size:0.92em;color:#777;margin:5px 0} +.use_reply_p{padding:10px;border:1px solid #e9e9e9;background:#fff;line-height:1.5em} + #sit_use_wbtn {margin:0 0 5px;text-align:right} #sit_use_write {} @@ -506,16 +512,19 @@ #sps li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9} #sps li:after {display:block;visibility:hidden;clear:both;content:""} -.sps_img {float:left;margin:0 10px 0 0;width:80px} +.sps_img {float:left;margin:0 10px 0 0;width:70px} .sps_img span {position:absolute;font-size:0;line-height:0;overflow:hidden} +.sps_reply .sps_img {text-align:right;width:70px;} +.sps_reply .sps_section h2{background:url('./img/use_reply.png') no-repeat 0 0;text-indent:30px;line-height:1.5em;} + #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 {float:left;width:640px} .sps_section p {padding:0;width:100%} .sps_con_full {padding:0;height:auto !important} .sps_con_btn {margin:5px 0 0;text-align:right}