J

최근게시물 이미지 질문좀 하겟습니다

J.Mando
· 22년 전 · 488 · 1
<? for ($i=0; $i<count($list); $i++) { ?>
if($list[$i][file_image1]){
?>
<tr height=22>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<font color=#cc0001><?=$list[$i][subject]?></font>
<br>
<img src='<?=$list[$i][file_image1]?>' width=100 height=85 border=0 align=left>
<font color=#777777><?=cut_str(stripslashes($list[$i][content]),600,'…')?></font>
<tr><td colspan=3 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</a>
</td>
</tr>
<?} else{?>
<tr height=22>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<font color=#cc0001><?=$list[$i][subject]?></font>
<br>
<font color=#777777><?=cut_str(stripslashes($list[$i][content]),600,'…')?></font>
<tr><td colspan=3 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</a>
</td>
</tr>
<?
}
}
?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>


이렇게 해보셔요...
|

댓글 1개

22년 전
감사합니다.. 많은 도움이 되었습니다.

앞으로도 많은 지도편달 부탁드리겠습니다.^^;
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 374
22년 전 조회 528
22년 전 조회 586
22년 전 조회 391
22년 전 조회 476
ggl_boy
22년 전 조회 474
22년 전 조회 525
22년 전 조회 495
22년 전 조회 710
JJ.Mando
22년 전 조회 489
22년 전 조회 819
22년 전 조회 1,012
22년 전 조회 499
22년 전 조회 417
22년 전 조회 364
네모똘
22년 전 조회 900
JJ.Mando
22년 전 조회 641
22년 전 조회 456
22년 전 조회 572
##rain
22년 전 조회 342