최근글에서 글목록3개만 new아이콘 띄우는 방법좀... 정보
최근글에서 글목록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 " <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 " <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아이콘을 띄우고싶은데 어떻게 수정하면될지 좀 알려주시면 고맙겠습니다.
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 " <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 " <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아이콘을 띄우고싶은데 어떻게 수정하면될지 좀 알려주시면 고맙겠습니다.
댓글 전체
if ($i < 3) echo " " . $list[$i]['icon_new'];
감사합니다.