최근게시물 옆에 날짜 나오게 하기

· 2011-05-26 (목) 11:57:11 · 1301 · 4
최근게시물 베이직 소스인데요..(latest.skin.php)
최신글에 글적을때마다 날짜표시가 안되어 있어 표시를 하고싶은데 어디에 넣어야 될지 모르겠네요..답변좀 부탁드립니다. 날짜를 표시하려면 ({$list[$i][datetime]} )를 넣을장소를 모르겠네요.

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

<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/bg_latest.gif'>  <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=37 background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>
</table>

<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=8><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:5pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$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>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
|

댓글 4개

?></td><td><?=$list[$i][datetime]?></td></tr>
<tr><td bgcolor=#EBEBEB height=1 colspan=2></td></tr>
</table>
2011-05-26 (목) 14:28:22
고맙습니다..날짜가 잘 나오네요..
죄송하지만 날짜 숫자를 좀 작게 하고싶은데..한번더 답변 주시면 고맙겠습니다.
2011-05-26 (목) 15:36:08
감사합니다.
좋은 정보 감사 합니다 ㅠㅠ _최신글 날짜_
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-05-26 조회 1,257
11-05-26 조회 1,302
11-05-26 조회 2,646
11-05-26 조회 1,701
11-05-26 조회 2,174
11-05-26 조회 2,841
11-05-26 조회 880
11-05-26 조회 1,024
11-05-26 조회 1,034
11-05-26 조회 1,091
11-05-26 조회 1,155
11-05-25 조회 1,598
11-05-25 조회 2,126
11-05-25 조회 1,228
11-05-25 조회 1,043
11-05-25 조회 2,744
11-05-25 조회 1,620
11-05-25 조회 1,107
11-05-25 조회 934
11-05-25 조회 1,664