사용자: 게시판스킨 댓글읽기

This commit is contained in:
whitedot
2013-01-09 16:06:10 +09:00
parent 5705a13f61
commit fa723c3a57
2 changed files with 31 additions and 8 deletions

View File

@ -314,6 +314,25 @@ h6 {margin:0 0 20px}
#bo_v_bot ul {float:right;padding:0;list-style:none}
#bo_v_bot li {float:left;margin-left:5px}
/* 게시판 댓글 */
#bo_vc {padding:10px;background:#f9f9f9}
#bo_vc h2 {margin:0;padding:0;height:0;overflow:hidden}
#bo_vc article {padding:0 10px 20px;border-bottom:1px solid #ddd}
#bo_vc header {zoom:1}
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc h1 {margin:15px 0 10px;font-size:1em}
.bo_vc_info {font-size:0.75em;zoom:1}
.bo_vc_info:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_info dt {float:left}
.bo_vc_info dd {float:left;margin:0 15px 0 10px}
#bo_vc p {padding:0}
#bo_vc footer {zoom:1}
#bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_act {float:right;font-size:0.75em;list-style:none;zoom:1}
.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_act li {float:left;margin-left:5px}
.bo_vc_act a {color:#000;text-decoration:none}
/* 우편번호 검색 */
#post_num dl {margin:0 auto 10px;padding:0;width:90%}
#post_num dt {margin-bottom:15px}

View File

@ -27,20 +27,14 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<article id="c_<?=$comment_id?>">
<header>
<h1><?=$list[$i]['name']?>님의 댓글</h1>
<dl>
<dl class="bo_vc_info">
<dt>아이피</dt>
<dd><? if ($is_ip_view) { echo $list[$i]['ip'];} ?></dd>
<dt>작성일</dt>
<dd><time datetime="<?=date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime']))?>"><?=$list[$i]['datetime']?></time></dd>
</dl>
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) { ?>
<ul>
<? if ($list[$i]['is_reply']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'c');">답변</a></li><? } ?>
<? if ($list[$i]['is_edit']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'cu');">수정</a></li><? } ?>
<? if ($list[$i]['is_del']) { ?><li><a href="javascript:comment_delete('<?=$list[$i]['del_link']?>');">삭제</a></li><? } ?>
</ul>
<? } ?>
</header>
<!-- 댓글 출력 -->
<p><?=$str?></p>
@ -49,6 +43,16 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<input type="hidden" id="secret_comment_<?=$comment_id?>" value="<?=strstr($list[$i]['wr_option'],"secret")?>">
<textarea id="save_comment_<?=$comment_id?>"><?=get_text($list[$i]['content1'], 0)?></textarea>
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) { ?>
<footer>
<ul class="bo_vc_act">
<? if ($list[$i]['is_reply']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'c');">답변</a></li><? } ?>
<? if ($list[$i]['is_edit']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'cu');">수정</a></li><? } ?>
<? if ($list[$i]['is_del']) { ?><li><a href="javascript:comment_delete('<?=$list[$i]['del_link']?>');">삭제</a></li><? } ?>
</ul>
</footer>
<? } ?>
</article>
<?}?>