그룹 최신글에 날짜출력하는 방법좀 알려주세요

그룹 최신글에 날짜출력하는 방법좀 알려주세요

QA

그룹 최신글에 날짜출력하는 방법좀 알려주세요

본문

그룹최신글을 뽑아왔는데요..

제목만 나오고 있어요..

최신글이
[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

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT