[급급급] 최신글 추출소스 관련.. 저좀 도와주세요 ㅡ,ㅜ > 그누4 질문답변

그누4 질문답변

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

[급급급] 최신글 추출소스 관련.. 저좀 도와주세요 ㅡ,ㅜ 정보

[급급급] 최신글 추출소스 관련.. 저좀 도와주세요 ㅡ,ㅜ

본문

사용한 소스
 
<?
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">
      <?
      //날짜표시
      $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>
   <? } ?>
   <? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=5><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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