최근 게시물 이미지 세로출력 문의드립니다. 정보
최근 게시물 이미지 세로출력 문의드립니다.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
이미지 나오는 최근게시물인데요.. 출력시 가로로 나오는데 세로로 출력되게 하려면 어떻게 해야 할지 몰라 문의 드립니다.
<?
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>
오류 주소 :
이미지 나오는 최근게시물인데요.. 출력시 가로로 나오는데 세로로 출력되게 하려면 어떻게 해야 할지 몰라 문의 드립니다.
<?
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>';
로 바꿔서 한 번 해보세요
<tr>
에서
<tr>을 지우고요
echo '<td width=10></td>';
을
echo '<tr><td width=10></td>';
로 바꿔서 한 번 해보세요
감사합니다..^^
그런데 우측 아래로 나오네요...ㅠㅠ
ㅁ
ㅁ
이렇게요....
그런데 우측 아래로 나오네요...ㅠㅠ
ㅁ
ㅁ
이렇게요....
echo <<<HEREDOC
<tr><td width='80' valign='top' align='center'>
여기도 붙여주니 되네요...
감사합니다.. ^^
<tr><td width='80' valign='top' align='center'>
여기도 붙여주니 되네요...
감사합니다.. ^^