최신글 인데 좀 봐주세요 정보
최신글 인데 좀 봐주세요본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1; // 한행당 몇개씩?
?>
<table width=96% cellpadding=0 cellspacing=0 align="center">
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<td colspan=4 align=center>
<table width=95%><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr><tr><td colspan=$mod height=1><img src='$latest_skin_path/img/dotline.gif'></td></tr>"; }
?>
<td width="50%" height=18>
<?
echo "<div style='width:100%;overflow:hidden;'>";
echo "<img src='$latest_skin_path/img/latest_icon.gif' align=absmiddle> ";
echo "<a href=\"{$list[$i][href]}\" title='[{$list[$i][gr_subject]}] {$list[$i][subject]}'>";
echo " ". $list[$i][bo_subject];
echo " ". $list[$i][wr_subject];
echo "</a>";
echo "</div>";
?></td>
<? } ?>
</tr>
</table></td>
</tr>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
위 소스로 최신글사용합니다.
24시간 이내에 글이 있을경우 new.gif 뉴아이콘을 나타나게 하였으면 합니다.
자료 찾아서 해 보니 잘 안되네요
좀..그리고
echo " ". $list[$i][bo_subject];
echo " ". $list[$i][wr_subject];
위 보드제목하고 게시판등록제목하고 색상을 좀 다르게 했으면 하구요
부탁좀...
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1; // 한행당 몇개씩?
?>
<table width=96% cellpadding=0 cellspacing=0 align="center">
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<td colspan=4 align=center>
<table width=95%><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr><tr><td colspan=$mod height=1><img src='$latest_skin_path/img/dotline.gif'></td></tr>"; }
?>
<td width="50%" height=18>
<?
echo "<div style='width:100%;overflow:hidden;'>";
echo "<img src='$latest_skin_path/img/latest_icon.gif' align=absmiddle> ";
echo "<a href=\"{$list[$i][href]}\" title='[{$list[$i][gr_subject]}] {$list[$i][subject]}'>";
echo " ". $list[$i][bo_subject];
echo " ". $list[$i][wr_subject];
echo "</a>";
echo "</div>";
?></td>
<? } ?>
</tr>
</table></td>
</tr>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
위 소스로 최신글사용합니다.
24시간 이내에 글이 있을경우 new.gif 뉴아이콘을 나타나게 하였으면 합니다.
자료 찾아서 해 보니 잘 안되네요
좀..그리고
echo " ". $list[$i][bo_subject];
echo " ". $list[$i][wr_subject];
위 보드제목하고 게시판등록제목하고 색상을 좀 다르게 했으면 하구요
부탁좀...
댓글 전체

echo " ". $list[$i][wr_subject]; 부분 뒤에
echo " " . $list[$i][icon_new];
요걸 추가해주세요~
echo " " . $list[$i][icon_new];
요걸 추가해주세요~
해 봤지요 자료 찾아서 했는데 안되던데요...ㅎㅎ 물론 img폴더에 new.gif 파일 넣었구요