b

최근글에서 글목록3개만 new아이콘 띄우는 방법좀...

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100% cellpadding=0 cellspacing=0 border=0 style="margin:0 0 0 0;">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr valign="top">
<td align=center>
<table width=100% cellpadding=0 cellspacing=0 border=0 style="table-layout:fixed;">
<tr valign="top">
<td style="line-height:18px; padding:0 0 0 0;" nowrap>
<?
//날짜표시
$date1 = substr($list[$i][datetime],0,10); //날짜표시형식변경
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $year.".".$month.".".$day."";

echo $list[$i]['icon_reply'] . " ";
echo "&nbsp;<a href='{$list[$i]['href']}' onfocus='this.blur();'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:10pt; color:#606060;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:10pt; color:#606060;'>{$list[$i]['subject']}</font>";
echo "</a>";

// if ($list[$i]['comment_cnt'])
// echo "&nbsp;<a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_link'];
//echo " " . $list[$i]['icon_hot'];
//echo " " . $list[$i]['icon_secret'];
?></td><td width=10></td>
</tr>
<tr><td height=1></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#666666>게시물이 없습니다.</a></td></tr><? } ?>
</table>

------------------------------------------------------------------------------------

위의 최근글 스킨소스에서 가장 최근에 등록된 게시물3개만 new아이콘을 띄우고싶은데 어떻게 수정하면될지 좀 알려주시면 고맙겠습니다.
|

댓글 2개

if ($i < 3) echo " " . $list[$i]['icon_new'];
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 3,464
14년 전 조회 949
14년 전 조회 945
14년 전 조회 991
14년 전 조회 892
14년 전 조회 964
14년 전 조회 985
14년 전 조회 1,285
14년 전 조회 1,057
14년 전 조회 1,547
14년 전 조회 3,196
14년 전 조회 1,592
14년 전 조회 960
14년 전 조회 925
14년 전 조회 1,572
14년 전 조회 1,811
14년 전 조회 1,511
14년 전 조회 1,250
14년 전 조회 1,858
14년 전 조회 1,184
🐛 버그신고