최근 갤러리 1줄에 4개에 2줄만으로 출력할수 없을까요..? > 그누4 질문답변

그누4 질문답변

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

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

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

본문

최근 갤러리 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>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로