나

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

· 2005-11-19 (토) 08:50:00 · 1610
최근 갤러리 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 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
05-11-19 조회 1,564
05-11-19 조회 2,333
05-11-19 조회 2,035
재재롱
05-11-19 조회 1,634
05-11-19 조회 1,605
05-11-19 조회 1,614
05-11-19 조회 2,082
05-11-19 조회 1,617
05-11-19 조회 1,841
05-11-19 조회 1,611
05-11-19 조회 1,612
05-11-19 조회 2,218
05-11-19 조회 1,370
05-11-18 조회 2,179
05-11-18 조회 1,742
05-11-18 조회 4,110
05-11-18 조회 1,734
05-11-18 조회 1,617
05-11-18 조회 2,416
05-11-18 조회 1,633