라

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

· 2007-09-18 (화) 22:08:47 · 1282 · 1
aaaaa.gif
사용한 소스
 
<?
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>

첨부파일

aaaaa.gif (2.3 KB)
0회 2007-09-18 22:08

댓글 1개

<table width=400 height="5" border="0">
를
<table width=400 height="5" border="0" cellpadding=0 cellspacing=0>
로 해보세요
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
07-09-19 조회 1,603
07-09-19 조회 1,087
07-09-19 조회 1,698
07-09-19 조회 1,717
07-09-19 조회 2,756
07-09-19 조회 2,467
07-09-19 조회 1,037
07-09-19 조회 1,608
07-09-19 조회 1,202
07-09-19 조회 1,833
07-09-19 조회 1,591
07-09-19 조회 1,607
07-09-19 조회 1,649
07-09-19 조회 1,613
07-09-19 조회 1,039
07-09-19 조회 1,250
07-09-19 조회 1,220
07-09-19 조회 1,225
07-09-18 조회 1,283
07-09-18 조회 1,587