최신글뽑아오기

test3.jpg
그림처럼뽑아오는방법좀 부탁드립니다.
내용은 왼쪽으로 날짜와 글쓴이은 오른쪽으로
제가하면 내용이나 글쓴이나 날짜가 다 왼쪽으로 정렬이되서여
부탁좀 드리겠습니다.

첨부파일

test3.jpg (19.1 KB)
0회 2006-04-30 13:11
|

댓글 2개

소스를 올려주시는 센쓰가 필요 하네요. ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<td><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
<td background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
<td><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}&nbsp;&nbsp;&nbsp;&nbsp;{$list[$i]['name']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$list[$i]['name']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>

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

</table>
답변주셔서 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,152
19년 전 조회 1,277
19년 전 조회 1,561
19년 전 조회 2,050
휘중
19년 전 조회 1,592
19년 전 조회 1,565
19년 전 조회 1,551
19년 전 조회 1,425
휘중
19년 전 조회 1,511
19년 전 조회 1,512
피터팬
19년 전 조회 1,492
19년 전 조회 1,508
19년 전 조회 1,552
19년 전 조회 1,584
19년 전 조회 1,509
19년 전 조회 1,492
19년 전 조회 1,470
19년 전 조회 1,529
19년 전 조회 1,914
19년 전 조회 1,023
🐛 버그신고