세로 롤링 최신글 도움 부탁드립니다. 정보
세로 롤링 최신글 도움 부탁드립니다.본문
아래 코드를 이용해 세로로 롤링되게 하려하는데 잘 안되네요..
가로 5, 세로 2칸으로 나오게 사용중입니다.
고수님들의 도움 부탁드립니다.
위로 한칸 올라가고 일정시간 멈추고 다시 한칸 올라가고 이게 반복되어야합니다.
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
list($height, $row_cnt) = explode(",", $options);
$all_cnt = 0;
$all_cnt = 0;
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width='755' cellpadding='0' cellspacing='0' border='0' align='left'>
<table width='755' cellpadding='0' cellspacing='0' border='0' align='left'>
<tr><td align='center'>
<table width='730'>
<? for ($k=0; $k<$row_cnt; $k++ ) { ?>
<tr>
<?
for ($i=0; $i<count($list)/$row_cnt; $i++)
<? for ($k=0; $k<$row_cnt; $k++ ) { ?>
<tr>
<?
for ($i=0; $i<count($list)/$row_cnt; $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$all_cnt][wr_subject]);
$content = cut_str(get_text($list[$all_cnt][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/thumbView/".urlencode($list[$all_cnt][file][0][file]);
if (!file_exists($img) || !$list[$all_cnt][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$content = cut_str(get_text($list[$all_cnt][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/thumbView/".urlencode($list[$all_cnt][file][0][file]);
if (!file_exists($img) || !$list[$all_cnt][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$list[$all_cnt][wr_price2]=number_format($list[$all_cnt][wr_price]);
if($list[$all_cnt]['ca_name'] == "그룹1")
$cat2 = "<img src='./images/group_1.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹2")
$cat2 = "<img src='./images/group_2.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹3")
$cat2 = "<img src='./images/group_3.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹4")
$cat2 = "<img src='./images/group_4.gif' border=0 >";
$cat2 = "<img src='./images/group_1.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹2")
$cat2 = "<img src='./images/group_2.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹3")
$cat2 = "<img src='./images/group_3.gif' border=0 >";
elseif($list[$all_cnt]['ca_name'] == "그룹4")
$cat2 = "<img src='./images/group_4.gif' border=0 >";
echo <<<HEREDOC
<td width='<?=$subject_len?>' valign='top' align='center'>
<table width='<?=$subject_len?>' border='0' cellpadding='0' cellspacing='0' align='center'>
<td width='<?=$subject_len?>' valign='top' align='center'>
<table width='<?=$subject_len?>' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='<?=$subject_len?>' height='<?=$height?>' align='center'>
<div style='width:<?=$subject_len?>px;height:<?=$height?>px;border:1px solid #CCCCCC;padding:5px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><img src='{$img}' width='$subject_len' height='$height' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>
<td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>
<tr>
<td height='20'>
$cat2
</td>
</tr>
<td height='20'>
$cat2
</td>
</tr>
<tr>
<td width='<?=$subject_len?>' height='15'> <img src="./_images/_main/icon_dot.jpg" align="middle"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'>{$list[$all_cnt][subject]}</a></td>
</tr>
<tr>
<td width='<?=$subject_len?>' height='15'> <img src="./_images/_main/icon_dot.jpg" align="middle"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><font color="#5C8BB3"><b>{$list[$all_cnt][wr_price2]}원
</a></font></b>
</td>
</tr>
<tr><td height=5></td></tr>
</table>
</td>
HEREDOC;
$all_cnt++;
}
?>
</tr>
<? } ?>
</tr>
<tr><td height=5></td></tr>
</table>
</td>
HEREDOC;
$all_cnt++;
}
?>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>등록된 데이터가 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
<tr><td colspan=2 align='center' height=25>등록된 데이터가 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
댓글 전체
쪽지주세요.