사용후기에 관리자의 답변 달기 추가

This commit is contained in:
thisgun
2017-03-20 14:43:02 +09:00
parent 4cdd64ba33
commit 393ed70b79
22 changed files with 263 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -22,6 +22,9 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
$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&amp;wr_id='.$row['wr_id'];
@ -52,6 +55,21 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
<a href="<?php echo $itemuse_formupdate."&amp;is_id={$row['is_id']}&amp;w=d&amp;hash={$hash}"; ?>" class="itemuse_delete btn01">삭제</a>
</div>
<?php } ?>
<?php if( $is_reply_subject ){ // 사용후기 답변 내용이 있다면 ?>
<div class="sit_use_reply">
<div class="use_reply_icon">답변</div>
<div class="use_reply_tit">
<?php echo $is_reply_subject; // 답변 제목 ?>
</div>
<div class="use_reply_name">
<?php echo $is_reply_name; // 답변자 이름 ?>
</div>
<div class="use_reply_p">
<?php echo $is_reply_content; // 답변 내용 ?>
</div>
</div>
<?php } //end if ?>
</div>
</li>

View File

@ -75,6 +75,37 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
</section>
</li>
<?php
if( !empty($row['is_reply_subject']) ){ //사용후기 답변이 있다면
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
?>
<li class="sps_reply">
<div class="sps_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_reply_content'], 50, 50); ?>
<span><?php echo $row2['it_name']; ?></span>
</a>
</div>
<section class="sps_section">
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
<dl class="sps_dl">
<dt>작성자</dt>
<dd><?php echo $row['is_reply_name']; ?></dd>
</dl>
<div id="sps_con_<?php echo $i; ?>_reply" style="display:none;">
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
</div>
<div class="sps_con_btn"><button class="sps_con_<?php echo $i; ?>_reply">보기</button></div>
</section>
</li>
<?php } //end if ?>
<?php }
if ($i > 0) echo '</ol>';
if ($i == 0) echo '<p id="sps_empty">자료가 없습니다.</p>';

View File

@ -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}