J

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

J.Mando
· 22년 전 · 466 · 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년 전 조회 351
22년 전 조회 498
22년 전 조회 565
22년 전 조회 371
22년 전 조회 447
ggl_boy
22년 전 조회 445
22년 전 조회 486
22년 전 조회 466
22년 전 조회 681
JJ.Mando
22년 전 조회 467
22년 전 조회 788
22년 전 조회 981
22년 전 조회 483
22년 전 조회 393
22년 전 조회 345
네모똘
22년 전 조회 863
JJ.Mando
22년 전 조회 621
22년 전 조회 415
22년 전 조회 533
##rain
22년 전 조회 316
🐛 버그신고