[급급급] 최신글 추출소스 관련.. 저좀 도와주세요 ㅡ,ㅜ 정보
[급급급] 최신글 추출소스 관련.. 저좀 도와주세요 ㅡ,ㅜ본문
사용한 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> </tr>
<!-- 최신글 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=400 height="5" border="0">
<tr>
<td height=5 bgcolor="#FF0000">
<?
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=400 height="5" border="0">
<tr>
<td height=5 bgcolor="#FF0000">
<?
//날짜표시
$date1 = substr($list[$i][datetime],0,10); //날짜표시형식변경
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $month."-".$day."";
$date1 = substr($list[$i][datetime],0,10); //날짜표시형식변경
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $month."-".$day."";
//echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
//if ($list[$i]['is_notice'])
// echo "<font style='font-family:돋움; font-size:8pt; color:#999999;'>[{$latest_date}]<strong>{$list[$i]['subject']}</strong></font>";
// else
echo "<font style='font-family:돋움; font-size:8pt; color:#999999;'>[{$latest_date}]{$list[$i]['subject']}</font>";
echo "</a>";
?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
echo "<a href='{$list[$i]['href']}'>";
//if ($list[$i]['is_notice'])
// echo "<font style='font-family:돋움; font-size:8pt; color:#999999;'>[{$latest_date}]<strong>{$list[$i]['subject']}</strong></font>";
// else
echo "<font style='font-family:돋움; font-size:8pt; color:#999999;'>[{$latest_date}]{$list[$i]['subject']}</font>";
echo "</a>";
?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=5><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
댓글 전체
<table width=400 height="5" border="0">
를
<table width=400 height="5" border="0" cellpadding=0 cellspacing=0>
로 해보세요
를
<table width=400 height="5" border="0" cellpadding=0 cellspacing=0>
로 해보세요
