갤러리 최신글 두줄로 출력하면

갤러리 최신글인데요
두줄로 출력하면 어떻게 하면 되나요?
가로는 설정한 개수대로 출력되는데요
세로는 2개가 안되네요
즉 가로2개 세로 2개로 출력하려 합니다
고수님들의 조언 부탁 드립니다

첨부파일

latest.skin.php (2.2 KB) 8회 2009-11-29 17:46
|

댓글 2개

basic 스킨 사용하신다는 가정하에
아래 소스를 찾아 변경해 주세요!

---원소스 ---
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>

---- 변경소스 ----

<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td>
<? if($i%2 == "0") { ?>
</tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr></tr>
<? } else { ?>
</td>
<? } ?>
<? } ?>
</table></td>
</tr>
최신글 갤러리 두줄 출력
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 1,548
16년 전 조회 1,214
16년 전 조회 947
16년 전 조회 1,542
16년 전 조회 1,554
16년 전 조회 1,632
16년 전 조회 1,537
16년 전 조회 1,132
16년 전 조회 1,544
16년 전 조회 1,522
16년 전 조회 1,565
16년 전 조회 1,539
16년 전 조회 1,103
16년 전 조회 994
16년 전 조회 1,560
16년 전 조회 972
16년 전 조회 1,040
16년 전 조회 777
16년 전 조회 2,381
16년 전 조회 821