최근글 가로 배열하기2 ? 정보
그누보드 최근글 가로 배열하기2 ?본문
텍와이드 님의 수정하신 소스대로 하니 가로로 배열되지만 에러가 생깁니다.
위에것과 같이 하려면 어떡하죠?
고수님들,수고해주세요!!
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td width=3 rowspan=3><img src='<?=$latest_skin?>/latest_01.gif' width=3 height=22></td>
<td height=1 colspan=2 bgcolor='#C9759F' width=100%></td>
<td rowspan=3 width=3><img src='<?=$latest_skin?>/latest_02.gif' width=3 height=22></td>
</tr>
<tr>
<td height=22> <a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><font color=#002200><b><?=$bo_subject?></b></font></a></td>
<td align=right><a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><img src='<?=$latest_skin?>/icon_more.gif' border=0 width=43 height=11 align=absmiddle></a> </td>
</tr>
<tr><td height=1 colspan=2 bgcolor='#AFAFAF'></td></tr>
<tr>
<td colspan=4>
<table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td width=30 align=center><img src='<?=$latest_skin?>/icon_li.gif' width=7 height=7></td>
<td width='' height=20><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
<? } ?>
<tr>
</table></td>
</tr>
</table>
위에것과 같이 하려면 어떡하죠?
고수님들,수고해주세요!!
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td width=3 rowspan=3><img src='<?=$latest_skin?>/latest_01.gif' width=3 height=22></td>
<td height=1 colspan=2 bgcolor='#C9759F' width=100%></td>
<td rowspan=3 width=3><img src='<?=$latest_skin?>/latest_02.gif' width=3 height=22></td>
</tr>
<tr>
<td height=22> <a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><font color=#002200><b><?=$bo_subject?></b></font></a></td>
<td align=right><a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><img src='<?=$latest_skin?>/icon_more.gif' border=0 width=43 height=11 align=absmiddle></a> </td>
</tr>
<tr><td height=1 colspan=2 bgcolor='#AFAFAF'></td></tr>
<tr>
<td colspan=4>
<table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td width=30 align=center><img src='<?=$latest_skin?>/icon_li.gif' width=7 height=7></td>
<td width='' height=20><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
<? } ?>
<tr>
</table></td>
</tr>
</table>
댓글 전체
무슨에러였나요?
어쨌든 님께서 원하시는 소스입니다. 테스트는 하지 않았습니다.
결과를 알려주세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td width=3 rowspan=3><img src='<?=$latest_skin?>/latest_01.gif' width=3 height=22></td>
<td height=1 colspan=2 bgcolor='#C9759F' width=100%></td>
<td rowspan=3 width=3><img src='<?=$latest_skin?>/latest_02.gif' width=3 height=22></td>
</tr>
<tr>
<td height=22> <a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><font color=#002200><b><?=$bo_subject?></b></font></a></td>
<td align=right><a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><img src='<?=$latest_skin?>/icon_more.gif' border=0 width=43 height=11 align=absmiddle></a> </td>
</tr>
<tr><td height=1 colspan=2 bgcolor='#AFAFAF'></td></tr>
<tr>
<td colspan=4>
<table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if(($i % 2) == 0) echo "<tr>"; //처음글이 0 으로 시작해서 넘버가 짝일 경우?>
<td width=30 align=center><img src='<?=$latest_skin?>/icon_li.gif' width=7 height=7></td>
<td width='' height=20><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
<? if(($i % 2) == 1) echo "</tr>"; //넘버가 홀수일 경우?>
<? } ?>
<? if(($i % 2) == 0) echo "<td></td></tr>"; // 짝수로 끝났다면 ?>
</table></td>
</tr>
</table>
어쨌든 님께서 원하시는 소스입니다. 테스트는 하지 않았습니다.
결과를 알려주세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td width=3 rowspan=3><img src='<?=$latest_skin?>/latest_01.gif' width=3 height=22></td>
<td height=1 colspan=2 bgcolor='#C9759F' width=100%></td>
<td rowspan=3 width=3><img src='<?=$latest_skin?>/latest_02.gif' width=3 height=22></td>
</tr>
<tr>
<td height=22> <a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><font color=#002200><b><?=$bo_subject?></b></font></a></td>
<td align=right><a href='./?doc=bbs/gnuboard.php&bo_table=<?=$bo_table?>'><img src='<?=$latest_skin?>/icon_more.gif' border=0 width=43 height=11 align=absmiddle></a> </td>
</tr>
<tr><td height=1 colspan=2 bgcolor='#AFAFAF'></td></tr>
<tr>
<td colspan=4>
<table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if(($i % 2) == 0) echo "<tr>"; //처음글이 0 으로 시작해서 넘버가 짝일 경우?>
<td width=30 align=center><img src='<?=$latest_skin?>/icon_li.gif' width=7 height=7></td>
<td width='' height=20><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
<? if(($i % 2) == 1) echo "</tr>"; //넘버가 홀수일 경우?>
<? } ?>
<? if(($i % 2) == 0) echo "<td></td></tr>"; // 짝수로 끝났다면 ?>
</table></td>
</tr>
</table>