최근 갤러리 1줄에 4개에 2줄만으로 출력할수 없을까요..?

· 20년 전 · 1519
최근 갤러리 1줄에 4개에 2줄만으로 출력할수 없을까요..?
부탁 드립니다..

사용하는 스킨..

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)


echo "<td width=20></td>";


$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";


echo <<<HEREDOC
<td width="190" valign="top" align=center>
<table width="190" border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td background="{$latest_skin_path}/img/bg.gif" width="190" height="150" align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="{$img}" width="150" height="120" border="0" align=absmiddle title="$title"></a></td>
<tr>
<td width="190" height="20" align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td>
</table>
</td>

HEREDOC;




}

?>
</tr>
</table>
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
20년 전 조회 1,457
20년 전 조회 2,237
20년 전 조회 1,939
재롱
20년 전 조회 1,548
20년 전 조회 1,514
20년 전 조회 1,531
20년 전 조회 1,978
20년 전 조회 1,522
20년 전 조회 1,751
20년 전 조회 1,520
20년 전 조회 1,525
20년 전 조회 2,128
20년 전 조회 1,278
20년 전 조회 2,084
20년 전 조회 1,645
20년 전 조회 3,981
20년 전 조회 1,622
20년 전 조회 1,517
20년 전 조회 2,308
20년 전 조회 1,533