그룹 최신글에 날짜출력하는 방법좀 알려주세요
본문
그룹최신글을 뽑아왔는데요..
제목만 나오고 있어요..
최신글이
[7월5일] 글제목 [글쓴이] [몇시간전-글올린시간]
이렇게 출력하고 싶어요..
현재는 제목만 출력되요..
wr_datetime 으로 안만 해봐도 안되요 ㅠㅠ
멀 잘못하고 있는지.. 고수님 알려주세요~!
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "";
if ($list[$i][icon_new]) {
}
$subject = "$list[$i][subject]"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td valign='top' width='98%' align='left' style='padding-top:2px; padding-bottom:4px; padding-left:8px;'>
<span class='add_font_03'><a href=\"{$list[$i]['href']}&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">".cut_str(strip_tags($list[$i][wr_subject]),40,"…")."</a></span></td>
</tr>
<tr>
<td align='center'><img src='{$latest_skin_path}/img/news_line.jpg' width='196'></td>
</tr>
</table>
";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if ($i+1 < count($list)) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } ?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</table>
<!-- 이미지보이는 부분 끝 -->
답변 3
감사합니다... 일부 적용성공했어요..
안되는것도 있어요 ㅠㅠ 감사합니다..!!!
http://sir.co.kr/bbs/board.php?bo_table=g5_skin&wr_id=565&sca=%EC%B5%9C%EC%8B%A0%EA%B8%80
참고하시면 도움될거 같네요
많은 도움이 되었습니다. 감사합니다.
답변을 작성하시기 전에 로그인 해주세요.