추천이 일정 수가 되면 별표 표시
[code]
<?php if ($list[$i]['wr_good'] >= 3) { //추천수 3 이상 ?>
<i class="fa fa-star" style="font-size:1.3em;color:#eac856;" alt="베스트 게시글"></i>
<? } ?>
[/code]
list.skin.php 제목 출력 앞에 붙여 주시면 됩니다.
첨부파일
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 6개
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">번호</th>
=======여기서 부터========
<?php if ($list[$i]['wr_good'] >= 1) { //추천수 3 이상 ?>
<i class="fa fa-star" style="font-size:1.3em;color:#eac856;" alt="베스트 게시글"></i>
<? } ?>
=====여기 까지 인가요?=======
<th scope="col">제목</th>
<th scope="col" class="mb_disp_no">글쓴이</th>
여기를 얘기하는건가요~?
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['icon_reply'] ?>
<?php
if (isset($list[$i]['icon_secret'])) echo rtrim($list[$i]['icon_secret']);
?>
<?php echo $list[$i]['subject'] ?>
</a>
저 같은 경우는 괄호 쪽에 코드를 넣었습니다.