최근 게시물 이미지 세로출력 문의드립니다. > 그누4 질문답변

그누4 질문답변

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

최근 게시물 이미지 세로출력 문의드립니다. 정보

최근 게시물 이미지 세로출력 문의드립니다.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

이미지 나오는 최근게시물인데요.. 출력시 가로로 나오는데 세로로 출력되게 하려면 어떻게 해야 할지 몰라 문의 드립니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="197">
 <tr>
    <td width="100%" style="border-width:0; border-color:black; border-style:solid;" align="center" height="110">
          <table width=98% border=0>
                    <tr>
                        <?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo '<td width=10></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='80' valign='top' align='center'>
        <table width='80' border='0' cellpadding='0' cellspacing='0' align='center'>
        <tr>
            <td width='80' height='70' align='center'>
<div style='width:90px;height:70px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='186' height='105' border='0' align='absmiddle' title='$title'></a>
</div>
    </td>
        </tr>
<tr>
           
</tr>
</table>
    </td>
HEREDOC;
}
?> </tr>
        </table>
<? if (count($list) == 0) { ?>게시물이 없습니다.<? } ?>
</tr>
</table>

댓글 전체

<table width=98% border=0>
                    <tr>
에서
<tr>을 지우고요

echo '<td width=10></td>';

echo '<tr><td width=10></td>';


로 바꿔서 한 번 해보세요
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT