문의드립니다. 정보
문의드립니다.본문
안녕하세요^^ 다름이 아니라
최근게시몰이 기본 가로로 4개씩 나오는대 이걸 3개로 하고 싶거덩요 ㅠ
3개로 2줄로요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
?>
<table align="left" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<td width="1" bgcolor="#1c1c1c"></td>
<td width="1"></td>
<td height="21">
<table cellpadding=0 cellspacing=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=\"80\" height=\"80\">";
} else {
$file="";
}
?>
<td align=center>
<table width="80px">
<tr>
<td width="80" height="40" ><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</tr>
<tr>
<td><a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?></a></td>
</tr>
<tr>
<td><a href="<?=$list[$i]['href']?>"><span style='color:#666666;'><?=conv_subject($list[$i]['content'], 65, $cutopt="...")?></span></a></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=30><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<!--게시물 추출 글자 설정 끝-->
<td width="1" bgcolor="#1c1c1c"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><? } ?>
<tr height="1">
<td colspan="4"></td>
</tr>
</table>
이건데 어떻게 해야하나요?
최근게시몰이 기본 가로로 4개씩 나오는대 이걸 3개로 하고 싶거덩요 ㅠ
3개로 2줄로요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
?>
<table align="left" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<td width="1" bgcolor="#1c1c1c"></td>
<td width="1"></td>
<td height="21">
<table cellpadding=0 cellspacing=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=\"80\" height=\"80\">";
} else {
$file="";
}
?>
<td align=center>
<table width="80px">
<tr>
<td width="80" height="40" ><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</tr>
<tr>
<td><a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?></a></td>
</tr>
<tr>
<td><a href="<?=$list[$i]['href']?>"><span style='color:#666666;'><?=conv_subject($list[$i]['content'], 65, $cutopt="...")?></span></a></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=30><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<!--게시물 추출 글자 설정 끝-->
<td width="1" bgcolor="#1c1c1c"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><? } ?>
<tr height="1">
<td colspan="4"></td>
</tr>
</table>
이건데 어떻게 해야하나요?
댓글 전체
가로가 아니라 세로로 4줄 나오는 거겠죠?...
$i%2 = 값
값은 0 아니면 1이 나옵니다.
3 X 2 니까 6이 나오도록 설정하고요 (latest 로 불러온 곳에서 숫자로 수정합니다.)
값 마다 </tr><tr> 을 넣으면 가로 두줄로 표현 가능 합니다.
$i%2 = 값
값은 0 아니면 1이 나옵니다.
3 X 2 니까 6이 나오도록 설정하고요 (latest 로 불러온 곳에서 숫자로 수정합니다.)
값 마다 </tr><tr> 을 넣으면 가로 두줄로 표현 가능 합니다.
아 어떻게 해야하는지 ㅠ