J

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

J.Mando
· 2003-10-21 (화) 03:01:36 · 530 · 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개

2003-10-21 (화) 23:14:03
감사합니다.. 많은 도움이 되었습니다.

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

그누3질답

9,564건
+
제목 글쓴이 날짜 조회
03-10-21 조회 625
03-10-22 조회 430
03-10-21 조회 510
ggl_boy
03-10-21 조회 508
03-10-21 조회 561
03-10-21 조회 538
03-10-21 조회 753
03-10-21 조회 453
JJ.Mando
03-10-21 조회 531
03-10-20 조회 863
03-10-20 조회 1,050
03-10-20 조회 528
03-10-20 조회 449
03-10-20 조회 408
네네모똘
03-10-20 조회 923
JJ.Mando
03-10-20 조회 667
03-10-20 조회 487
03-10-20 조회 600
##rain
03-10-20 조회 373
03-10-20 조회 455