나

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

· 2005-11-19 (토) 08:50:00 · 1601
최근 갤러리 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,549
05-11-19 조회 2,321
05-11-19 조회 2,023
재재롱
05-11-19 조회 1,625
05-11-19 조회 1,595
05-11-19 조회 1,603
05-11-19 조회 2,074
05-11-19 조회 1,606
05-11-19 조회 1,832
05-11-19 조회 1,602
05-11-19 조회 1,597
05-11-19 조회 2,209
05-11-19 조회 1,361
05-11-18 조회 2,169
05-11-18 조회 1,729
05-11-18 조회 4,099
05-11-18 조회 1,720
05-11-18 조회 1,605
05-11-18 조회 2,401
05-11-18 조회 1,624