G

최근게시물 질문입니다.









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

.1212

.1212







이미지1



이미지1



이미지1



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

댓글 4개

메인에서 최근게시물 수 조절하면 테이블이깨어집니다.
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> <img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center> <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>
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

9,564건
+
제목 글쓴이 날짜 조회
04-10-01 조회 863
04-10-01 조회 439
04-10-04 조회 362
04-10-01 조회 606
04-10-01 조회 517
04-10-01 조회 594
04-10-01 조회 613
04-10-01 조회 534
04-10-01 조회 441
04-10-01 조회 429
04-10-01 조회 501
04-10-01 조회 677
04-10-01 조회 614
04-10-01 조회 575
04-09-30 조회 456
04-09-30 조회 534
04-09-30 조회 743
04-09-30 조회 453
04-09-30 조회 402
04-09-29 조회 767