최근게시물 질문입니다. > 그누3질답

그누3질답

최근게시물 질문입니다. 정보

그누보드 최근게시물 질문입니다.

본문

하하하속상해 안묵힌다. .1212

.1212

.1212


이미지1


이미지1


이미지1



최근게시물이 여러개이면
3개는 위에 오른쪽에 글로표시하고
나머지는
아레에 이미지로 3개씩 표시할라고 합니다.
위에서 "하하속상해 안묵힌다."는 이미지로 할겁니다.
저렇게 구현좀 해주세요..
  • 복사

댓글 전체

메인에서 최근게시물 수 조절하면 테이블이깨어집니다.
12까지는 잘나오는데 그다음으로넘어가면 테이블이 깨어집니다.
수고하십시요.
<table border=1 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td>하하하하하하하 왜 안묵혀...아..속상해</td>

<td>

<? for ($i=0; $i<count($list); $i++) { ?>
<? if($i < 3){?>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<?
if($list[$i][icon_new]){
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>
<td width='' height=20><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> </td>
</tr>
</table>

<?}else{?>

<? if($i && $i%3==0) { ?>
</td></tr><tr><td colspan=2>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<? } else { ?>
</td>
<? } ?>
<td>

<table border=1 cellpadding=0 cellspacing=0 width=100%>
<tr>
<?
if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$latest_skin/noimage.gif"; }
if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
?>
<td valign=top align=center height=130>
<table border=0 cellpadding=3 cellspacing=0 width=75 height=65 border=0 style='border: 1px solid #cacaca;' onMouseOver=this.style.borderColor='#FF0001'; onMouseOut=this.style.borderColor='#cacaca'>
<tr>
<td align=center bgcolor=#ffffff>
<a href="javascript:showImgWin('<?=$list[$i][file_image1]?>')"><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' alt='<?=$list[$i][wr_subject]?>' border=0></a>
</td>
</tr>
<tr align=center>
<td height=20><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=$list[$i][subject]?></a>
</td>
</tr>
<tr align=center>
<td height=20><a href='<?=$link[$i][link1]?>' target='_blank'><?=$link[$i][link1]?></a>
</td>
</tr>
</table>

</td>
</tr>
</table>

<? } ?>
<? } ?>

<? if ($I >= 3) { ?>
</td></tr></table>
<? } ?>

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

<? if (count($list) == 0) { echo "<center>게시물이 없습니다.</center>"; } ?>
</td>
</tr>
</table>
© SIRSOFT
현재 페이지 제일 처음으로