[도움] 최신글 두줄 정열 도움 부탁드립니다..
최신글을 두줄 정열 하고 싶은데 혹시 방법이있을까요?
그러니깐 가로 3개 넘으면 한칸 내려야 다음줄 출력....
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border="0">
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"226\" height=\"108\"border=\"0\">";
} else {
$file="";
}
?>
<td align=center width="39" height="167">
<table border="1" cellspacing="0" bordercolordark="white" bordercolorlight="black" width="218">
<tr>
<td width="212">
<table width="202" cellspacing="0" bordercolordark="white" bordercolorlight="black" cellpadding="0">
<tr>
<td width="202" height="34" style="border:0px solid #DDDDDD">
<p align="left"> <?=$list[$i]['subject']?></p>
</td>
</tr>
<tr>
<td width="202" height="29" style="border-width:0px; border-color:rgb(221,221,221); border-style:solid;"> <p><a href="<?=$list[$i]['href']?>"><?=$file?></a></p>
</td>
</tr>
<tr>
<td width="202" height="110" style="border-width:0px; border-color:rgb(221,221,221); border-style:solid;">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="185">
<table cellpadding="0" cellspacing="0" width="226" bgcolor="#EEEEEE" align="center">
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/1.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['subject']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/2.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_5']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/3.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_1']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/4.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_3']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/5.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_8']?></a></font></p>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<td width="1038" height="167">
<p align="center"><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></p>
</td>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr> <td colspan=4 align=center height=50 width="1131">
<p align="center"><font color=#6A6A6A>게시물이 없습니다.</a></p>
</td></tr><? } ?>
</table>
그러니깐 가로 3개 넘으면 한칸 내려야 다음줄 출력....
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border="0">
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"226\" height=\"108\"border=\"0\">";
} else {
$file="";
}
?>
<td align=center width="39" height="167">
<table border="1" cellspacing="0" bordercolordark="white" bordercolorlight="black" width="218">
<tr>
<td width="212">
<table width="202" cellspacing="0" bordercolordark="white" bordercolorlight="black" cellpadding="0">
<tr>
<td width="202" height="34" style="border:0px solid #DDDDDD">
<p align="left"> <?=$list[$i]['subject']?></p>
</td>
</tr>
<tr>
<td width="202" height="29" style="border-width:0px; border-color:rgb(221,221,221); border-style:solid;"> <p><a href="<?=$list[$i]['href']?>"><?=$file?></a></p>
</td>
</tr>
<tr>
<td width="202" height="110" style="border-width:0px; border-color:rgb(221,221,221); border-style:solid;">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="185">
<table cellpadding="0" cellspacing="0" width="226" bgcolor="#EEEEEE" align="center">
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/1.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['subject']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/2.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_5']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/3.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_1']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/4.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_3']?></a></font></p>
</td>
</tr>
<tr align="center" valign="middle">
<td width="226" bgcolor="#EEEEEE" height="30" align="center" valign="middle">
<p align="left"><font color="#999999"><span style='color:#666666'><B><img src="http://freedogs.cafe24.com/b/images/5.jpg" width="91" height="16" border="0" align="middle"><?=$list[$i]['wr_8']?></a></font></p>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<td width="1038" height="167">
<p align="center"><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></p>
</td>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr> <td colspan=4 align=center height=50 width="1131">
<p align="center"><font color=#6A6A6A>게시물이 없습니다.</a></p>
</td></tr><? } ?>
</table>
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66454 | 11년 전 | 3462 | ||
| 66453 | 11년 전 | 2860 | ||
| 66452 |
jumphu
|
11년 전 | 3168 | |
| 66451 | 11년 전 | 2034 | ||
| 66450 | 11년 전 | 3170 | ||
| 66449 |
겸손1935
|
11년 전 | 3103 | |
| 66448 | 11년 전 | 2890 | ||
| 66447 |
열라뽕똬이
|
11년 전 | 2286 | |
| 66446 | 11년 전 | 3760 | ||
| 66445 | 11년 전 | 2601 | ||
| 66444 | 11년 전 | 3217 | ||
| 66443 | 11년 전 | 2724 | ||
| 66442 |
missGo
|
11년 전 | 3175 | |
| 66441 | 11년 전 | 2725 | ||
| 66440 | 11년 전 | 2753 | ||
| 66439 | 11년 전 | 3047 | ||
| 66438 | 11년 전 | 11576 | ||
| 66437 |
heon2slow
|
11년 전 | 3505 | |
| 66436 | 11년 전 | 2731 | ||
| 66435 | 11년 전 | 2509 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기