사용자: 게시판스킨 현재 읽고 있는 글 표시

This commit is contained in:
whitedot
2013-01-11 13:26:00 +09:00
parent 8591862c48
commit 1f5e5f6f4b
2 changed files with 5 additions and 4 deletions

View File

@ -290,6 +290,7 @@ a {color:#000;text-decoration:none}
#bo_list td {line-height:1em}
#bo_list img {vertical-align:top}
.bo_cate_link {display:inline-block;margin:0 10px 0 0;font-weight:bold;text-decoration:none}
.bo_current {color:#ff3061}
.td_subject img {margin-left:5px}
/* 게시판 쓰기 */

View File

@ -89,8 +89,8 @@ for ($i=0; $i<count($list); $i++) {
<?
if ($list[$i]['is_notice']) // 공지사항
echo '공지';
else if ($wr_id == $list[$i]['wr_id']) // 현재위치
echo $list[$i]['num'];
else if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
else
echo $list[$i]['num'];
?>
@ -102,10 +102,10 @@ for ($i=0; $i<count($list); $i++) {
echo $list[$i]['icon_reply'];
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link<? if ($wr_id == $list[$i]['wr_id']) echo " bo_current";?>"><?=$list[$i]['ca_name']?></a>
<? } ?>
<a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?>
<a href="<?=$list[$i]['href']?>"<? if ($wr_id == $list[$i]['wr_id']) echo " class=\"bo_current\"";?>><?=$list[$i]['subject']?>
<? if ($list[$i]['comment_cnt']) { ?><?=$list[$i]['comment_cnt'];?><? } ?>