최신갤러리 세로 이미지 크기 조절 좀 도와주세요 > 그누4 질문답변

그누4 질문답변

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

최신갤러리 세로 이미지 크기 조절 좀 도와주세요 정보

최신갤러리 세로 이미지 크기 조절 좀 도와주세요

본문

최신갤러리에서 갤러리를 불러오는데 세로이미지가 테이블을 벗어납니다

세로이미지를 고정할 수 있는 방법 좀 도와주세요 ^^

-----------------------------------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.w_subject { font-family:돋움; font-size:9pt; color:#696969; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
</style>
<table width="80%" cellpadding=0 cellspacing=0 border=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="29" height="38"><img src="<?=$latest_skin_path?>/img/board_title_left.gif" width="29" height="38"></td>
    <td background="<?=$latest_skin_path?>/img/board_title_bg.gif"></td>
    <td width="60" align="right" background="<?=$latest_skin_path?>/img/board_title_bg.gif"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/board_more.gif" width="45" height="18" border="0"></a></td>
    <td width="19"><img src="<?=$latest_skin_path?>/img/board_title_right.gif" width="19" height="38"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height=10></td></tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align="center">

        <?               
echo "<a href='{$list[$i][href]}'>";
            $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='120' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a><br>
<? } else { ?>
<img src='<?=$latest_skin_path?>/img/noimage.gif' width='120' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a><br>
<? } ?>

<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
            echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
        else
            echo "<font class=w_list>{$list[$i][subject]}</font>";
        echo "</a>";   

if ($list[$i][comment_cnt])
            echo " <a href=\"{$list[$i][comment_href]}\"><span class=comment_cnt>{$list[$i][comment_cnt]}</a>";

        // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
        // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }


        echo " " . $list[$i][icon_secret];
        ?>
           
</td>
</tr>
<tr><td height=10></td></tr>
<? } ?>
<? if (count($list) == 0) { ?>
<tr>
<td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif&quot;&gt;게시물이
            없습니다.</td>
</tr>
<? } ?>
</table>

</td></tr></table>

-------------------------------------------------

추운겨울 감기조심하세요~ ^^
  • 복사

댓글 전체

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