제목과 동일하게 최신글 예)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"150\" height=\"110\" style=\"border:0px solid #eeeeee;\">";
} else {
$file="";
}
?>
<td width="160" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="160" height="120" align="center" valign="top" style="padding-top:3px;" title="<?=$list[$i]['subject']?>"><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</table>
</td>
<? if($i!=count($list)-1) { ?>
<td width="5"></td>
<? } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<td height="72" align="center"><font color="#6A6A6A">게시물이 없습니다.</font></td>
<? } ?>
</tr>
</table>
가 있다면 가장 최신의 글이 아닌 2번째 부터 나오게 하는 방법을 가르쳐주세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"150\" height=\"110\" style=\"border:0px solid #eeeeee;\">";
} else {
$file="";
}
?>
<td width="160" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="160" height="120" align="center" valign="top" style="padding-top:3px;" title="<?=$list[$i]['subject']?>"><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</table>
</td>
<? if($i!=count($list)-1) { ?>
<td width="5"></td>
<? } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<td height="72" align="center"><font color="#6A6A6A">게시물이 없습니다.</font></td>
<? } ?>
</tr>
</table>
가 있다면 가장 최신의 글이 아닌 2번째 부터 나오게 하는 방법을 가르쳐주세요
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기