최신글 인데 좀 봐주세요 > 그누4 질문답변

그누4 질문답변

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

최신글 인데 좀 봐주세요 정보

최신글 인데 좀 봐주세요

본문

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

$mod = 1;  // 한행당 몇개씩?
?>

<table width=96% cellpadding=0 cellspacing=0 align="center">
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>

<tr>
    <td colspan=4 align=center>
        <table width=95%><tr>


<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr><tr><td colspan=$mod height=1><img src='$latest_skin_path/img/dotline.gif'></td></tr>"; }
?>
<td width="50%" height=18>
            <?
echo "<div style='width:100%;overflow:hidden;'>";
echo "<img src='$latest_skin_path/img/latest_icon.gif' align=absmiddle>&nbsp;";
            echo "<a href=\"{$list[$i][href]}\" title='[{$list[$i][gr_subject]}] {$list[$i][subject]}'>";
 
            echo "&nbsp;". $list[$i][bo_subject];
            echo "&nbsp;". $list[$i][wr_subject];

echo "</a>";
echo "</div>";
            ?></td>

<? } ?>

</tr>
</table></td>
</tr>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
    echo "<td>&nbsp;</td>";
}
?>

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

</table>

위 소스로 최신글사용합니다.

24시간 이내에 글이 있을경우 new.gif  뉴아이콘을 나타나게 하였으면 합니다.

자료 찾아서 해 보니 잘 안되네요

좀..그리고
            echo "&nbsp;". $list[$i][bo_subject];
            echo "&nbsp;". $list[$i][wr_subject];
위 보드제목하고 게시판등록제목하고 색상을 좀 다르게 했으면 하구요
부탁좀...

댓글 전체

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

회원로그인

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