테스트 사이트 - 개발 중인 베타 버전입니다

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

· 14년 전 · 1483 · 2
<?
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'];
감사합니다.

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440