테스트 사이트 - 개발 중인 베타 버전입니다

최근 게시물 (이미지) 2줄로 추출 좀 도와주세요!

· 13년 전 · 921 · 1
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


?>

<style type="text/css">strong { color:#116; font:bold 16px Dotum; letter-spacing:-1px; }</style>

<div style="padding:10px;">

<div style="padding: 5px 0 5px 10px; background:url(<?=$latest_skin_path?>/img/latest_icon.gif) 0 10px no-repeat;">
<table width="620" border="0" cellpadding="0" cellspacing="0"><tr>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'><strong><?=$ca_name?></strong></a></td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'><img src="<?=$latest_skin_path?>/img/board_more.gif" border="0" alt="" /></a></td>
</tr></table>
</div>

<? if(count($list)) { ?>
<table border="0" cellpadding="0" cellspacing="0"><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if($i>0) $pd = " style=\"padding-left:5px;\";" ?>
<td<?=$pd?>><div style="padding:1px; border:solid 1px #CCC;"><a href="<?=$list[$i][href]?>"><img src="<?=$list[$i][file][0][path]?>/<?=$list[$i][file][0][file]?>" width="118" height="86" border="0" alt="" /></a></div></td>
<? } ?>
</tr></table>
<? } else { ?>
<div style="padding:20px 0; text-align:center;">등록된 <?=$ca_name?> 사진이 없습니다.</div>
<? } ?>

</div>

가로3개 세로2줄로 총 6개의 이미지를 넣고 싶은데, 다 찾아서 수정해봐도 초보자에겐 무리네요 ㅠㅠ

어떤 방법을 써도 한줄로 6개의 이미지가 나오네요!! ㅠㅠ

소스수정 좀 도와주세요 ㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

<? for ($i=0; $i<count($list); $i++) {
if($i>0) $pd = " style=\"padding-left:5px;\";"
if($i && $i % 3==0) echo "</tr></tr>";
?>

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440